Title: [209387] trunk/Source/WebCore
- Revision
- 209387
- Author
- [email protected]
- Date
- 2016-12-05 21:44:10 -0800 (Mon, 05 Dec 2016)
Log Message
[CSS Parser] Allow calc in SVG attributes
https://bugs.webkit.org/show_bug.cgi?id=165459
Reviewed by Zalan Bujtas.
* css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeLength):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (209386 => 209387)
--- trunk/Source/WebCore/ChangeLog 2016-12-06 05:39:15 UTC (rev 209386)
+++ trunk/Source/WebCore/ChangeLog 2016-12-06 05:44:10 UTC (rev 209387)
@@ -1,3 +1,13 @@
+2016-12-05 Dave Hyatt <[email protected]>
+
+ [CSS Parser] Allow calc in SVG attributes
+ https://bugs.webkit.org/show_bug.cgi?id=165459
+
+ Reviewed by Zalan Bujtas.
+
+ * css/parser/CSSPropertyParserHelpers.cpp:
+ (WebCore::CSSPropertyParserHelpers::consumeLength):
+
2016-12-05 Brady Eidson <[email protected]>
Build fix followup to r209379:
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp (209386 => 209387)
--- trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp 2016-12-06 05:39:15 UTC (rev 209386)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp 2016-12-06 05:44:10 UTC (rev 209387)
@@ -221,8 +221,6 @@
CSSPrimitiveValue::UnitTypes unitType = CSSPrimitiveValue::UnitTypes::CSS_PX;
return CSSValuePool::singleton().createValue(range.consumeIncludingWhitespace().numericValue(), unitType);
}
- if (cssParserMode == SVGAttributeMode)
- return nullptr;
CalcParser calcParser(range, valueRange);
if (calcParser.value() && calcParser.value()->category() == CalcLength)
return calcParser.consumeValue();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes