| 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 return true; | 713 return true; |
| 714 break; | 714 break; |
| 715 case CSSPropertyTextRendering: // auto | optimizeSpeed | optimizeLegibility
| geometricPrecision | 715 case CSSPropertyTextRendering: // auto | optimizeSpeed | optimizeLegibility
| geometricPrecision |
| 716 if (valueID == CSSValueAuto || valueID == CSSValueOptimizespeed || value
ID == CSSValueOptimizelegibility || valueID == CSSValueGeometricprecision) | 716 if (valueID == CSSValueAuto || valueID == CSSValueOptimizespeed || value
ID == CSSValueOptimizelegibility || valueID == CSSValueGeometricprecision) |
| 717 return true; | 717 return true; |
| 718 break; | 718 break; |
| 719 case CSSPropertyTextTransform: // capitalize | uppercase | lowercase | none
| inherit | 719 case CSSPropertyTextTransform: // capitalize | uppercase | lowercase | none
| inherit |
| 720 if ((valueID >= CSSValueCapitalize && valueID <= CSSValueLowercase) || v
alueID == CSSValueNone) | 720 if ((valueID >= CSSValueCapitalize && valueID <= CSSValueLowercase) || v
alueID == CSSValueNone) |
| 721 return true; | 721 return true; |
| 722 break; | 722 break; |
| 723 case CSSPropertyTouchAction: // auto | none |
| 724 if (RuntimeEnabledFeatures::cssTouchActionEnabled() && (valueID == CSSVa
lueAuto || valueID == CSSValueNone)) |
| 725 return true; |
| 726 break; |
| 723 case CSSPropertyVisibility: // visible | hidden | collapse | inherit | 727 case CSSPropertyVisibility: // visible | hidden | collapse | inherit |
| 724 if (valueID == CSSValueVisible || valueID == CSSValueHidden || valueID =
= CSSValueCollapse) | 728 if (valueID == CSSValueVisible || valueID == CSSValueHidden || valueID =
= CSSValueCollapse) |
| 725 return true; | 729 return true; |
| 726 break; | 730 break; |
| 727 case CSSPropertyWebkitAppearance: | 731 case CSSPropertyWebkitAppearance: |
| 728 if ((valueID >= CSSValueCheckbox && valueID <= CSSValueTextarea) || valu
eID == CSSValueNone) | 732 if ((valueID >= CSSValueCheckbox && valueID <= CSSValueTextarea) || valu
eID == CSSValueNone) |
| 729 return true; | 733 return true; |
| 730 break; | 734 break; |
| 731 case CSSPropertyWebkitBackfaceVisibility: | 735 case CSSPropertyWebkitBackfaceVisibility: |
| 732 if (valueID == CSSValueVisible || valueID == CSSValueHidden) | 736 if (valueID == CSSValueVisible || valueID == CSSValueHidden) |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 case CSSPropertyTableLayout: | 979 case CSSPropertyTableLayout: |
| 976 case CSSPropertyTextLineThroughMode: | 980 case CSSPropertyTextLineThroughMode: |
| 977 case CSSPropertyTextLineThroughStyle: | 981 case CSSPropertyTextLineThroughStyle: |
| 978 case CSSPropertyTextOverflow: | 982 case CSSPropertyTextOverflow: |
| 979 case CSSPropertyTextOverlineMode: | 983 case CSSPropertyTextOverlineMode: |
| 980 case CSSPropertyTextOverlineStyle: | 984 case CSSPropertyTextOverlineStyle: |
| 981 case CSSPropertyTextRendering: | 985 case CSSPropertyTextRendering: |
| 982 case CSSPropertyTextTransform: | 986 case CSSPropertyTextTransform: |
| 983 case CSSPropertyTextUnderlineMode: | 987 case CSSPropertyTextUnderlineMode: |
| 984 case CSSPropertyTextUnderlineStyle: | 988 case CSSPropertyTextUnderlineStyle: |
| 989 case CSSPropertyTouchAction: |
| 985 case CSSPropertyVisibility: | 990 case CSSPropertyVisibility: |
| 986 case CSSPropertyWebkitAppearance: | 991 case CSSPropertyWebkitAppearance: |
| 987 case CSSPropertyWebkitBackfaceVisibility: | 992 case CSSPropertyWebkitBackfaceVisibility: |
| 988 case CSSPropertyWebkitBorderAfterStyle: | 993 case CSSPropertyWebkitBorderAfterStyle: |
| 989 case CSSPropertyWebkitBorderBeforeStyle: | 994 case CSSPropertyWebkitBorderBeforeStyle: |
| 990 case CSSPropertyWebkitBorderEndStyle: | 995 case CSSPropertyWebkitBorderEndStyle: |
| 991 case CSSPropertyWebkitBorderFit: | 996 case CSSPropertyWebkitBorderFit: |
| 992 case CSSPropertyWebkitBorderStartStyle: | 997 case CSSPropertyWebkitBorderStartStyle: |
| 993 case CSSPropertyWebkitBoxAlign: | 998 case CSSPropertyWebkitBoxAlign: |
| 994 case CSSPropertyWebkitBoxDecorationBreak: | 999 case CSSPropertyWebkitBoxDecorationBreak: |
| (...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2774 case CSSPropertyTableLayout: | 2779 case CSSPropertyTableLayout: |
| 2775 case CSSPropertyTextLineThroughMode: | 2780 case CSSPropertyTextLineThroughMode: |
| 2776 case CSSPropertyTextLineThroughStyle: | 2781 case CSSPropertyTextLineThroughStyle: |
| 2777 case CSSPropertyTextOverflow: | 2782 case CSSPropertyTextOverflow: |
| 2778 case CSSPropertyTextOverlineMode: | 2783 case CSSPropertyTextOverlineMode: |
| 2779 case CSSPropertyTextOverlineStyle: | 2784 case CSSPropertyTextOverlineStyle: |
| 2780 case CSSPropertyTextRendering: | 2785 case CSSPropertyTextRendering: |
| 2781 case CSSPropertyTextTransform: | 2786 case CSSPropertyTextTransform: |
| 2782 case CSSPropertyTextUnderlineMode: | 2787 case CSSPropertyTextUnderlineMode: |
| 2783 case CSSPropertyTextUnderlineStyle: | 2788 case CSSPropertyTextUnderlineStyle: |
| 2789 case CSSPropertyTouchAction: |
| 2784 case CSSPropertyVariable: | 2790 case CSSPropertyVariable: |
| 2785 case CSSPropertyVisibility: | 2791 case CSSPropertyVisibility: |
| 2786 case CSSPropertyWebkitAppearance: | 2792 case CSSPropertyWebkitAppearance: |
| 2787 case CSSPropertyWebkitBackfaceVisibility: | 2793 case CSSPropertyWebkitBackfaceVisibility: |
| 2788 case CSSPropertyWebkitBorderAfterStyle: | 2794 case CSSPropertyWebkitBorderAfterStyle: |
| 2789 case CSSPropertyWebkitBorderBeforeStyle: | 2795 case CSSPropertyWebkitBorderBeforeStyle: |
| 2790 case CSSPropertyWebkitBorderEndStyle: | 2796 case CSSPropertyWebkitBorderEndStyle: |
| 2791 case CSSPropertyWebkitBorderFit: | 2797 case CSSPropertyWebkitBorderFit: |
| 2792 case CSSPropertyWebkitBorderStartStyle: | 2798 case CSSPropertyWebkitBorderStartStyle: |
| 2793 case CSSPropertyWebkitBoxAlign: | 2799 case CSSPropertyWebkitBoxAlign: |
| (...skipping 8943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11737 { | 11743 { |
| 11738 // The tokenizer checks for the construct of an+b. | 11744 // The tokenizer checks for the construct of an+b. |
| 11739 // However, since the {ident} rule precedes the {nth} rule, some of those | 11745 // However, since the {ident} rule precedes the {nth} rule, some of those |
| 11740 // tokens are identified as string literal. Furthermore we need to accept | 11746 // tokens are identified as string literal. Furthermore we need to accept |
| 11741 // "odd" and "even" which does not match to an+b. | 11747 // "odd" and "even" which does not match to an+b. |
| 11742 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11748 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
| 11743 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11749 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
| 11744 } | 11750 } |
| 11745 | 11751 |
| 11746 } | 11752 } |
| OLD | NEW |