Title: [209238] trunk/Source/WebCore
- Revision
- 209238
- Author
- [email protected]
- Date
- 2016-12-02 08:32:10 -0800 (Fri, 02 Dec 2016)
Log Message
[CSS Parser] Make sure the templatized consumeIdent uses CSSValuePool
https://bugs.webkit.org/show_bug.cgi?id=165302
Reviewed by Zalan Bujtas.
* css/parser/CSSPropertyParserHelpers.h:
(WebCore::CSSPropertyParserHelpers::consumeIdent):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (209237 => 209238)
--- trunk/Source/WebCore/ChangeLog 2016-12-02 16:31:14 UTC (rev 209237)
+++ trunk/Source/WebCore/ChangeLog 2016-12-02 16:32:10 UTC (rev 209238)
@@ -1,5 +1,15 @@
2016-12-02 Dave Hyatt <[email protected]>
+ [CSS Parser] Make sure the templatized consumeIdent uses CSSValuePool
+ https://bugs.webkit.org/show_bug.cgi?id=165302
+
+ Reviewed by Zalan Bujtas.
+
+ * css/parser/CSSPropertyParserHelpers.h:
+ (WebCore::CSSPropertyParserHelpers::consumeIdent):
+
+2016-12-02 Dave Hyatt <[email protected]>
+
[CSS Parser] Fix font-variant parsing
https://bugs.webkit.org/show_bug.cgi?id=165301
Modified: trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.h (209237 => 209238)
--- trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.h 2016-12-02 16:31:14 UTC (rev 209237)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.h 2016-12-02 16:32:10 UTC (rev 209238)
@@ -35,6 +35,7 @@
#include "CSSParserTokenRange.h"
#include "CSSPrimitiveValue.h"
#include "CSSShadowValue.h"
+#include "CSSValuePool.h"
#include "Length.h" // For ValueRange
namespace WebCore {
@@ -107,7 +108,7 @@
{
if (range.peek().type() != IdentToken || !identMatches<names...>(range.peek().id()))
return nullptr;
- return CSSPrimitiveValue::createIdentifier(range.consumeIncludingWhitespace().id());
+ return CSSValuePool::singleton().createIdentifierValue(range.consumeIncludingWhitespace().id());
}
static inline bool isCSSWideKeyword(const CSSValueID& id)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes