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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
568 break; | 568 break; |
569 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky | inherit | 569 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky | inherit |
570 if (valueID == CSSValueStatic || valueID == CSSValueRelative || valueID == CSSValueAbsolute || valueID == CSSValueFixed | 570 if (valueID == CSSValueStatic || valueID == CSSValueRelative || valueID == CSSValueAbsolute || valueID == CSSValueFixed |
571 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID == CSSValueSticky)) | 571 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID == CSSValueSticky)) |
572 return true; | 572 return true; |
573 break; | 573 break; |
574 case CSSPropertyResize: // none | both | horizontal | vertical | auto | 574 case CSSPropertyResize: // none | both | horizontal | vertical | auto |
575 if (valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSS ValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto) | 575 if (valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSS ValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto) |
576 return true; | 576 return true; |
577 break; | 577 break; |
578 case CSSPropertyScrollBehavior: // instant | smooth | |
579 if (RuntimeEnabledFeatures::cssomSmoothScrollEnabled() && (valueID == CS SValueInstant || valueID == CSSValueSmooth)) | |
Julien - ping for review
2014/01/22 16:24:35
I much prefer to put the following as it underline
ajuma
2014/01/22 19:50:20
Done.
| |
580 return true; | |
578 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct uation | no-punctuation | inherit | 581 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct uation | no-punctuation | inherit |
579 if (valueID == CSSValueNone || valueID == CSSValueNormal || valueID == C SSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPunctu ation || valueID == CSSValueNoPunctuation) | 582 if (valueID == CSSValueNone || valueID == CSSValueNormal || valueID == C SSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPunctu ation || valueID == CSSValueNoPunctuation) |
580 return true; | 583 return true; |
581 break; | 584 break; |
582 case CSSPropertyTableLayout: // auto | fixed | inherit | 585 case CSSPropertyTableLayout: // auto | fixed | inherit |
583 if (valueID == CSSValueAuto || valueID == CSSValueFixed) | 586 if (valueID == CSSValueAuto || valueID == CSSValueFixed) |
584 return true; | 587 return true; |
585 break; | 588 break; |
586 case CSSPropertyTextAlignLast: | 589 case CSSPropertyTextAlignLast: |
587 // auto | start | end | left | right | center | justify | 590 // auto | start | end | left | right | center | justify |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
860 case CSSPropertyOutlineStyle: | 863 case CSSPropertyOutlineStyle: |
861 case CSSPropertyOverflowWrap: | 864 case CSSPropertyOverflowWrap: |
862 case CSSPropertyOverflowX: | 865 case CSSPropertyOverflowX: |
863 case CSSPropertyOverflowY: | 866 case CSSPropertyOverflowY: |
864 case CSSPropertyPageBreakAfter: | 867 case CSSPropertyPageBreakAfter: |
865 case CSSPropertyPageBreakBefore: | 868 case CSSPropertyPageBreakBefore: |
866 case CSSPropertyPageBreakInside: | 869 case CSSPropertyPageBreakInside: |
867 case CSSPropertyPointerEvents: | 870 case CSSPropertyPointerEvents: |
868 case CSSPropertyPosition: | 871 case CSSPropertyPosition: |
869 case CSSPropertyResize: | 872 case CSSPropertyResize: |
873 case CSSPropertyScrollBehavior: | |
870 case CSSPropertySpeak: | 874 case CSSPropertySpeak: |
871 case CSSPropertyTableLayout: | 875 case CSSPropertyTableLayout: |
872 case CSSPropertyTextAlignLast: | 876 case CSSPropertyTextAlignLast: |
873 case CSSPropertyTextJustify: | 877 case CSSPropertyTextJustify: |
874 case CSSPropertyTextLineThroughMode: | 878 case CSSPropertyTextLineThroughMode: |
875 case CSSPropertyTextLineThroughStyle: | 879 case CSSPropertyTextLineThroughStyle: |
876 case CSSPropertyTextOverflow: | 880 case CSSPropertyTextOverflow: |
877 case CSSPropertyTextOverlineMode: | 881 case CSSPropertyTextOverlineMode: |
878 case CSSPropertyTextOverlineStyle: | 882 case CSSPropertyTextOverlineStyle: |
879 case CSSPropertyTextRendering: | 883 case CSSPropertyTextRendering: |
(...skipping 9289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10169 { | 10173 { |
10170 // The tokenizer checks for the construct of an+b. | 10174 // The tokenizer checks for the construct of an+b. |
10171 // However, since the {ident} rule precedes the {nth} rule, some of those | 10175 // However, since the {ident} rule precedes the {nth} rule, some of those |
10172 // tokens are identified as string literal. Furthermore we need to accept | 10176 // tokens are identified as string literal. Furthermore we need to accept |
10173 // "odd" and "even" which does not match to an+b. | 10177 // "odd" and "even" which does not match to an+b. |
10174 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 10178 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
10175 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 10179 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
10176 } | 10180 } |
10177 | 10181 |
10178 } | 10182 } |
OLD | NEW |