| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 return valueID == CSSValueClip || valueID == CSSValueEllipsis; | 378 return valueID == CSSValueClip || valueID == CSSValueEllipsis; |
| 379 case CSSPropertyTextRendering: // auto | optimizeSpeed | optimizeLegibility
| geometricPrecision | 379 case CSSPropertyTextRendering: // auto | optimizeSpeed | optimizeLegibility
| geometricPrecision |
| 380 return valueID == CSSValueAuto || valueID == CSSValueOptimizespeed || va
lueID == CSSValueOptimizelegibility || valueID == CSSValueGeometricprecision; | 380 return valueID == CSSValueAuto || valueID == CSSValueOptimizespeed || va
lueID == CSSValueOptimizelegibility || valueID == CSSValueGeometricprecision; |
| 381 case CSSPropertyUnicodeBidi: | 381 case CSSPropertyUnicodeBidi: |
| 382 return valueID == CSSValueNormal || valueID == CSSValueEmbed | 382 return valueID == CSSValueNormal || valueID == CSSValueEmbed |
| 383 || valueID == CSSValueBidiOverride || valueID == CSSValueWebkitIsola
te | 383 || valueID == CSSValueBidiOverride || valueID == CSSValueWebkitIsola
te |
| 384 || valueID == CSSValueWebkitIsolateOverride || valueID == CSSValueWe
bkitPlaintext; | 384 || valueID == CSSValueWebkitIsolateOverride || valueID == CSSValueWe
bkitPlaintext; |
| 385 case CSSPropertyTouchActionDelay: // none | script | 385 case CSSPropertyTouchActionDelay: // none | script |
| 386 ASSERT(RuntimeEnabledFeatures::cssTouchActionDelayEnabled()); | 386 ASSERT(RuntimeEnabledFeatures::cssTouchActionDelayEnabled()); |
| 387 return valueID == CSSValueScript || valueID == CSSValueNone; | 387 return valueID == CSSValueScript || valueID == CSSValueNone; |
| 388 case CSSPropertyBackfaceVisibility: | |
| 389 case CSSPropertyWebkitBackfaceVisibility: | |
| 390 return valueID == CSSValueVisible || valueID == CSSValueHidden; | |
| 391 case CSSPropertyWebkitBoxDecorationBreak: | 388 case CSSPropertyWebkitBoxDecorationBreak: |
| 392 return valueID == CSSValueClone || valueID == CSSValueSlice; | 389 return valueID == CSSValueClone || valueID == CSSValueSlice; |
| 393 case CSSPropertyAlignContent: | 390 case CSSPropertyAlignContent: |
| 394 // FIXME: Per CSS alignment, this property should accept an optional <ov
erflow-position>. We should share this parsing code with 'justify-self'. | 391 // FIXME: Per CSS alignment, this property should accept an optional <ov
erflow-position>. We should share this parsing code with 'justify-self'. |
| 395 return valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || val
ueID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValue
SpaceAround || valueID == CSSValueStretch; | 392 return valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || val
ueID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValue
SpaceAround || valueID == CSSValueStretch; |
| 396 case CSSPropertyAlignItems: | 393 case CSSPropertyAlignItems: |
| 397 // FIXME: Per CSS alignment, this property should accept the same argume
nts as 'justify-self' so we should share its parsing code. | 394 // FIXME: Per CSS alignment, this property should accept the same argume
nts as 'justify-self' so we should share its parsing code. |
| 398 return valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || val
ueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStre
tch; | 395 return valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || val
ueID == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStre
tch; |
| 399 case CSSPropertyAlignSelf: | 396 case CSSPropertyAlignSelf: |
| 400 // FIXME: Per CSS alignment, this property should accept the same argume
nts as 'justify-self' so we should share its parsing code. | 397 // FIXME: Per CSS alignment, this property should accept the same argume
nts as 'justify-self' so we should share its parsing code. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 case CSSPropertyOverflowY: | 455 case CSSPropertyOverflowY: |
| 459 case CSSPropertyPointerEvents: | 456 case CSSPropertyPointerEvents: |
| 460 case CSSPropertyPosition: | 457 case CSSPropertyPosition: |
| 461 case CSSPropertyTextAlignLast: | 458 case CSSPropertyTextAlignLast: |
| 462 case CSSPropertyTextDecorationStyle: | 459 case CSSPropertyTextDecorationStyle: |
| 463 case CSSPropertyTextJustify: | 460 case CSSPropertyTextJustify: |
| 464 case CSSPropertyTextOverflow: | 461 case CSSPropertyTextOverflow: |
| 465 case CSSPropertyTextRendering: | 462 case CSSPropertyTextRendering: |
| 466 case CSSPropertyTouchActionDelay: | 463 case CSSPropertyTouchActionDelay: |
| 467 case CSSPropertyUnicodeBidi: | 464 case CSSPropertyUnicodeBidi: |
| 468 case CSSPropertyBackfaceVisibility: | |
| 469 case CSSPropertyWebkitBackfaceVisibility: | |
| 470 case CSSPropertyWebkitBorderAfterStyle: | 465 case CSSPropertyWebkitBorderAfterStyle: |
| 471 case CSSPropertyWebkitBorderBeforeStyle: | 466 case CSSPropertyWebkitBorderBeforeStyle: |
| 472 case CSSPropertyWebkitBorderEndStyle: | 467 case CSSPropertyWebkitBorderEndStyle: |
| 473 case CSSPropertyWebkitBorderStartStyle: | 468 case CSSPropertyWebkitBorderStartStyle: |
| 474 case CSSPropertyWebkitBoxDecorationBreak: | 469 case CSSPropertyWebkitBoxDecorationBreak: |
| 475 case CSSPropertyAlignContent: | 470 case CSSPropertyAlignContent: |
| 476 case CSSPropertyFlexDirection: | 471 case CSSPropertyFlexDirection: |
| 477 case CSSPropertyFlexWrap: | 472 case CSSPropertyFlexWrap: |
| 478 case CSSPropertyJustifyContent: | 473 case CSSPropertyJustifyContent: |
| 479 case CSSPropertyFontKerning: | 474 case CSSPropertyFontKerning: |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); | 1558 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); |
| 1564 } | 1559 } |
| 1565 | 1560 |
| 1566 void BisonCSSParser::startEndUnknownRule() | 1561 void BisonCSSParser::startEndUnknownRule() |
| 1567 { | 1562 { |
| 1568 if (m_observer) | 1563 if (m_observer) |
| 1569 m_observer->startEndUnknownRule(); | 1564 m_observer->startEndUnknownRule(); |
| 1570 } | 1565 } |
| 1571 | 1566 |
| 1572 } | 1567 } |
| OLD | NEW |