Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 211033002: Add runtime feature and property names for unprefixed CSS Transforms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 return false; 1605 return false;
1606 // Properties below are validated inside parseViewportProperty, because we 1606 // Properties below are validated inside parseViewportProperty, because we
1607 // check for parser state. We need to invalidate if someone adds them outsid e 1607 // check for parser state. We need to invalidate if someone adds them outsid e
1608 // a @viewport rule. 1608 // a @viewport rule.
1609 case CSSPropertyMaxZoom: 1609 case CSSPropertyMaxZoom:
1610 case CSSPropertyMinZoom: 1610 case CSSPropertyMinZoom:
1611 case CSSPropertyOrientation: 1611 case CSSPropertyOrientation:
1612 case CSSPropertyUserZoom: 1612 case CSSPropertyUserZoom:
1613 validPrimitive = false; 1613 validPrimitive = false;
1614 break; 1614 break;
1615 // FIXME: crbug.com/154772 Unimplemented css-transforms properties
1616 case CSSPropertyBackfaceVisibility:
1617 case CSSPropertyPerspective:
1618 case CSSPropertyPerspectiveOrigin:
1619 case CSSPropertyTransform:
1620 case CSSPropertyTransformOrigin:
1621 case CSSPropertyTransformStyle:
1622 return false;
1615 default: 1623 default:
1616 return parseSVGValue(propId, important); 1624 return parseSVGValue(propId, important);
1617 } 1625 }
1618 1626
1619 if (validPrimitive) { 1627 if (validPrimitive) {
1620 parsedValue = parseValidPrimitive(id, value); 1628 parsedValue = parseValidPrimitive(id, value);
1621 m_valueList->next(); 1629 m_valueList->next();
1622 } 1630 }
1623 ASSERT(!m_parsedCalculation); 1631 ASSERT(!m_parsedCalculation);
1624 if (parsedValue) { 1632 if (parsedValue) {
(...skipping 6612 matching lines...) Expand 10 before | Expand all | Expand 10 after
8237 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); 8245 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill));
8238 if (!seenStroke) 8246 if (!seenStroke)
8239 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) ); 8247 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) );
8240 if (!seenMarkers) 8248 if (!seenMarkers)
8241 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers )); 8249 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers ));
8242 8250
8243 return parsedValues.release(); 8251 return parsedValues.release();
8244 } 8252 }
8245 8253
8246 } // namespace WebCore 8254 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698