| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 case CSSPropertyBoxSizing: | 331 case CSSPropertyBoxSizing: |
| 332 return valueID == CSSValueBorderBox || valueID == CSSValueContentBox; | 332 return valueID == CSSValueBorderBox || valueID == CSSValueContentBox; |
| 333 case CSSPropertyDirection: // ltr | rtl | 333 case CSSPropertyDirection: // ltr | rtl |
| 334 return valueID == CSSValueLtr || valueID == CSSValueRtl; | 334 return valueID == CSSValueLtr || valueID == CSSValueRtl; |
| 335 case CSSPropertyDisplay: | 335 case CSSPropertyDisplay: |
| 336 // inline | block | list-item | inline-block | table | | 336 // inline | block | list-item | inline-block | table | |
| 337 // inline-table | table-row-group | table-header-group | table-footer-gr
oup | table-row | | 337 // inline-table | table-row-group | table-header-group | table-footer-gr
oup | table-row | |
| 338 // table-column-group | table-column | table-cell | table-caption | -web
kit-box | -webkit-inline-box | none | 338 // table-column-group | table-column | table-cell | table-caption | -web
kit-box | -webkit-inline-box | none |
| 339 // flex | inline-flex | 339 // flex | inline-flex |
| 340 return (valueID >= CSSValueInline && valueID <= CSSValueInlineFlex) || v
alueID == CSSValueNone; | 340 return (valueID >= CSSValueInline && valueID <= CSSValueInlineFlex) || v
alueID == CSSValueNone; |
| 341 case CSSPropertyEmptyCells: // show | hide | |
| 342 return valueID == CSSValueShow || valueID == CSSValueHide; | |
| 343 case CSSPropertyFontStyle: // normal | italic | oblique | 341 case CSSPropertyFontStyle: // normal | italic | oblique |
| 344 return valueID == CSSValueNormal || valueID == CSSValueItalic || valueID
== CSSValueOblique; | 342 return valueID == CSSValueNormal || valueID == CSSValueItalic || valueID
== CSSValueOblique; |
| 345 case CSSPropertyFontStretch: // normal | ultra-condensed | extra-condensed |
condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-
expanded | 343 case CSSPropertyFontStretch: // normal | ultra-condensed | extra-condensed |
condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-
expanded |
| 346 return valueID == CSSValueNormal || (valueID >= CSSValueUltraCondensed &
& valueID <= CSSValueUltraExpanded); | 344 return valueID == CSSValueNormal || (valueID >= CSSValueUltraCondensed &
& valueID <= CSSValueUltraExpanded); |
| 347 case CSSPropertyImageRendering: // auto | optimizeContrast | pixelated | 345 case CSSPropertyImageRendering: // auto | optimizeContrast | pixelated |
| 348 return valueID == CSSValueAuto || valueID == CSSValueWebkitOptimizeContr
ast || (RuntimeEnabledFeatures::imageRenderingPixelatedEnabled() && valueID == C
SSValuePixelated); | 346 return valueID == CSSValueAuto || valueID == CSSValueWebkitOptimizeContr
ast || (RuntimeEnabledFeatures::imageRenderingPixelatedEnabled() && valueID == C
SSValuePixelated); |
| 349 case CSSPropertyObjectFit: | 347 case CSSPropertyObjectFit: |
| 350 ASSERT(RuntimeEnabledFeatures::objectFitPositionEnabled()); | 348 ASSERT(RuntimeEnabledFeatures::objectFitPositionEnabled()); |
| 351 return valueID == CSSValueFill || valueID == CSSValueContain || valueID
== CSSValueCover || valueID == CSSValueNone || valueID == CSSValueScaleDown; | 349 return valueID == CSSValueFill || valueID == CSSValueContain || valueID
== CSSValueCover || valueID == CSSValueNone || valueID == CSSValueScaleDown; |
| 352 case CSSPropertyOutlineStyle: // (<border-style> except hidden) | auto | 350 case CSSPropertyOutlineStyle: // (<border-style> except hidden) | auto |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 case CSSPropertyAlignSelf: | 443 case CSSPropertyAlignSelf: |
| 446 case CSSPropertyBackgroundRepeatX: | 444 case CSSPropertyBackgroundRepeatX: |
| 447 case CSSPropertyBackgroundRepeatY: | 445 case CSSPropertyBackgroundRepeatY: |
| 448 case CSSPropertyBorderBottomStyle: | 446 case CSSPropertyBorderBottomStyle: |
| 449 case CSSPropertyBorderLeftStyle: | 447 case CSSPropertyBorderLeftStyle: |
| 450 case CSSPropertyBorderRightStyle: | 448 case CSSPropertyBorderRightStyle: |
| 451 case CSSPropertyBorderTopStyle: | 449 case CSSPropertyBorderTopStyle: |
| 452 case CSSPropertyBoxSizing: | 450 case CSSPropertyBoxSizing: |
| 453 case CSSPropertyDirection: | 451 case CSSPropertyDirection: |
| 454 case CSSPropertyDisplay: | 452 case CSSPropertyDisplay: |
| 455 case CSSPropertyEmptyCells: | |
| 456 case CSSPropertyFontStyle: | 453 case CSSPropertyFontStyle: |
| 457 case CSSPropertyFontStretch: | 454 case CSSPropertyFontStretch: |
| 458 case CSSPropertyImageRendering: | 455 case CSSPropertyImageRendering: |
| 459 case CSSPropertyObjectFit: | 456 case CSSPropertyObjectFit: |
| 460 case CSSPropertyOutlineStyle: | 457 case CSSPropertyOutlineStyle: |
| 461 case CSSPropertyOverflowWrap: | 458 case CSSPropertyOverflowWrap: |
| 462 case CSSPropertyOverflowX: | 459 case CSSPropertyOverflowX: |
| 463 case CSSPropertyOverflowY: | 460 case CSSPropertyOverflowY: |
| 464 case CSSPropertyPointerEvents: | 461 case CSSPropertyPointerEvents: |
| 465 case CSSPropertyPosition: | 462 case CSSPropertyPosition: |
| (...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); | 1566 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); |
| 1570 } | 1567 } |
| 1571 | 1568 |
| 1572 void BisonCSSParser::startEndUnknownRule() | 1569 void BisonCSSParser::startEndUnknownRule() |
| 1573 { | 1570 { |
| 1574 if (m_observer) | 1571 if (m_observer) |
| 1575 m_observer->startEndUnknownRule(); | 1572 m_observer->startEndUnknownRule(); |
| 1576 } | 1573 } |
| 1577 | 1574 |
| 1578 } | 1575 } |
| OLD | NEW |