| 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 * |
| 11 * This library is free software; you can redistribute it and/or | 11 * This library is free software; you can redistribute it and/or |
| 12 * modify it under the terms of the GNU Library General Public | 12 * modify it under the terms of the GNU Library General Public |
| 13 * License as published by the Free Software Foundation; either | 13 * License as published by the Free Software Foundation; either |
| 14 * version 2 of the License, or (at your option) any later version. | 14 * version 2 of the License, or (at your option) any later version. |
| 15 * | 15 * |
| 16 * This library is distributed in the hope that it will be useful, | 16 * This library is distributed in the hope that it will be useful, |
| 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 19 * Library General Public License for more details. | 19 * Library General Public License for more details. |
| 20 * | 20 * |
| 21 * You should have received a copy of the GNU Library General Public License | 21 * You should have received a copy of the GNU Library General Public License |
| 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 "sky/engine/config.h" |
| 28 #include "core/css/parser/BisonCSSParser.h" | 28 #include "sky/engine/core/css/parser/BisonCSSParser.h" |
| 29 | 29 |
| 30 #include <limits.h> |
| 30 #include "gen/sky/core/CSSValueKeywords.h" | 31 #include "gen/sky/core/CSSValueKeywords.h" |
| 31 #include "gen/sky/core/StylePropertyShorthand.h" | 32 #include "gen/sky/core/StylePropertyShorthand.h" |
| 32 #include "core/css/CSSAspectRatioValue.h" | |
| 33 #include "core/css/CSSBasicShapes.h" | |
| 34 #include "core/css/CSSBorderImage.h" | |
| 35 #include "core/css/CSSCanvasValue.h" | |
| 36 #include "core/css/CSSCrossfadeValue.h" | |
| 37 #include "core/css/CSSCursorImageValue.h" | |
| 38 #include "core/css/CSSFontFaceSrcValue.h" | |
| 39 #include "core/css/CSSFontFeatureValue.h" | |
| 40 #include "core/css/CSSFunctionValue.h" | |
| 41 #include "core/css/CSSGradientValue.h" | |
| 42 #include "core/css/CSSImageSetValue.h" | |
| 43 #include "core/css/CSSImageValue.h" | |
| 44 #include "core/css/CSSInheritedValue.h" | |
| 45 #include "core/css/CSSInitialValue.h" | |
| 46 #include "core/css/CSSKeyframeRule.h" | |
| 47 #include "core/css/CSSKeyframesRule.h" | |
| 48 #include "core/css/CSSLineBoxContainValue.h" | |
| 49 #include "core/css/CSSPrimitiveValue.h" | |
| 50 #include "core/css/CSSPropertySourceData.h" | |
| 51 #include "core/css/CSSSelector.h" | |
| 52 #include "core/css/CSSShadowValue.h" | |
| 53 #include "core/css/CSSStyleSheet.h" | |
| 54 #include "core/css/CSSTimingFunctionValue.h" | |
| 55 #include "core/css/CSSTransformValue.h" | |
| 56 #include "core/css/CSSUnicodeRangeValue.h" | |
| 57 #include "core/css/CSSValueList.h" | |
| 58 #include "core/css/CSSValuePool.h" | |
| 59 #include "core/css/HashTools.h" | |
| 60 #include "core/css/MediaList.h" | |
| 61 #include "core/css/MediaQueryExp.h" | |
| 62 #include "core/css/Pair.h" | |
| 63 #include "core/css/Rect.h" | |
| 64 #include "core/css/StylePropertySet.h" | |
| 65 #include "core/css/StyleRule.h" | |
| 66 #include "core/css/StyleSheetContents.h" | |
| 67 #include "core/css/parser/CSSParserIdioms.h" | |
| 68 #include "core/dom/Document.h" | |
| 69 #include "core/frame/FrameConsole.h" | |
| 70 #include "core/frame/FrameHost.h" | |
| 71 #include "core/frame/LocalFrame.h" | |
| 72 #include "core/frame/Settings.h" | |
| 73 #include "core/frame/UseCounter.h" | |
| 74 #include "core/html/parser/HTMLParserIdioms.h" | |
| 75 #include "core/inspector/ConsoleMessage.h" | |
| 76 #include "core/rendering/RenderTheme.h" | |
| 77 #include "platform/FloatConversion.h" | |
| 78 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 33 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 79 #include "wtf/BitArray.h" | 34 #include "sky/engine/core/css/CSSAspectRatioValue.h" |
| 80 #include "wtf/HexNumber.h" | 35 #include "sky/engine/core/css/CSSBasicShapes.h" |
| 81 #include "wtf/text/StringBuffer.h" | 36 #include "sky/engine/core/css/CSSBorderImage.h" |
| 82 #include "wtf/text/StringBuilder.h" | 37 #include "sky/engine/core/css/CSSCanvasValue.h" |
| 83 #include "wtf/text/StringImpl.h" | 38 #include "sky/engine/core/css/CSSCrossfadeValue.h" |
| 84 #include "wtf/text/TextEncoding.h" | 39 #include "sky/engine/core/css/CSSCursorImageValue.h" |
| 85 #include <limits.h> | 40 #include "sky/engine/core/css/CSSFontFaceSrcValue.h" |
| 41 #include "sky/engine/core/css/CSSFontFeatureValue.h" |
| 42 #include "sky/engine/core/css/CSSFunctionValue.h" |
| 43 #include "sky/engine/core/css/CSSGradientValue.h" |
| 44 #include "sky/engine/core/css/CSSImageSetValue.h" |
| 45 #include "sky/engine/core/css/CSSImageValue.h" |
| 46 #include "sky/engine/core/css/CSSInheritedValue.h" |
| 47 #include "sky/engine/core/css/CSSInitialValue.h" |
| 48 #include "sky/engine/core/css/CSSKeyframeRule.h" |
| 49 #include "sky/engine/core/css/CSSKeyframesRule.h" |
| 50 #include "sky/engine/core/css/CSSLineBoxContainValue.h" |
| 51 #include "sky/engine/core/css/CSSPrimitiveValue.h" |
| 52 #include "sky/engine/core/css/CSSPropertySourceData.h" |
| 53 #include "sky/engine/core/css/CSSSelector.h" |
| 54 #include "sky/engine/core/css/CSSShadowValue.h" |
| 55 #include "sky/engine/core/css/CSSStyleSheet.h" |
| 56 #include "sky/engine/core/css/CSSTimingFunctionValue.h" |
| 57 #include "sky/engine/core/css/CSSTransformValue.h" |
| 58 #include "sky/engine/core/css/CSSUnicodeRangeValue.h" |
| 59 #include "sky/engine/core/css/CSSValueList.h" |
| 60 #include "sky/engine/core/css/CSSValuePool.h" |
| 61 #include "sky/engine/core/css/HashTools.h" |
| 62 #include "sky/engine/core/css/MediaList.h" |
| 63 #include "sky/engine/core/css/MediaQueryExp.h" |
| 64 #include "sky/engine/core/css/Pair.h" |
| 65 #include "sky/engine/core/css/Rect.h" |
| 66 #include "sky/engine/core/css/StylePropertySet.h" |
| 67 #include "sky/engine/core/css/StyleRule.h" |
| 68 #include "sky/engine/core/css/StyleSheetContents.h" |
| 69 #include "sky/engine/core/css/parser/CSSParserIdioms.h" |
| 70 #include "sky/engine/core/dom/Document.h" |
| 71 #include "sky/engine/core/frame/FrameConsole.h" |
| 72 #include "sky/engine/core/frame/FrameHost.h" |
| 73 #include "sky/engine/core/frame/LocalFrame.h" |
| 74 #include "sky/engine/core/frame/Settings.h" |
| 75 #include "sky/engine/core/frame/UseCounter.h" |
| 76 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" |
| 77 #include "sky/engine/core/inspector/ConsoleMessage.h" |
| 78 #include "sky/engine/core/rendering/RenderTheme.h" |
| 79 #include "sky/engine/platform/FloatConversion.h" |
| 80 #include "sky/engine/wtf/BitArray.h" |
| 81 #include "sky/engine/wtf/HexNumber.h" |
| 82 #include "sky/engine/wtf/text/StringBuffer.h" |
| 83 #include "sky/engine/wtf/text/StringBuilder.h" |
| 84 #include "sky/engine/wtf/text/StringImpl.h" |
| 85 #include "sky/engine/wtf/text/TextEncoding.h" |
| 86 | 86 |
| 87 #define YYDEBUG 0 | 87 #define YYDEBUG 0 |
| 88 | 88 |
| 89 #if YYDEBUG > 0 | 89 #if YYDEBUG > 0 |
| 90 extern int cssyydebug; | 90 extern int cssyydebug; |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 int cssyyparse(blink::BisonCSSParser*); | 93 int cssyyparse(blink::BisonCSSParser*); |
| 94 | 94 |
| 95 using namespace WTF; | 95 using namespace WTF; |
| (...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1833 m_observer->endProperty(isImportantFound, isPropertyParsed, m_tokenizer.
safeUserStringTokenOffset(), errorType); | 1833 m_observer->endProperty(isImportantFound, isPropertyParsed, m_tokenizer.
safeUserStringTokenOffset(), errorType); |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 void BisonCSSParser::startEndUnknownRule() | 1836 void BisonCSSParser::startEndUnknownRule() |
| 1837 { | 1837 { |
| 1838 if (m_observer) | 1838 if (m_observer) |
| 1839 m_observer->startEndUnknownRule(); | 1839 m_observer->startEndUnknownRule(); |
| 1840 } | 1840 } |
| 1841 | 1841 |
| 1842 } | 1842 } |
| OLD | NEW |