You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Sabberworm/CSS/CSSList/CSSList.php
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,10 @@ public function getLineNo() {
176
176
return$this->iLineNo;
177
177
}
178
178
179
+
publicfunctionprepend($oItem) {
180
+
array_unshift($this->aContents, $oItem);
181
+
}
182
+
179
183
publicfunctionappend($oItem) {
180
184
$this->aContents[] = $oItem;
181
185
}
@@ -193,6 +197,19 @@ public function remove($oItemToRemove) {
193
197
returnfalse;
194
198
}
195
199
200
+
/**
201
+
* Replaces an item from the CSS list.
202
+
* @param RuleSet|Import|Charset|CSSList $oItemToRemove May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery)
0 commit comments