MDL-65759 library: Update php-css-parser to 8.3.0

This commit is contained in:
Mathew May
2019-06-20 08:16:13 +08:00
parent 5dae8c0515
commit 376eb15617
20 changed files with 1059 additions and 738 deletions
+8
View File
@@ -2,6 +2,8 @@
namespace Sabberworm\CSS\CSSList;
use Sabberworm\CSS\Parsing\ParserState;
/**
* The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks, but also any @-rules encountered.
*/
@@ -14,6 +16,12 @@ class Document extends CSSBlockList {
parent::__construct($iLineNo);
}
public static function parse(ParserState $oParserState) {
$oDocument = new Document($oParserState->currentLine());
CSSList::parseList($oParserState, $oDocument);
return $oDocument;
}
/**
* Gets all DeclarationBlock objects recursively.
*/