| 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 return true; | 784 return true; |
| 785 break; | 785 break; |
| 786 case CSSPropertyWebkitBoxOrient: | 786 case CSSPropertyWebkitBoxOrient: |
| 787 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu
eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) | 787 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu
eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) |
| 788 return true; | 788 return true; |
| 789 break; | 789 break; |
| 790 case CSSPropertyWebkitBoxPack: | 790 case CSSPropertyWebkitBoxPack: |
| 791 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS
ValueCenter || valueID == CSSValueJustify) | 791 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS
ValueCenter || valueID == CSSValueJustify) |
| 792 return true; | 792 return true; |
| 793 break; | 793 break; |
| 794 case CSSPropertyInternalCallback: |
| 795 // This property is only injected programmatically, not parsed from styl
esheets. |
| 796 return false; |
| 794 case CSSPropertyAlignContent: | 797 case CSSPropertyAlignContent: |
| 795 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value
ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp
aceAround || valueID == CSSValueStretch) | 798 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value
ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp
aceAround || valueID == CSSValueStretch) |
| 796 return true; | 799 return true; |
| 797 break; | 800 break; |
| 798 case CSSPropertyAlignItems: | 801 case CSSPropertyAlignItems: |
| 799 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI
D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch
) | 802 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI
D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch
) |
| 800 return true; | 803 return true; |
| 801 break; | 804 break; |
| 802 case CSSPropertyAlignSelf: | 805 case CSSPropertyAlignSelf: |
| 803 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID =
= CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline ||
valueID == CSSValueStretch) | 806 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID =
= CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline ||
valueID == CSSValueStretch) |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 case CSSPropertyWebkitBorderBeforeStyle: | 999 case CSSPropertyWebkitBorderBeforeStyle: |
| 997 case CSSPropertyWebkitBorderEndStyle: | 1000 case CSSPropertyWebkitBorderEndStyle: |
| 998 case CSSPropertyWebkitBorderFit: | 1001 case CSSPropertyWebkitBorderFit: |
| 999 case CSSPropertyWebkitBorderStartStyle: | 1002 case CSSPropertyWebkitBorderStartStyle: |
| 1000 case CSSPropertyWebkitBoxAlign: | 1003 case CSSPropertyWebkitBoxAlign: |
| 1001 case CSSPropertyWebkitBoxDecorationBreak: | 1004 case CSSPropertyWebkitBoxDecorationBreak: |
| 1002 case CSSPropertyWebkitBoxDirection: | 1005 case CSSPropertyWebkitBoxDirection: |
| 1003 case CSSPropertyWebkitBoxLines: | 1006 case CSSPropertyWebkitBoxLines: |
| 1004 case CSSPropertyWebkitBoxOrient: | 1007 case CSSPropertyWebkitBoxOrient: |
| 1005 case CSSPropertyWebkitBoxPack: | 1008 case CSSPropertyWebkitBoxPack: |
| 1009 case CSSPropertyInternalCallback: |
| 1006 case CSSPropertyWebkitColumnBreakAfter: | 1010 case CSSPropertyWebkitColumnBreakAfter: |
| 1007 case CSSPropertyWebkitColumnBreakBefore: | 1011 case CSSPropertyWebkitColumnBreakBefore: |
| 1008 case CSSPropertyWebkitColumnBreakInside: | 1012 case CSSPropertyWebkitColumnBreakInside: |
| 1009 case CSSPropertyWebkitColumnRuleStyle: | 1013 case CSSPropertyWebkitColumnRuleStyle: |
| 1010 case CSSPropertyAlignContent: | 1014 case CSSPropertyAlignContent: |
| 1011 case CSSPropertyAlignItems: | 1015 case CSSPropertyAlignItems: |
| 1012 case CSSPropertyAlignSelf: | 1016 case CSSPropertyAlignSelf: |
| 1013 case CSSPropertyFlexDirection: | 1017 case CSSPropertyFlexDirection: |
| 1014 case CSSPropertyFlexWrap: | 1018 case CSSPropertyFlexWrap: |
| 1015 case CSSPropertyJustifyContent: | 1019 case CSSPropertyJustifyContent: |
| (...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 case CSSPropertyWebkitBorderBeforeStyle: | 2844 case CSSPropertyWebkitBorderBeforeStyle: |
| 2841 case CSSPropertyWebkitBorderEndStyle: | 2845 case CSSPropertyWebkitBorderEndStyle: |
| 2842 case CSSPropertyWebkitBorderFit: | 2846 case CSSPropertyWebkitBorderFit: |
| 2843 case CSSPropertyWebkitBorderStartStyle: | 2847 case CSSPropertyWebkitBorderStartStyle: |
| 2844 case CSSPropertyWebkitBoxAlign: | 2848 case CSSPropertyWebkitBoxAlign: |
| 2845 case CSSPropertyWebkitBoxDecorationBreak: | 2849 case CSSPropertyWebkitBoxDecorationBreak: |
| 2846 case CSSPropertyWebkitBoxDirection: | 2850 case CSSPropertyWebkitBoxDirection: |
| 2847 case CSSPropertyWebkitBoxLines: | 2851 case CSSPropertyWebkitBoxLines: |
| 2848 case CSSPropertyWebkitBoxOrient: | 2852 case CSSPropertyWebkitBoxOrient: |
| 2849 case CSSPropertyWebkitBoxPack: | 2853 case CSSPropertyWebkitBoxPack: |
| 2854 case CSSPropertyInternalCallback: |
| 2850 case CSSPropertyWebkitColumnBreakAfter: | 2855 case CSSPropertyWebkitColumnBreakAfter: |
| 2851 case CSSPropertyWebkitColumnBreakBefore: | 2856 case CSSPropertyWebkitColumnBreakBefore: |
| 2852 case CSSPropertyWebkitColumnBreakInside: | 2857 case CSSPropertyWebkitColumnBreakInside: |
| 2853 case CSSPropertyWebkitColumnRuleStyle: | 2858 case CSSPropertyWebkitColumnRuleStyle: |
| 2854 case CSSPropertyAlignContent: | 2859 case CSSPropertyAlignContent: |
| 2855 case CSSPropertyAlignItems: | 2860 case CSSPropertyAlignItems: |
| 2856 case CSSPropertyAlignSelf: | 2861 case CSSPropertyAlignSelf: |
| 2857 case CSSPropertyFlexDirection: | 2862 case CSSPropertyFlexDirection: |
| 2858 case CSSPropertyFlexWrap: | 2863 case CSSPropertyFlexWrap: |
| 2859 case CSSPropertyJustifyContent: | 2864 case CSSPropertyJustifyContent: |
| (...skipping 9161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12021 { | 12026 { |
| 12022 // The tokenizer checks for the construct of an+b. | 12027 // The tokenizer checks for the construct of an+b. |
| 12023 // However, since the {ident} rule precedes the {nth} rule, some of those | 12028 // However, since the {ident} rule precedes the {nth} rule, some of those |
| 12024 // tokens are identified as string literal. Furthermore we need to accept | 12029 // tokens are identified as string literal. Furthermore we need to accept |
| 12025 // "odd" and "even" which does not match to an+b. | 12030 // "odd" and "even" which does not match to an+b. |
| 12026 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 12031 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
| 12027 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 12032 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
| 12028 } | 12033 } |
| 12029 | 12034 |
| 12030 } | 12035 } |
| OLD | NEW |