Title: [124970] trunk/Source/WebCore
- Revision
- 124970
- Author
- [email protected]
- Date
- 2012-08-07 19:25:52 -0700 (Tue, 07 Aug 2012)
Log Message
CSSParser::parseTransform() refactor to accept valueList as argument
https://bugs.webkit.org/show_bug.cgi?id=93295
Reviewed by Darin Adler.
CSS::parseTranform() is now accepting the related CSSParserValueList as
argument. This change will be used by the code to parse the 3d-transforms
within the custom() function, see bug #71443.
* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
(WebCore::CSSParser::parseTransform):
* css/CSSParser.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (124969 => 124970)
--- trunk/Source/WebCore/ChangeLog 2012-08-08 02:16:14 UTC (rev 124969)
+++ trunk/Source/WebCore/ChangeLog 2012-08-08 02:25:52 UTC (rev 124970)
@@ -1,3 +1,19 @@
+2012-08-07 Michelangelo De Simone <[email protected]>
+
+ CSSParser::parseTransform() refactor to accept valueList as argument
+ https://bugs.webkit.org/show_bug.cgi?id=93295
+
+ Reviewed by Darin Adler.
+
+ CSS::parseTranform() is now accepting the related CSSParserValueList as
+ argument. This change will be used by the code to parse the 3d-transforms
+ within the custom() function, see bug #71443.
+
+ * css/CSSParser.cpp:
+ (WebCore::CSSParser::parseValue):
+ (WebCore::CSSParser::parseTransform):
+ * css/CSSParser.h:
+
2012-08-07 Elliott Sprehn <[email protected]>
Reimplement RenderQuote placement algorithm
Modified: trunk/Source/WebCore/css/CSSParser.cpp (124969 => 124970)
--- trunk/Source/WebCore/css/CSSParser.cpp 2012-08-08 02:16:14 UTC (rev 124969)
+++ trunk/Source/WebCore/css/CSSParser.cpp 2012-08-08 02:25:52 UTC (rev 124970)
@@ -2338,9 +2338,9 @@
if (id == CSSValueNone)
validPrimitive = true;
else {
- PassRefPtr<CSSValue> val = parseTransform();
- if (val) {
- addProperty(propId, val, important);
+ RefPtr<CSSValue> transformValue = parseTransform(m_valueList.get());
+ if (transformValue) {
+ addProperty(propId, transformValue.release(), important);
return true;
}
return false;
@@ -7283,15 +7283,15 @@
CSSParser::Units m_unit;
};
-PassRefPtr<CSSValueList> CSSParser::parseTransform()
+PassRefPtr<CSSValueList> CSSParser::parseTransform(CSSParserValueList* valueList)
{
- if (!m_valueList)
+ if (!valueList)
return 0;
// The transform is a list of functional primitives that specify transform operations.
// We collect a list of WebKitCSSTransformValues, where each value specifies a single operation.
RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
- for (CSSParserValue* value = m_valueList->current(); value; value = m_valueList->next()) {
+ for (CSSParserValue* value = valueList->current(); value; value = valueList->next()) {
if (value->unit != CSSParserValue::Function || !value->function)
return 0;
Modified: trunk/Source/WebCore/css/CSSParser.h (124969 => 124970)
--- trunk/Source/WebCore/css/CSSParser.h 2012-08-08 02:16:14 UTC (rev 124969)
+++ trunk/Source/WebCore/css/CSSParser.h 2012-08-08 02:25:52 UTC (rev 124970)
@@ -225,7 +225,7 @@
static bool isBlendMode(int ident);
static bool isCompositeOperator(int ident);
- PassRefPtr<CSSValueList> parseTransform();
+ PassRefPtr<CSSValueList> parseTransform(CSSParserValueList*);
bool parseTransformOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CSSPropertyID& propId2, CSSPropertyID& propId3, RefPtr<CSSValue>&, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
bool parsePerspectiveOrigin(CSSPropertyID propId, CSSPropertyID& propId1, CSSPropertyID& propId2, RefPtr<CSSValue>&, RefPtr<CSSValue>&);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes