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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 if (valueID == CSSValueAuto || valueID == CSSValueAlways || valueID == C
SSValueAvoid || valueID == CSSValueLeft || valueID == CSSValueRight) | 557 if (valueID == CSSValueAuto || valueID == CSSValueAlways || valueID == C
SSValueAvoid || valueID == CSSValueLeft || valueID == CSSValueRight) |
558 return true; | 558 return true; |
559 break; | 559 break; |
560 case CSSPropertyPageBreakInside: // avoid | auto | inherit | 560 case CSSPropertyPageBreakInside: // avoid | auto | inherit |
561 case CSSPropertyWebkitColumnBreakInside: | 561 case CSSPropertyWebkitColumnBreakInside: |
562 if (valueID == CSSValueAuto || valueID == CSSValueAvoid) | 562 if (valueID == CSSValueAuto || valueID == CSSValueAvoid) |
563 return true; | 563 return true; |
564 break; | 564 break; |
565 case CSSPropertyPointerEvents: | 565 case CSSPropertyPointerEvents: |
566 // none | visiblePainted | visibleFill | visibleStroke | visible | | 566 // none | visiblePainted | visibleFill | visibleStroke | visible | |
567 // painted | fill | stroke | auto | all | inherit | 567 // painted | fill | stroke | auto | all | bounding-box | inherit |
568 if (valueID == CSSValueVisible || valueID == CSSValueNone || valueID ==
CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted &&
valueID <= CSSValueStroke)) | 568 if (valueID == CSSValueVisible || valueID == CSSValueNone || valueID ==
CSSValueAll || valueID == CSSValueAuto || (valueID >= CSSValueVisiblepainted &&
valueID <= CSSValueBoundingBox)) |
569 return true; | 569 return true; |
570 break; | 570 break; |
571 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky |
inherit | 571 case CSSPropertyPosition: // static | relative | absolute | fixed | sticky |
inherit |
572 if (valueID == CSSValueStatic || valueID == CSSValueRelative || valueID
== CSSValueAbsolute || valueID == CSSValueFixed | 572 if (valueID == CSSValueStatic || valueID == CSSValueRelative || valueID
== CSSValueAbsolute || valueID == CSSValueFixed |
573 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID ==
CSSValueSticky)) | 573 || (RuntimeEnabledFeatures::cssStickyPositionEnabled() && valueID ==
CSSValueSticky)) |
574 return true; | 574 return true; |
575 break; | 575 break; |
576 case CSSPropertyResize: // none | both | horizontal | vertical | auto | 576 case CSSPropertyResize: // none | both | horizontal | vertical | auto |
577 if (valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSS
ValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto) | 577 if (valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSS
ValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto) |
578 return true; | 578 return true; |
(...skipping 9835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10414 { | 10414 { |
10415 // The tokenizer checks for the construct of an+b. | 10415 // The tokenizer checks for the construct of an+b. |
10416 // However, since the {ident} rule precedes the {nth} rule, some of those | 10416 // However, since the {ident} rule precedes the {nth} rule, some of those |
10417 // tokens are identified as string literal. Furthermore we need to accept | 10417 // tokens are identified as string literal. Furthermore we need to accept |
10418 // "odd" and "even" which does not match to an+b. | 10418 // "odd" and "even" which does not match to an+b. |
10419 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 10419 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
10420 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 10420 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
10421 } | 10421 } |
10422 | 10422 |
10423 } | 10423 } |
OLD | NEW |