| 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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 return true; | 771 return true; |
| 772 break; | 772 break; |
| 773 case CSSPropertyWebkitBoxOrient: | 773 case CSSPropertyWebkitBoxOrient: |
| 774 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu
eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) | 774 if (valueID == CSSValueHorizontal || valueID == CSSValueVertical || valu
eID == CSSValueInlineAxis || valueID == CSSValueBlockAxis) |
| 775 return true; | 775 return true; |
| 776 break; | 776 break; |
| 777 case CSSPropertyWebkitBoxPack: | 777 case CSSPropertyWebkitBoxPack: |
| 778 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS
ValueCenter || valueID == CSSValueJustify) | 778 if (valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSS
ValueCenter || valueID == CSSValueJustify) |
| 779 return true; | 779 return true; |
| 780 break; | 780 break; |
| 781 case CSSPropertyInternalCallback: |
| 782 // This property is only injected programmatically, not parsed from styl
esheets. |
| 783 return false; |
| 781 case CSSPropertyAlignContent: | 784 case CSSPropertyAlignContent: |
| 782 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value
ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp
aceAround || valueID == CSSValueStretch) | 785 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || value
ID == CSSValueCenter || valueID == CSSValueSpaceBetween || valueID == CSSValueSp
aceAround || valueID == CSSValueStretch) |
| 783 return true; | 786 return true; |
| 784 break; | 787 break; |
| 785 case CSSPropertyAlignItems: | 788 case CSSPropertyAlignItems: |
| 786 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI
D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch
) | 789 if (valueID == CSSValueFlexStart || valueID == CSSValueFlexEnd || valueI
D == CSSValueCenter || valueID == CSSValueBaseline || valueID == CSSValueStretch
) |
| 787 return true; | 790 return true; |
| 788 break; | 791 break; |
| 789 case CSSPropertyAlignSelf: | 792 case CSSPropertyAlignSelf: |
| 790 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID =
= CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline ||
valueID == CSSValueStretch) | 793 if (valueID == CSSValueAuto || valueID == CSSValueFlexStart || valueID =
= CSSValueFlexEnd || valueID == CSSValueCenter || valueID == CSSValueBaseline ||
valueID == CSSValueStretch) |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 case CSSPropertyWebkitBorderBeforeStyle: | 985 case CSSPropertyWebkitBorderBeforeStyle: |
| 983 case CSSPropertyWebkitBorderEndStyle: | 986 case CSSPropertyWebkitBorderEndStyle: |
| 984 case CSSPropertyWebkitBorderFit: | 987 case CSSPropertyWebkitBorderFit: |
| 985 case CSSPropertyWebkitBorderStartStyle: | 988 case CSSPropertyWebkitBorderStartStyle: |
| 986 case CSSPropertyWebkitBoxAlign: | 989 case CSSPropertyWebkitBoxAlign: |
| 987 case CSSPropertyWebkitBoxDecorationBreak: | 990 case CSSPropertyWebkitBoxDecorationBreak: |
| 988 case CSSPropertyWebkitBoxDirection: | 991 case CSSPropertyWebkitBoxDirection: |
| 989 case CSSPropertyWebkitBoxLines: | 992 case CSSPropertyWebkitBoxLines: |
| 990 case CSSPropertyWebkitBoxOrient: | 993 case CSSPropertyWebkitBoxOrient: |
| 991 case CSSPropertyWebkitBoxPack: | 994 case CSSPropertyWebkitBoxPack: |
| 995 case CSSPropertyInternalCallback: |
| 992 case CSSPropertyWebkitColumnBreakAfter: | 996 case CSSPropertyWebkitColumnBreakAfter: |
| 993 case CSSPropertyWebkitColumnBreakBefore: | 997 case CSSPropertyWebkitColumnBreakBefore: |
| 994 case CSSPropertyWebkitColumnBreakInside: | 998 case CSSPropertyWebkitColumnBreakInside: |
| 995 case CSSPropertyWebkitColumnRuleStyle: | 999 case CSSPropertyWebkitColumnRuleStyle: |
| 996 case CSSPropertyAlignContent: | 1000 case CSSPropertyAlignContent: |
| 997 case CSSPropertyAlignItems: | 1001 case CSSPropertyAlignItems: |
| 998 case CSSPropertyAlignSelf: | 1002 case CSSPropertyAlignSelf: |
| 999 case CSSPropertyFlexDirection: | 1003 case CSSPropertyFlexDirection: |
| 1000 case CSSPropertyFlexWrap: | 1004 case CSSPropertyFlexWrap: |
| 1001 case CSSPropertyJustifyContent: | 1005 case CSSPropertyJustifyContent: |
| (...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2807 case CSSPropertyWebkitBorderBeforeStyle: | 2811 case CSSPropertyWebkitBorderBeforeStyle: |
| 2808 case CSSPropertyWebkitBorderEndStyle: | 2812 case CSSPropertyWebkitBorderEndStyle: |
| 2809 case CSSPropertyWebkitBorderFit: | 2813 case CSSPropertyWebkitBorderFit: |
| 2810 case CSSPropertyWebkitBorderStartStyle: | 2814 case CSSPropertyWebkitBorderStartStyle: |
| 2811 case CSSPropertyWebkitBoxAlign: | 2815 case CSSPropertyWebkitBoxAlign: |
| 2812 case CSSPropertyWebkitBoxDecorationBreak: | 2816 case CSSPropertyWebkitBoxDecorationBreak: |
| 2813 case CSSPropertyWebkitBoxDirection: | 2817 case CSSPropertyWebkitBoxDirection: |
| 2814 case CSSPropertyWebkitBoxLines: | 2818 case CSSPropertyWebkitBoxLines: |
| 2815 case CSSPropertyWebkitBoxOrient: | 2819 case CSSPropertyWebkitBoxOrient: |
| 2816 case CSSPropertyWebkitBoxPack: | 2820 case CSSPropertyWebkitBoxPack: |
| 2821 case CSSPropertyInternalCallback: |
| 2817 case CSSPropertyWebkitColumnBreakAfter: | 2822 case CSSPropertyWebkitColumnBreakAfter: |
| 2818 case CSSPropertyWebkitColumnBreakBefore: | 2823 case CSSPropertyWebkitColumnBreakBefore: |
| 2819 case CSSPropertyWebkitColumnBreakInside: | 2824 case CSSPropertyWebkitColumnBreakInside: |
| 2820 case CSSPropertyWebkitColumnRuleStyle: | 2825 case CSSPropertyWebkitColumnRuleStyle: |
| 2821 case CSSPropertyAlignContent: | 2826 case CSSPropertyAlignContent: |
| 2822 case CSSPropertyAlignItems: | 2827 case CSSPropertyAlignItems: |
| 2823 case CSSPropertyAlignSelf: | 2828 case CSSPropertyAlignSelf: |
| 2824 case CSSPropertyFlexDirection: | 2829 case CSSPropertyFlexDirection: |
| 2825 case CSSPropertyFlexWrap: | 2830 case CSSPropertyFlexWrap: |
| 2826 case CSSPropertyJustifyContent: | 2831 case CSSPropertyJustifyContent: |
| (...skipping 9144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11971 { | 11976 { |
| 11972 // The tokenizer checks for the construct of an+b. | 11977 // The tokenizer checks for the construct of an+b. |
| 11973 // However, since the {ident} rule precedes the {nth} rule, some of those | 11978 // However, since the {ident} rule precedes the {nth} rule, some of those |
| 11974 // tokens are identified as string literal. Furthermore we need to accept | 11979 // tokens are identified as string literal. Furthermore we need to accept |
| 11975 // "odd" and "even" which does not match to an+b. | 11980 // "odd" and "even" which does not match to an+b. |
| 11976 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11981 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
| 11977 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11982 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
| 11978 } | 11983 } |
| 11979 | 11984 |
| 11980 } | 11985 } |
| OLD | NEW |