| 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/ToV8.h" |
| 10 #include "core/StylePropertyShorthand.h" | 10 #include "core/StylePropertyShorthand.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 CSSStyleValueVector styleValueVector = | 42 CSSStyleValueVector styleValueVector = |
| 43 StyleValueFactory::cssValueToStyleValueVector(propertyID, *cssValue); | 43 StyleValueFactory::cssValueToStyleValueVector(propertyID, *cssValue); |
| 44 if (styleValueVector.size() != 1) { | 44 if (styleValueVector.size() != 1) { |
| 45 // TODO(meade): Support returning a CSSStyleValueOrCSSStyleValueSequence | 45 // TODO(meade): Support returning a CSSStyleValueOrCSSStyleValueSequence |
| 46 // from this function. | 46 // from this function. |
| 47 return ScriptValue::createNull(scriptState); | 47 return ScriptValue::createNull(scriptState); |
| 48 } | 48 } |
| 49 | 49 |
| 50 v8::Local<v8::Value> wrappedValue = | 50 v8::Local<v8::Value> wrappedValue = |
| 51 toV8(styleValueVector[0], scriptState->context()->Global(), | 51 ToV8(styleValueVector[0], scriptState->context()->Global(), |
| 52 scriptState->isolate()); | 52 scriptState->isolate()); |
| 53 return ScriptValue(scriptState, wrappedValue); | 53 return ScriptValue(scriptState, wrappedValue); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| OLD | NEW |