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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // for the list of supported list-style-types. | 358 // for the list of supported list-style-types. |
359 return (valueID >= CSSValueDisc && valueID <= CSSValueKatakanaIroha) ||
valueID == CSSValueNone; | 359 return (valueID >= CSSValueDisc && valueID <= CSSValueKatakanaIroha) ||
valueID == CSSValueNone; |
360 case CSSPropertyObjectFit: | 360 case CSSPropertyObjectFit: |
361 ASSERT(RuntimeEnabledFeatures::objectFitPositionEnabled()); | 361 ASSERT(RuntimeEnabledFeatures::objectFitPositionEnabled()); |
362 return valueID == CSSValueFill || valueID == CSSValueContain || valueID
== CSSValueCover || valueID == CSSValueNone || valueID == CSSValueScaleDown; | 362 return valueID == CSSValueFill || valueID == CSSValueContain || valueID
== CSSValueCover || valueID == CSSValueNone || valueID == CSSValueScaleDown; |
363 case CSSPropertyOutlineStyle: // (<border-style> except hidden) | auto | 363 case CSSPropertyOutlineStyle: // (<border-style> except hidden) | auto |
364 return valueID == CSSValueAuto || valueID == CSSValueNone || (valueID >=
CSSValueInset && valueID <= CSSValueDouble); | 364 return valueID == CSSValueAuto || valueID == CSSValueNone || (valueID >=
CSSValueInset && valueID <= CSSValueDouble); |
365 case CSSPropertyOverflowWrap: // normal | break-word | 365 case CSSPropertyOverflowWrap: // normal | break-word |
366 case CSSPropertyWordWrap: | 366 case CSSPropertyWordWrap: |
367 return valueID == CSSValueNormal || valueID == CSSValueBreakWord; | 367 return valueID == CSSValueNormal || valueID == CSSValueBreakWord; |
368 case CSSPropertyOverflowX: // visible | hidden | scroll | auto | overlay | 368 case CSSPropertyOverflowX: // visible | hidden | auto | overlay |
369 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueI
D == CSSValueScroll || valueID == CSSValueAuto || valueID == CSSValueOverlay; | 369 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueI
D == CSSValueAuto || valueID == CSSValueOverlay; |
370 case CSSPropertyOverflowY: // visible | hidden | scroll | auto | overlay | -
webkit-paged-x | -webkit-paged-y | 370 case CSSPropertyOverflowY: // visible | hidden | auto | overlay | -webkit-pa
ged-x | -webkit-paged-y |
371 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueI
D == CSSValueScroll || valueID == CSSValueAuto || valueID == CSSValueOverlay ||
valueID == CSSValueWebkitPagedX || valueID == CSSValueWebkitPagedY; | 371 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueI
D == CSSValueAuto || valueID == CSSValueOverlay || valueID == CSSValueWebkitPage
dX || valueID == CSSValueWebkitPagedY; |
372 case CSSPropertyPageBreakAfter: // auto | always | avoid | left | right | 372 case CSSPropertyPageBreakAfter: // auto | always | avoid | left | right |
373 case CSSPropertyPageBreakBefore: | 373 case CSSPropertyPageBreakBefore: |
374 case CSSPropertyPageBreakInside: // avoid | auto | 374 case CSSPropertyPageBreakInside: // avoid | auto |
375 case CSSPropertyPointerEvents: | 375 case CSSPropertyPointerEvents: |
376 // none | visiblePainted | visibleFill | visibleStroke | visible | | 376 // none | visiblePainted | visibleFill | visibleStroke | visible | |
377 // painted | fill | stroke | auto | all | bounding-box | 377 // painted | fill | stroke | auto | all | bounding-box |
378 return valueID == CSSValueVisible || valueID == CSSValueNone || valueID
== CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted
&& valueID <= CSSValueBoundingBox); | 378 return valueID == CSSValueVisible || valueID == CSSValueNone || valueID
== CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted
&& valueID <= CSSValueBoundingBox); |
379 case CSSPropertyPosition: // static | relative | absolute | fixed | 379 case CSSPropertyPosition: // static | relative | absolute | fixed |
380 return valueID == CSSValueStatic || valueID == CSSValueRelative || value
ID == CSSValueAbsolute || valueID == CSSValueFixed; | 380 return valueID == CSSValueStatic || valueID == CSSValueRelative || value
ID == CSSValueAbsolute || valueID == CSSValueFixed; |
381 case CSSPropertyScrollBehavior: // instant | smooth | |
382 ASSERT(RuntimeEnabledFeatures::cssomSmoothScrollEnabled()); | |
383 return valueID == CSSValueInstant || valueID == CSSValueSmooth; | |
384 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct
uation | no-punctuation | 381 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct
uation | no-punctuation |
385 return valueID == CSSValueNone || valueID == CSSValueNormal || valueID =
= CSSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPun
ctuation || valueID == CSSValueNoPunctuation; | 382 return valueID == CSSValueNone || valueID == CSSValueNormal || valueID =
= CSSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPun
ctuation || valueID == CSSValueNoPunctuation; |
386 case CSSPropertyTableLayout: // auto | fixed | 383 case CSSPropertyTableLayout: // auto | fixed |
387 return valueID == CSSValueAuto || valueID == CSSValueFixed; | 384 return valueID == CSSValueAuto || valueID == CSSValueFixed; |
388 case CSSPropertyTextAlignLast: | 385 case CSSPropertyTextAlignLast: |
389 // auto | start | end | left | right | center | justify | 386 // auto | start | end | left | right | center | justify |
390 ASSERT(RuntimeEnabledFeatures::css3TextEnabled()); | 387 ASSERT(RuntimeEnabledFeatures::css3TextEnabled()); |
391 return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueI
D == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto; | 388 return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueI
D == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto; |
392 case CSSPropertyTextDecorationStyle: | 389 case CSSPropertyTextDecorationStyle: |
393 // solid | double | dotted | dashed | wavy | 390 // solid | double | dotted | dashed | wavy |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 case CSSPropertyObjectFit: | 481 case CSSPropertyObjectFit: |
485 case CSSPropertyOutlineStyle: | 482 case CSSPropertyOutlineStyle: |
486 case CSSPropertyOverflowWrap: | 483 case CSSPropertyOverflowWrap: |
487 case CSSPropertyOverflowX: | 484 case CSSPropertyOverflowX: |
488 case CSSPropertyOverflowY: | 485 case CSSPropertyOverflowY: |
489 case CSSPropertyPageBreakAfter: | 486 case CSSPropertyPageBreakAfter: |
490 case CSSPropertyPageBreakBefore: | 487 case CSSPropertyPageBreakBefore: |
491 case CSSPropertyPageBreakInside: | 488 case CSSPropertyPageBreakInside: |
492 case CSSPropertyPointerEvents: | 489 case CSSPropertyPointerEvents: |
493 case CSSPropertyPosition: | 490 case CSSPropertyPosition: |
494 case CSSPropertyScrollBehavior: | |
495 case CSSPropertySpeak: | 491 case CSSPropertySpeak: |
496 case CSSPropertyTableLayout: | 492 case CSSPropertyTableLayout: |
497 case CSSPropertyTextAlignLast: | 493 case CSSPropertyTextAlignLast: |
498 case CSSPropertyTextDecorationStyle: | 494 case CSSPropertyTextDecorationStyle: |
499 case CSSPropertyTextJustify: | 495 case CSSPropertyTextJustify: |
500 case CSSPropertyTextOverflow: | 496 case CSSPropertyTextOverflow: |
501 case CSSPropertyTextRendering: | 497 case CSSPropertyTextRendering: |
502 case CSSPropertyTouchActionDelay: | 498 case CSSPropertyTouchActionDelay: |
503 case CSSPropertyUnicodeBidi: | 499 case CSSPropertyUnicodeBidi: |
504 case CSSPropertyBackfaceVisibility: | 500 case CSSPropertyBackfaceVisibility: |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); | 1596 m_observer->endProperty(isPropertyParsed, m_tokenizer.safeUserStringToke
nOffset(), errorType); |
1601 } | 1597 } |
1602 | 1598 |
1603 void BisonCSSParser::startEndUnknownRule() | 1599 void BisonCSSParser::startEndUnknownRule() |
1604 { | 1600 { |
1605 if (m_observer) | 1601 if (m_observer) |
1606 m_observer->startEndUnknownRule(); | 1602 m_observer->startEndUnknownRule(); |
1607 } | 1603 } |
1608 | 1604 |
1609 } | 1605 } |
OLD | NEW |