| 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 11 matching lines...) Expand all Loading... |
| 22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/css/CSSParser.h" | 28 #include "core/css/CSSParser.h" |
| 29 | 29 |
| 30 #include <limits.h> | 30 #include <limits.h> |
| 31 #include "CSSValueKeywords.h" | 31 #include "CSSValueKeywords.h" |
| 32 #include "Document.h" | |
| 33 #include "HTMLParserIdioms.h" | 32 #include "HTMLParserIdioms.h" |
| 34 #include "SVGParserUtilities.h" | 33 #include "SVGParserUtilities.h" |
| 35 #include "core/css/CSSAspectRatioValue.h" | 34 #include "core/css/CSSAspectRatioValue.h" |
| 36 #include "core/css/CSSBasicShapes.h" | 35 #include "core/css/CSSBasicShapes.h" |
| 37 #include "core/css/CSSBorderImage.h" | 36 #include "core/css/CSSBorderImage.h" |
| 38 #include "core/css/CSSCanvasValue.h" | 37 #include "core/css/CSSCanvasValue.h" |
| 39 #include "core/css/CSSCrossfadeValue.h" | 38 #include "core/css/CSSCrossfadeValue.h" |
| 40 #include "core/css/CSSCursorImageValue.h" | 39 #include "core/css/CSSCursorImageValue.h" |
| 41 #include "core/css/CSSFontFaceRule.h" | 40 #include "core/css/CSSFontFaceRule.h" |
| 42 #include "core/css/CSSFontFaceSrcValue.h" | 41 #include "core/css/CSSFontFaceSrcValue.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 68 #include "core/css/ShadowValue.h" | 67 #include "core/css/ShadowValue.h" |
| 69 #include "core/css/StylePropertySet.h" | 68 #include "core/css/StylePropertySet.h" |
| 70 #include "core/css/StylePropertyShorthand.h" | 69 #include "core/css/StylePropertyShorthand.h" |
| 71 #include "core/css/StyleRule.h" | 70 #include "core/css/StyleRule.h" |
| 72 #include "core/css/StyleRuleImport.h" | 71 #include "core/css/StyleRuleImport.h" |
| 73 #include "core/css/StyleSheetContents.h" | 72 #include "core/css/StyleSheetContents.h" |
| 74 #include "core/css/WebKitCSSKeyframeRule.h" | 73 #include "core/css/WebKitCSSKeyframeRule.h" |
| 75 #include "core/css/WebKitCSSKeyframesRule.h" | 74 #include "core/css/WebKitCSSKeyframesRule.h" |
| 76 #include "core/css/WebKitCSSRegionRule.h" | 75 #include "core/css/WebKitCSSRegionRule.h" |
| 77 #include "core/css/WebKitCSSTransformValue.h" | 76 #include "core/css/WebKitCSSTransformValue.h" |
| 77 #include "core/dom/Document.h" |
| 78 #include "core/page/Page.h" | 78 #include "core/page/Page.h" |
| 79 #include "core/page/PageConsole.h" | 79 #include "core/page/PageConsole.h" |
| 80 #include "core/page/RuntimeEnabledFeatures.h" | 80 #include "core/page/RuntimeEnabledFeatures.h" |
| 81 #include "core/page/Settings.h" | 81 #include "core/page/Settings.h" |
| 82 #include "core/platform/FloatConversion.h" | 82 #include "core/platform/FloatConversion.h" |
| 83 #include "core/platform/HashTools.h" | 83 #include "core/platform/HashTools.h" |
| 84 #include "core/platform/HistogramSupport.h" | 84 #include "core/platform/HistogramSupport.h" |
| 85 #include "core/platform/text/TextEncoding.h" | 85 #include "core/platform/text/TextEncoding.h" |
| 86 #include "core/rendering/RenderTheme.h" | 86 #include "core/rendering/RenderTheme.h" |
| 87 #include <wtf/BitArray.h> | 87 #include <wtf/BitArray.h> |
| (...skipping 11637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11725 { | 11725 { |
| 11726 // The tokenizer checks for the construct of an+b. | 11726 // The tokenizer checks for the construct of an+b. |
| 11727 // However, since the {ident} rule precedes the {nth} rule, some of those | 11727 // However, since the {ident} rule precedes the {nth} rule, some of those |
| 11728 // tokens are identified as string literal. Furthermore we need to accept | 11728 // tokens are identified as string literal. Furthermore we need to accept |
| 11729 // "odd" and "even" which does not match to an+b. | 11729 // "odd" and "even" which does not match to an+b. |
| 11730 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 11730 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
| 11731 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 11731 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
| 11732 } | 11732 } |
| 11733 | 11733 |
| 11734 } | 11734 } |
| OLD | NEW |