OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/cssom/CSSStyleValue.h" | 5 #include "core/css/cssom/CSSStyleValue.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
9 #include "bindings/core/v8/ToV8.h" | 9 #include "bindings/core/v8/ToV8ForCore.h" |
10 #include "core/StylePropertyShorthand.h" | 10 #include "core/StylePropertyShorthand.h" |
11 #include "core/css/cssom/StyleValueFactory.h" | 11 #include "core/css/cssom/StyleValueFactory.h" |
12 #include "core/css/parser/CSSParser.h" | 12 #include "core/css/parser/CSSParser.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 ScriptValue CSSStyleValue::parse(ScriptState* script_state, | 16 ScriptValue CSSStyleValue::parse(ScriptState* script_state, |
17 const String& property_name, | 17 const String& property_name, |
18 const String& value, | 18 const String& value, |
19 ExceptionState& exception_state) { | 19 ExceptionState& exception_state) { |
(...skipping 27 matching lines...) Expand all Loading... |
47 return ScriptValue::CreateNull(script_state); | 47 return ScriptValue::CreateNull(script_state); |
48 } | 48 } |
49 | 49 |
50 v8::Local<v8::Value> wrapped_value = | 50 v8::Local<v8::Value> wrapped_value = |
51 ToV8(style_value_vector[0], script_state->GetContext()->Global(), | 51 ToV8(style_value_vector[0], script_state->GetContext()->Global(), |
52 script_state->GetIsolate()); | 52 script_state->GetIsolate()); |
53 return ScriptValue(script_state, wrapped_value); | 53 return ScriptValue(script_state, wrapped_value); |
54 } | 54 } |
55 | 55 |
56 } // namespace blink | 56 } // namespace blink |
OLD | NEW |