OLD | NEW |
---|---|
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 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1277 return true; | 1277 return true; |
1278 if (parseTranslateTransformValue(declaration, propertyID, string, important) ) | 1278 if (parseTranslateTransformValue(declaration, propertyID, string, important) ) |
1279 return true; | 1279 return true; |
1280 | 1280 |
1281 CSSParser parser(context); | 1281 CSSParser parser(context); |
1282 return parser.parseValue(declaration, propertyID, string, important, context StyleSheet); | 1282 return parser.parseValue(declaration, propertyID, string, important, context StyleSheet); |
1283 } | 1283 } |
1284 | 1284 |
1285 bool CSSParser::parseValue(StylePropertySet* declaration, CSSPropertyID property ID, const String& string, bool important, StyleSheetContents* contextStyleSheet) | 1285 bool CSSParser::parseValue(StylePropertySet* declaration, CSSPropertyID property ID, const String& string, bool important, StyleSheetContents* contextStyleSheet) |
1286 { | 1286 { |
1287 // FIXME: This should check RuntimeCSSEnabled::isCSSPropertyEnabled(property ID). | |
mitica
2013/04/24 06:24:25
Hopefully I dont' get this wrong, but shouldn't th
| |
1288 | |
1287 setStyleSheet(contextStyleSheet); | 1289 setStyleSheet(contextStyleSheet); |
1288 | 1290 |
1289 setupParser("@-internal-value{", string, "} "); | 1291 setupParser("@-internal-value{", string, "} "); |
1290 | 1292 |
1291 m_id = propertyID; | 1293 m_id = propertyID; |
1292 m_important = important; | 1294 m_important = important; |
1293 | 1295 |
1294 cssyyparse(this); | 1296 cssyyparse(this); |
1295 | 1297 |
1296 m_rule = 0; | 1298 m_rule = 0; |
(...skipping 10415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11712 { | 11714 { |
11713 // The tokenizer checks for the construct of an+b. | 11715 // The tokenizer checks for the construct of an+b. |
11714 // However, since the {ident} rule precedes the {nth} rule, some of those | 11716 // However, since the {ident} rule precedes the {nth} rule, some of those |
11715 // tokens are identified as string literal. Furthermore we need to accept | 11717 // tokens are identified as string literal. Furthermore we need to accept |
11716 // "odd" and "even" which does not match to an+b. | 11718 // "odd" and "even" which does not match to an+b. |
11717 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11719 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
11718 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11720 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
11719 } | 11721 } |
11720 | 11722 |
11721 } | 11723 } |
OLD | NEW |