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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "core/css/CSSKeyframeRule.h" | 49 #include "core/css/CSSKeyframeRule.h" |
50 #include "core/css/CSSKeyframesRule.h" | 50 #include "core/css/CSSKeyframesRule.h" |
51 #include "core/css/CSSLineBoxContainValue.h" | 51 #include "core/css/CSSLineBoxContainValue.h" |
52 #include "core/css/CSSMixFunctionValue.h" | 52 #include "core/css/CSSMixFunctionValue.h" |
53 #include "core/css/CSSPrimitiveValue.h" | 53 #include "core/css/CSSPrimitiveValue.h" |
54 #include "core/css/CSSPropertySourceData.h" | 54 #include "core/css/CSSPropertySourceData.h" |
55 #include "core/css/CSSReflectValue.h" | 55 #include "core/css/CSSReflectValue.h" |
56 #include "core/css/CSSSVGDocumentValue.h" | 56 #include "core/css/CSSSVGDocumentValue.h" |
57 #include "core/css/CSSSelector.h" | 57 #include "core/css/CSSSelector.h" |
58 #include "core/css/CSSShaderValue.h" | 58 #include "core/css/CSSShaderValue.h" |
| 59 #include "core/css/CSSShadowValue.h" |
59 #include "core/css/CSSStyleSheet.h" | 60 #include "core/css/CSSStyleSheet.h" |
60 #include "core/css/CSSTimingFunctionValue.h" | 61 #include "core/css/CSSTimingFunctionValue.h" |
61 #include "core/css/CSSTransformValue.h" | 62 #include "core/css/CSSTransformValue.h" |
62 #include "core/css/CSSUnicodeRangeValue.h" | 63 #include "core/css/CSSUnicodeRangeValue.h" |
63 #include "core/css/CSSValueList.h" | 64 #include "core/css/CSSValueList.h" |
64 #include "core/css/CSSValuePool.h" | 65 #include "core/css/CSSValuePool.h" |
65 #include "core/css/CSSVariableValue.h" | 66 #include "core/css/CSSVariableValue.h" |
66 #include "core/css/Counter.h" | 67 #include "core/css/Counter.h" |
67 #include "core/css/MediaList.h" | 68 #include "core/css/MediaList.h" |
68 #include "core/css/MediaQueryExp.h" | 69 #include "core/css/MediaQueryExp.h" |
69 #include "core/css/Pair.h" | 70 #include "core/css/Pair.h" |
70 #include "core/css/Rect.h" | 71 #include "core/css/Rect.h" |
71 #include "core/css/ShadowValue.h" | |
72 #include "core/css/StylePropertySet.h" | 72 #include "core/css/StylePropertySet.h" |
73 #include "core/css/StyleRule.h" | 73 #include "core/css/StyleRule.h" |
74 #include "core/css/StyleRuleImport.h" | 74 #include "core/css/StyleRuleImport.h" |
75 #include "core/css/StyleSheetContents.h" | 75 #include "core/css/StyleSheetContents.h" |
76 #include "core/dom/Document.h" | 76 #include "core/dom/Document.h" |
77 #include "core/html/parser/HTMLParserIdioms.h" | 77 #include "core/html/parser/HTMLParserIdioms.h" |
78 #include "core/inspector/InspectorInstrumentation.h" | 78 #include "core/inspector/InspectorInstrumentation.h" |
79 #include "core/page/Page.h" | 79 #include "core/page/Page.h" |
80 #include "core/page/PageConsole.h" | 80 #include "core/page/PageConsole.h" |
81 #include "core/page/Settings.h" | 81 #include "core/page/Settings.h" |
(...skipping 6299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6381 bool allowLength() { return allowX || allowY || allowBlur || allowSpread; } | 6381 bool allowLength() { return allowX || allowY || allowBlur || allowSpread; } |
6382 | 6382 |
6383 void commitValue() | 6383 void commitValue() |
6384 { | 6384 { |
6385 // Handle the ,, case gracefully by doing nothing. | 6385 // Handle the ,, case gracefully by doing nothing. |
6386 if (x || y || blur || spread || color || style) { | 6386 if (x || y || blur || spread || color || style) { |
6387 if (!values) | 6387 if (!values) |
6388 values = CSSValueList::createCommaSeparated(); | 6388 values = CSSValueList::createCommaSeparated(); |
6389 | 6389 |
6390 // Construct the current shadow value and add it to the list. | 6390 // Construct the current shadow value and add it to the list. |
6391 values->append(ShadowValue::create(x.release(), y.release(), blur.re
lease(), spread.release(), style.release(), color.release())); | 6391 values->append(CSSShadowValue::create(x.release(), y.release(), blur
.release(), spread.release(), style.release(), color.release())); |
6392 } | 6392 } |
6393 | 6393 |
6394 // Now reset for the next shadow value. | 6394 // Now reset for the next shadow value. |
6395 x = 0; | 6395 x = 0; |
6396 y = 0; | 6396 y = 0; |
6397 blur = 0; | 6397 blur = 0; |
6398 spread = 0; | 6398 spread = 0; |
6399 style = 0; | 6399 style = 0; |
6400 color = 0; | 6400 color = 0; |
6401 | 6401 |
(...skipping 5627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12029 { | 12029 { |
12030 // The tokenizer checks for the construct of an+b. | 12030 // The tokenizer checks for the construct of an+b. |
12031 // However, since the {ident} rule precedes the {nth} rule, some of those | 12031 // However, since the {ident} rule precedes the {nth} rule, some of those |
12032 // tokens are identified as string literal. Furthermore we need to accept | 12032 // tokens are identified as string literal. Furthermore we need to accept |
12033 // "odd" and "even" which does not match to an+b. | 12033 // "odd" and "even" which does not match to an+b. |
12034 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") | 12034 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") |
12035 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); | 12035 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); |
12036 } | 12036 } |
12037 | 12037 |
12038 } | 12038 } |
OLD | NEW |