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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 break; | 599 break; |
600 case CSSPropertyDisplay: | 600 case CSSPropertyDisplay: |
601 // inline | block | list-item | run-in | inline-block | table | | 601 // inline | block | list-item | run-in | inline-block | table | |
602 // inline-table | table-row-group | table-header-group | table-footer-gr
oup | table-row | | 602 // inline-table | table-row-group | table-header-group | table-footer-gr
oup | table-row | |
603 // table-column-group | table-column | table-cell | table-caption | -web
kit-box | -webkit-inline-box | none | inherit | 603 // table-column-group | table-column | table-cell | table-caption | -web
kit-box | -webkit-inline-box | none | inherit |
604 // flex | inline-flex | -webkit-flex | -webkit-inline-flex | grid | inli
ne-grid | lazy-block | 604 // flex | inline-flex | -webkit-flex | -webkit-inline-flex | grid | inli
ne-grid | lazy-block |
605 if ((valueID >= CSSValueInline && valueID <= CSSValueInlineFlex) || valu
eID == CSSValueWebkitFlex || valueID == CSSValueWebkitInlineFlex || valueID == C
SSValueNone) | 605 if ((valueID >= CSSValueInline && valueID <= CSSValueInlineFlex) || valu
eID == CSSValueWebkitFlex || valueID == CSSValueWebkitInlineFlex || valueID == C
SSValueNone) |
606 return true; | 606 return true; |
607 if (valueID == CSSValueGrid || valueID == CSSValueInlineGrid) | 607 if (valueID == CSSValueGrid || valueID == CSSValueInlineGrid) |
608 return RuntimeEnabledFeatures::cssGridLayoutEnabled(); | 608 return RuntimeEnabledFeatures::cssGridLayoutEnabled(); |
609 if (valueID == CSSValueLazyBlock) | |
610 return RuntimeEnabledFeatures::lazyLayoutEnabled(); | |
611 break; | 609 break; |
612 | 610 |
613 case CSSPropertyEmptyCells: // show | hide | inherit | 611 case CSSPropertyEmptyCells: // show | hide | inherit |
614 if (valueID == CSSValueShow || valueID == CSSValueHide) | 612 if (valueID == CSSValueShow || valueID == CSSValueHide) |
615 return true; | 613 return true; |
616 break; | 614 break; |
617 case CSSPropertyFloat: // left | right | none | center (for buggy CSS, maps
to none) | 615 case CSSPropertyFloat: // left | right | none | center (for buggy CSS, maps
to none) |
618 if (valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CS
SValueNone || valueID == CSSValueCenter) | 616 if (valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CS
SValueNone || valueID == CSSValueCenter) |
619 return true; | 617 return true; |
620 break; | 618 break; |
(...skipping 11323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11944 { | 11942 { |
11945 // The tokenizer checks for the construct of an+b. | 11943 // The tokenizer checks for the construct of an+b. |
11946 // However, since the {ident} rule precedes the {nth} rule, some of those | 11944 // However, since the {ident} rule precedes the {nth} rule, some of those |
11947 // tokens are identified as string literal. Furthermore we need to accept | 11945 // tokens are identified as string literal. Furthermore we need to accept |
11948 // "odd" and "even" which does not match to an+b. | 11946 // "odd" and "even" which does not match to an+b. |
11949 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11947 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
11950 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11948 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
11951 } | 11949 } |
11952 | 11950 |
11953 } | 11951 } |
OLD | NEW |