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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/csspaint/CSSPaintDefinition.h" 5 #include "modules/csspaint/CSSPaintDefinition.h"
6 6
7 #include "bindings/core/v8/ScriptState.h" 7 #include "bindings/core/v8/ScriptState.h"
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "bindings/core/v8/V8BindingMacros.h" 9 #include "bindings/core/v8/V8BindingMacros.h"
10 #include "bindings/core/v8/V8ObjectConstructor.h" 10 #include "bindings/core/v8/V8ObjectConstructor.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 v8::Local<v8::Object> instance = m_instance.newLocal(isolate); 76 v8::Local<v8::Object> instance = m_instance.newLocal(isolate);
77 77
78 // We may have failed to create an instance class, in which case produce an 78 // We may have failed to create an instance class, in which case produce an
79 // invalid image. 79 // invalid image.
80 if (isUndefinedOrNull(instance)) 80 if (isUndefinedOrNull(instance))
81 return nullptr; 81 return nullptr;
82 82
83 DCHECK(layoutObject.node()); 83 DCHECK(layoutObject.node());
84 84
85 PaintRenderingContext2D* renderingContext = PaintRenderingContext2D::create( 85 PaintRenderingContext2D* renderingContext = PaintRenderingContext2D::create(
86 ImageBuffer::create(wrapUnique( 86 ImageBuffer::create(WTF::wrapUnique(
87 new RecordingImageBufferSurface(size, nullptr /* fallbackFactory */, 87 new RecordingImageBufferSurface(size, nullptr /* fallbackFactory */,
88 m_hasAlpha ? NonOpaque : Opaque))), 88 m_hasAlpha ? NonOpaque : Opaque))),
89 m_hasAlpha, zoom); 89 m_hasAlpha, zoom);
90 PaintSize* paintSize = PaintSize::create(specifiedSize); 90 PaintSize* paintSize = PaintSize::create(specifiedSize);
91 StylePropertyMap* styleMap = FilteredComputedStylePropertyMap::create( 91 StylePropertyMap* styleMap = FilteredComputedStylePropertyMap::create(
92 CSSComputedStyleDeclaration::create(layoutObject.node()), 92 CSSComputedStyleDeclaration::create(layoutObject.node()),
93 m_nativeInvalidationProperties, m_customInvalidationProperties); 93 m_nativeInvalidationProperties, m_customInvalidationProperties);
94 94
95 v8::Local<v8::Value> argv[] = { 95 v8::Local<v8::Value> argv[] = {
96 toV8(renderingContext, m_scriptState->context()->Global(), isolate), 96 toV8(renderingContext, m_scriptState->context()->Global(), isolate),
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 v8::Local<v8::Object> paintInstance; 128 v8::Local<v8::Object> paintInstance;
129 if (V8ObjectConstructor::newInstance(isolate, constructor) 129 if (V8ObjectConstructor::newInstance(isolate, constructor)
130 .ToLocal(&paintInstance)) { 130 .ToLocal(&paintInstance)) {
131 m_instance.set(isolate, paintInstance); 131 m_instance.set(isolate, paintInstance);
132 } 132 }
133 133
134 m_didCallConstructor = true; 134 m_didCallConstructor = true;
135 } 135 }
136 136
137 } // namespace blink 137 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698