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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 if (valueID == CSSValueAuto || valueID == CSSValueAlways || valueID == C
SSValueAvoid || valueID == CSSValueLeft || valueID == CSSValueRight) | 676 if (valueID == CSSValueAuto || valueID == CSSValueAlways || valueID == C
SSValueAvoid || valueID == CSSValueLeft || valueID == CSSValueRight) |
677 return true; | 677 return true; |
678 break; | 678 break; |
679 case CSSPropertyPageBreakInside: // avoid | auto | inherit | 679 case CSSPropertyPageBreakInside: // avoid | auto | inherit |
680 case CSSPropertyWebkitColumnBreakInside: | 680 case CSSPropertyWebkitColumnBreakInside: |
681 if (valueID == CSSValueAuto || valueID == CSSValueAvoid) | 681 if (valueID == CSSValueAuto || valueID == CSSValueAvoid) |
682 return true; | 682 return true; |
683 break; | 683 break; |
684 case CSSPropertyPointerEvents: | 684 case CSSPropertyPointerEvents: |
685 // none | visiblePainted | visibleFill | visibleStroke | visible | | 685 // none | visiblePainted | visibleFill | visibleStroke | visible | |
686 // painted | fill | stroke | auto | all | inherit | 686 // painted | fill | stroke | auto | all | boundingBox | inherit |
687 if (valueID == CSSValueVisible || valueID == CSSValueNone || valueID ==
CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted &&
valueID <= CSSValueStroke)) | 687 if (valueID == CSSValueVisible || valueID == CSSValueNone || valueID ==
CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted &&
valueID <= CSSValueBoundingbox)) |
688 return true; | 688 return true; |
689 break; | 689 break; |
690 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky |
inherit | 690 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky |
inherit |
691 if (valueID == CSSValueStatic || valueID == CSSValueRelative || valueID
== CSSValueAbsolute || valueID == CSSValueFixed | 691 if (valueID == CSSValueStatic || valueID == CSSValueRelative || valueID
== CSSValueAbsolute || valueID == CSSValueFixed |
692 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID ==
CSSValueSticky)) | 692 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID ==
CSSValueSticky)) |
693 return true; | 693 return true; |
694 break; | 694 break; |
695 case CSSPropertyResize: // none | both | horizontal | vertical | auto | 695 case CSSPropertyResize: // none | both | horizontal | vertical | auto |
696 if (valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSS
ValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto) | 696 if (valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSS
ValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto) |
697 return true; | 697 return true; |
(...skipping 11340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12038 { | 12038 { |
12039 // The tokenizer checks for the construct of an+b. | 12039 // The tokenizer checks for the construct of an+b. |
12040 // However, since the {ident} rule precedes the {nth} rule, some of those | 12040 // However, since the {ident} rule precedes the {nth} rule, some of those |
12041 // tokens are identified as string literal. Furthermore we need to accept | 12041 // tokens are identified as string literal. Furthermore we need to accept |
12042 // "odd" and "even" which does not match to an+b. | 12042 // "odd" and "even" which does not match to an+b. |
12043 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 12043 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
12044 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 12044 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
12045 } | 12045 } |
12046 | 12046 |
12047 } | 12047 } |
OLD | NEW |