| 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 declaration->addParsedProperty(CSSProperty(propertyId, value.release())); | 310 declaration->addParsedProperty(CSSProperty(propertyId, value.release())); |
| 311 return true; | 311 return true; |
| 312 } | 312 } |
| 313 | 313 |
| 314 bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, CSSValueID valueID
, const CSSParserContext& parserContext) | 314 bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, CSSValueID valueID
, const CSSParserContext& parserContext) |
| 315 { | 315 { |
| 316 if (valueID == CSSValueInvalid) | 316 if (valueID == CSSValueInvalid) |
| 317 return false; | 317 return false; |
| 318 | 318 |
| 319 switch (propertyId) { | 319 switch (propertyId) { |
| 320 case CSSPropertyAll: | |
| 321 return valueID == CSSValueUnset; | |
| 322 case CSSPropertyBackgroundRepeatX: // repeat | no-repeat | 320 case CSSPropertyBackgroundRepeatX: // repeat | no-repeat |
| 323 case CSSPropertyBackgroundRepeatY: // repeat | no-repeat | 321 case CSSPropertyBackgroundRepeatY: // repeat | no-repeat |
| 324 return valueID == CSSValueRepeat || valueID == CSSValueNoRepeat; | 322 return valueID == CSSValueRepeat || valueID == CSSValueNoRepeat; |
| 325 case CSSPropertyBorderTopStyle: // <border-style> | 323 case CSSPropertyBorderTopStyle: // <border-style> |
| 326 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | da
shed | | 324 case CSSPropertyBorderRightStyle: // Defined as: none | hidden | dotted | da
shed | |
| 327 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inse
t | outset | 325 case CSSPropertyBorderBottomStyle: // solid | double | groove | ridge | inse
t | outset |
| 328 case CSSPropertyBorderLeftStyle: | 326 case CSSPropertyBorderLeftStyle: |
| 329 case CSSPropertyWebkitBorderAfterStyle: | 327 case CSSPropertyWebkitBorderAfterStyle: |
| 330 case CSSPropertyWebkitBorderBeforeStyle: | 328 case CSSPropertyWebkitBorderBeforeStyle: |
| 331 case CSSPropertyWebkitBorderEndStyle: | 329 case CSSPropertyWebkitBorderEndStyle: |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 return false; | 452 return false; |
| 455 } | 453 } |
| 456 return false; | 454 return false; |
| 457 } | 455 } |
| 458 | 456 |
| 459 bool isKeywordPropertyID(CSSPropertyID propertyId) | 457 bool isKeywordPropertyID(CSSPropertyID propertyId) |
| 460 { | 458 { |
| 461 switch (propertyId) { | 459 switch (propertyId) { |
| 462 case CSSPropertyAlignItems: | 460 case CSSPropertyAlignItems: |
| 463 case CSSPropertyAlignSelf: | 461 case CSSPropertyAlignSelf: |
| 464 case CSSPropertyAll: | |
| 465 case CSSPropertyBackgroundRepeatX: | 462 case CSSPropertyBackgroundRepeatX: |
| 466 case CSSPropertyBackgroundRepeatY: | 463 case CSSPropertyBackgroundRepeatY: |
| 467 case CSSPropertyBorderBottomStyle: | 464 case CSSPropertyBorderBottomStyle: |
| 468 case CSSPropertyBorderLeftStyle: | 465 case CSSPropertyBorderLeftStyle: |
| 469 case CSSPropertyBorderRightStyle: | 466 case CSSPropertyBorderRightStyle: |
| 470 case CSSPropertyBorderTopStyle: | 467 case CSSPropertyBorderTopStyle: |
| 471 case CSSPropertyBoxSizing: | 468 case CSSPropertyBoxSizing: |
| 472 case CSSPropertyCaptionSide: | 469 case CSSPropertyCaptionSide: |
| 473 case CSSPropertyDirection: | 470 case CSSPropertyDirection: |
| 474 case CSSPropertyDisplay: | 471 case CSSPropertyDisplay: |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1596 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); | 1593 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); |
| 1597 } | 1594 } |
| 1598 | 1595 |
| 1599 void BisonCSSParser::startEndUnknownRule() | 1596 void BisonCSSParser::startEndUnknownRule() |
| 1600 { | 1597 { |
| 1601 if (m_observer) | 1598 if (m_observer) |
| 1602 m_observer->startEndUnknownRule(); | 1599 m_observer->startEndUnknownRule(); |
| 1603 } | 1600 } |
| 1604 | 1601 |
| 1605 } | 1602 } |
| OLD | NEW |