OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "bindings/core/v8/V8CSSStyleDeclaration.h" | 31 #include "bindings/core/v8/V8CSSStyleDeclaration.h" |
32 | 32 |
| 33 #include <algorithm> |
33 #include "bindings/core/v8/ExceptionState.h" | 34 #include "bindings/core/v8/ExceptionState.h" |
34 #include "bindings/core/v8/V8Binding.h" | 35 #include "bindings/core/v8/V8Binding.h" |
35 #include "core/CSSPropertyNames.h" | 36 #include "core/CSSPropertyNames.h" |
36 #include "core/css/CSSPrimitiveValue.h" | 37 #include "core/css/CSSPrimitiveValue.h" |
37 #include "core/css/CSSPropertyMetadata.h" | 38 #include "core/css/CSSPropertyMetadata.h" |
38 #include "core/css/CSSStyleDeclaration.h" | 39 #include "core/css/CSSStyleDeclaration.h" |
39 #include "core/css/CSSValue.h" | 40 #include "core/css/CSSValue.h" |
40 #include "core/css/parser/CSSParser.h" | 41 #include "core/css/parser/CSSParser.h" |
41 #include "core/dom/custom/CEReactionsScope.h" | 42 #include "core/dom/custom/CEReactionsScope.h" |
42 #include "core/events/EventTarget.h" | 43 #include "core/events/EventTarget.h" |
43 #include "wtf/ASCIICType.h" | 44 #include "wtf/ASCIICType.h" |
44 #include "wtf/PassRefPtr.h" | 45 #include "wtf/PassRefPtr.h" |
45 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
46 #include "wtf/StdLibExtras.h" | 47 #include "wtf/StdLibExtras.h" |
47 #include "wtf/Vector.h" | 48 #include "wtf/Vector.h" |
48 #include "wtf/text/StringBuilder.h" | 49 #include "wtf/text/StringBuilder.h" |
49 #include "wtf/text/StringConcatenate.h" | 50 #include "wtf/text/StringConcatenate.h" |
50 #include <algorithm> | |
51 | 51 |
52 using namespace WTF; | 52 using namespace WTF; |
53 | 53 |
54 namespace blink { | 54 namespace blink { |
55 | 55 |
56 // Check for a CSS prefix. | 56 // Check for a CSS prefix. |
57 // Passed prefix is all lowercase. | 57 // Passed prefix is all lowercase. |
58 // First character of the prefix within the property name may be upper or | 58 // First character of the prefix within the property name may be upper or |
59 // lowercase. | 59 // lowercase. |
60 // Other characters in the prefix within the property name must be lowercase. | 60 // Other characters in the prefix within the property name must be lowercase. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 ExceptionState exceptionState( | 228 ExceptionState exceptionState( |
229 info.GetIsolate(), ExceptionState::SetterContext, "CSSStyleDeclaration", | 229 info.GetIsolate(), ExceptionState::SetterContext, "CSSStyleDeclaration", |
230 getPropertyName(resolveCSSPropertyID(unresolvedProperty))); | 230 getPropertyName(resolveCSSPropertyID(unresolvedProperty))); |
231 impl->setPropertyInternal(unresolvedProperty, String(), propertyValue, false, | 231 impl->setPropertyInternal(unresolvedProperty, String(), propertyValue, false, |
232 exceptionState); | 232 exceptionState); |
233 | 233 |
234 v8SetReturnValue(info, value); | 234 v8SetReturnValue(info, value); |
235 } | 235 } |
236 | 236 |
237 } // namespace blink | 237 } // namespace blink |
OLD | NEW |