RESOLVED FIXED 149544
Make custom properties store the parser value list for variable resolution
https://bugs.webkit.org/show_bug.cgi?id=149544
Summary Make custom properties store the parser value list for variable resolution
Dave Hyatt
Reported 2015-09-24 15:45:36 PDT
Refactor custom property parsing so that we hold the actual CSSParserValueList of parsed terms, functions and operators. This will allow us to iterate directly over the already-parsed terms, functions and operators when we do variable resolution.
Attachments
Patch (24.42 KB, patch)
2015-09-24 17:24 PDT, Dave Hyatt
no flags
Patch (24.46 KB, patch)
2015-09-24 17:29 PDT, Dave Hyatt
no flags
Patch (24.25 KB, patch)
2015-09-24 17:31 PDT, Dave Hyatt
dino: review+
Dave Hyatt
Comment 1 2015-09-24 17:24:25 PDT
WebKit Commit Bot
Comment 2 2015-09-24 17:27:25 PDT
Attachment 261904 [details] did not pass style-queue: ERROR: Source/WebCore/css/CSSCustomPropertyValue.h:30: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dave Hyatt
Comment 3 2015-09-24 17:29:29 PDT
Dave Hyatt
Comment 4 2015-09-24 17:31:34 PDT
Dean Jackson
Comment 5 2015-09-24 17:41:09 PDT
Comment on attachment 261906 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=261906&action=review > Source/WebCore/css/CSSComputedStyleDeclaration.cpp:2122 > + Node* styledNode = this->styledNode(); > + if (!styledNode) > + return emptyString(); > + > + RefPtr<RenderStyle> style = computeRenderStyleForProperty(styledNode, m_pseudoElementSpecifier, CSSPropertyCustom); > + if (!style || !style->hasCustomProperty(propertyName)) > + return emptyString(); > + > + return style->getCustomPropertyValue(propertyName)->cssText(); Can't all this use customPropertyValue? Something like RefPtr<CSSValue> propertyValue = this->customPropertyValue(propertyName); return propertyValue ? propertyValue->cssText() : emptyString();
Dave Hyatt
Comment 6 2015-09-24 17:55:18 PDT
Landed in r190231.
Radar WebKit Bug Importer
Comment 7 2015-12-04 18:19:16 PST
Note You need to log in before you can comment on or make changes to this bug.