| 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 "config.h" |
| 28 #include "core/css/parser/CSSPropertyParser.h" | 28 #include "core/css/parser/CSSPropertyParser.h" |
| 29 | 29 |
| 30 // FIXME: Way too many! | |
| 31 #include "core/CSSValueKeywords.h" | |
| 32 #include "core/StylePropertyShorthand.h" | 30 #include "core/StylePropertyShorthand.h" |
| 33 #include "core/css/CSSBasicShapes.h" | 31 #include "core/css/CSSBasicShapes.h" |
| 34 #include "core/css/CSSBorderImage.h" | 32 #include "core/css/CSSBorderImage.h" |
| 35 #include "core/css/CSSCanvasValue.h" | 33 #include "core/css/CSSCanvasValue.h" |
| 36 #include "core/css/CSSContentDistributionValue.h" | 34 #include "core/css/CSSContentDistributionValue.h" |
| 37 #include "core/css/CSSCrossfadeValue.h" | 35 #include "core/css/CSSCrossfadeValue.h" |
| 38 #include "core/css/CSSCursorImageValue.h" | 36 #include "core/css/CSSCursorImageValue.h" |
| 39 #include "core/css/CSSFontFaceSrcValue.h" | 37 #include "core/css/CSSFontFaceSrcValue.h" |
| 40 #include "core/css/CSSFontFeatureValue.h" | 38 #include "core/css/CSSFontFeatureValue.h" |
| 41 #include "core/css/CSSFunctionValue.h" | 39 #include "core/css/CSSFunctionValue.h" |
| 42 #include "core/css/CSSGradientValue.h" | |
| 43 #include "core/css/CSSGridLineNamesValue.h" | 40 #include "core/css/CSSGridLineNamesValue.h" |
| 44 #include "core/css/CSSGridTemplateAreasValue.h" | |
| 45 #include "core/css/CSSImageSetValue.h" | 41 #include "core/css/CSSImageSetValue.h" |
| 46 #include "core/css/CSSImageValue.h" | 42 #include "core/css/CSSImageValue.h" |
| 47 #include "core/css/CSSInheritedValue.h" | |
| 48 #include "core/css/CSSInitialValue.h" | |
| 49 #include "core/css/CSSKeyframeRule.h" | |
| 50 #include "core/css/CSSKeyframesRule.h" | |
| 51 #include "core/css/CSSLineBoxContainValue.h" | 43 #include "core/css/CSSLineBoxContainValue.h" |
| 52 #include "core/css/CSSPathValue.h" | 44 #include "core/css/CSSPathValue.h" |
| 53 #include "core/css/CSSPrimitiveValue.h" | |
| 54 #include "core/css/CSSPrimitiveValueMappings.h" | 45 #include "core/css/CSSPrimitiveValueMappings.h" |
| 46 #include "core/css/CSSProperty.h" |
| 55 #include "core/css/CSSPropertyMetadata.h" | 47 #include "core/css/CSSPropertyMetadata.h" |
| 56 #include "core/css/CSSPropertySourceData.h" | |
| 57 #include "core/css/CSSReflectValue.h" | 48 #include "core/css/CSSReflectValue.h" |
| 58 #include "core/css/CSSSVGDocumentValue.h" | 49 #include "core/css/CSSSVGDocumentValue.h" |
| 59 #include "core/css/CSSSelector.h" | |
| 60 #include "core/css/CSSShadowValue.h" | 50 #include "core/css/CSSShadowValue.h" |
| 61 #include "core/css/CSSTimingFunctionValue.h" | 51 #include "core/css/CSSTimingFunctionValue.h" |
| 62 #include "core/css/CSSTransformValue.h" | 52 #include "core/css/CSSTransformValue.h" |
| 63 #include "core/css/CSSUnicodeRangeValue.h" | 53 #include "core/css/CSSUnicodeRangeValue.h" |
| 64 #include "core/css/CSSValueList.h" | |
| 65 #include "core/css/CSSValuePool.h" | 54 #include "core/css/CSSValuePool.h" |
| 66 #include "core/css/Counter.h" | 55 #include "core/css/Counter.h" |
| 67 #include "core/css/HashTools.h" | 56 #include "core/css/HashTools.h" |
| 68 #include "core/css/Pair.h" | 57 #include "core/css/Pair.h" |
| 69 #include "core/css/Rect.h" | 58 #include "core/css/Rect.h" |
| 70 #include "core/css/parser/CSSParserFastPaths.h" | 59 #include "core/css/parser/CSSParserFastPaths.h" |
| 71 #include "core/css/parser/CSSParserIdioms.h" | |
| 72 #include "core/css/parser/CSSParserValues.h" | 60 #include "core/css/parser/CSSParserValues.h" |
| 73 #include "core/frame/UseCounter.h" | 61 #include "core/frame/UseCounter.h" |
| 74 #include "core/html/parser/HTMLParserIdioms.h" | 62 #include "core/html/parser/HTMLParserIdioms.h" |
| 75 #include "core/inspector/InspectorInstrumentation.h" | |
| 76 #include "core/layout/LayoutTheme.h" | 63 #include "core/layout/LayoutTheme.h" |
| 77 #include "core/layout/style/GridCoordinate.h" | 64 #include "core/layout/style/GridCoordinate.h" |
| 78 #include "core/svg/SVGPathUtilities.h" | 65 #include "core/svg/SVGPathUtilities.h" |
| 79 #include "platform/FloatConversion.h" | |
| 80 #include "platform/RuntimeEnabledFeatures.h" | 66 #include "platform/RuntimeEnabledFeatures.h" |
| 81 #include "wtf/BitArray.h" | |
| 82 #include "wtf/HexNumber.h" | |
| 83 #include "wtf/text/StringBuffer.h" | |
| 84 #include "wtf/text/StringBuilder.h" | |
| 85 #include "wtf/text/StringImpl.h" | |
| 86 #include "wtf/text/TextEncoding.h" | |
| 87 #include <limits.h> | |
| 88 | 67 |
| 89 namespace blink { | 68 namespace blink { |
| 90 | 69 |
| 91 static const double MAX_SCALE = 1000000; | 70 static const double MAX_SCALE = 1000000; |
| 92 | 71 |
| 93 template <unsigned N> | 72 template <unsigned N> |
| 94 static bool equalIgnoringCase(const CSSParserString& a, const char (&b)[N]) | 73 static bool equalIgnoringCase(const CSSParserString& a, const char (&b)[N]) |
| 95 { | 74 { |
| 96 unsigned length = N - 1; // Ignore the trailing null character | 75 unsigned length = N - 1; // Ignore the trailing null character |
| 97 if (a.length() != length) | 76 if (a.length() != length) |
| (...skipping 8470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8568 } | 8547 } |
| 8569 } | 8548 } |
| 8570 | 8549 |
| 8571 if (!list->length()) | 8550 if (!list->length()) |
| 8572 return nullptr; | 8551 return nullptr; |
| 8573 | 8552 |
| 8574 return list.release(); | 8553 return list.release(); |
| 8575 } | 8554 } |
| 8576 | 8555 |
| 8577 } // namespace blink | 8556 } // namespace blink |
| OLD | NEW |