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 11417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11428 ASSERT(RuntimeEnabledFeatures::cssViewportEnabled()); | 11428 ASSERT(RuntimeEnabledFeatures::cssViewportEnabled()); |
11429 | 11429 |
11430 CSSParserValue* value = m_valueList->current(); | 11430 CSSParserValue* value = m_valueList->current(); |
11431 if (!value) | 11431 if (!value) |
11432 return false; | 11432 return false; |
11433 | 11433 |
11434 CSSValueID id = value->id; | 11434 CSSValueID id = value->id; |
11435 bool validPrimitive = false; | 11435 bool validPrimitive = false; |
11436 | 11436 |
11437 switch (propId) { | 11437 switch (propId) { |
11438 case CSSPropertyMinWidth: // auto | <length> | <percentage> | 11438 case CSSPropertyMinWidth: // auto | extend-to-zoom | <length> | <percentage> |
11439 case CSSPropertyMaxWidth: | 11439 case CSSPropertyMaxWidth: |
11440 case CSSPropertyMinHeight: | 11440 case CSSPropertyMinHeight: |
11441 case CSSPropertyMaxHeight: | 11441 case CSSPropertyMaxHeight: |
11442 if (id == CSSValueAuto) | 11442 if (id == CSSValueAuto || id == CSSValueInternalExtendToZoom) |
11443 validPrimitive = true; | 11443 validPrimitive = true; |
11444 else | 11444 else |
11445 validPrimitive = (!id && validUnit(value, FLength | FPercent | FNonN
eg)); | 11445 validPrimitive = (!id && validUnit(value, FLength | FPercent | FNonN
eg)); |
11446 break; | 11446 break; |
11447 case CSSPropertyWidth: // shorthand | 11447 case CSSPropertyWidth: // shorthand |
11448 return parseViewportShorthand(propId, CSSPropertyMinWidth, CSSPropertyMa
xWidth, important); | 11448 return parseViewportShorthand(propId, CSSPropertyMinWidth, CSSPropertyMa
xWidth, important); |
11449 case CSSPropertyHeight: | 11449 case CSSPropertyHeight: |
11450 return parseViewportShorthand(propId, CSSPropertyMinHeight, CSSPropertyM
axHeight, important); | 11450 return parseViewportShorthand(propId, CSSPropertyMinHeight, CSSPropertyM
axHeight, important); |
11451 case CSSPropertyMinZoom: // auto | <number> | <percentage> | 11451 case CSSPropertyMinZoom: // auto | <number> | <percentage> |
11452 case CSSPropertyMaxZoom: | 11452 case CSSPropertyMaxZoom: |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11743 { | 11743 { |
11744 // The tokenizer checks for the construct of an+b. | 11744 // The tokenizer checks for the construct of an+b. |
11745 // However, since the {ident} rule precedes the {nth} rule, some of those | 11745 // However, since the {ident} rule precedes the {nth} rule, some of those |
11746 // tokens are identified as string literal. Furthermore we need to accept | 11746 // tokens are identified as string literal. Furthermore we need to accept |
11747 // "odd" and "even" which does not match to an+b. | 11747 // "odd" and "even" which does not match to an+b. |
11748 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11748 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
11749 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11749 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
11750 } | 11750 } |
11751 | 11751 |
11752 } | 11752 } |
OLD | NEW |