Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698