OLD | NEW |
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/V8BindingForCore.h" | 7 #include "bindings/core/v8/V8BindingForCore.h" |
8 #include "bindings/core/v8/V8BindingMacros.h" | |
9 #include "bindings/core/v8/V8ObjectConstructor.h" | |
10 #include "core/css/CSSComputedStyleDeclaration.h" | 8 #include "core/css/CSSComputedStyleDeclaration.h" |
11 #include "core/css/cssom/FilteredComputedStylePropertyMap.h" | 9 #include "core/css/cssom/FilteredComputedStylePropertyMap.h" |
12 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
13 #include "core/layout/LayoutObject.h" | 11 #include "core/layout/LayoutObject.h" |
14 #include "modules/csspaint/PaintRenderingContext2D.h" | 12 #include "modules/csspaint/PaintRenderingContext2D.h" |
15 #include "modules/csspaint/PaintSize.h" | 13 #include "modules/csspaint/PaintSize.h" |
16 #include "platform/bindings/ScriptState.h" | 14 #include "platform/bindings/ScriptState.h" |
| 15 #include "platform/bindings/V8BindingMacros.h" |
| 16 #include "platform/bindings/V8ObjectConstructor.h" |
17 #include "platform/graphics/ImageBuffer.h" | 17 #include "platform/graphics/ImageBuffer.h" |
18 #include "platform/graphics/PaintGeneratedImage.h" | 18 #include "platform/graphics/PaintGeneratedImage.h" |
19 #include "platform/graphics/RecordingImageBufferSurface.h" | 19 #include "platform/graphics/RecordingImageBufferSurface.h" |
20 #include "platform/wtf/PtrUtil.h" | 20 #include "platform/wtf/PtrUtil.h" |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 IntSize GetSpecifiedSize(const IntSize& size, float zoom) { | 26 IntSize GetSpecifiedSize(const IntSize& size, float zoom) { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 v8::Local<v8::Object> paint_instance; | 139 v8::Local<v8::Object> paint_instance; |
140 if (V8ObjectConstructor::NewInstance(isolate, constructor) | 140 if (V8ObjectConstructor::NewInstance(isolate, constructor) |
141 .ToLocal(&paint_instance)) { | 141 .ToLocal(&paint_instance)) { |
142 instance_.Set(isolate, paint_instance); | 142 instance_.Set(isolate, paint_instance); |
143 } | 143 } |
144 | 144 |
145 did_call_constructor_ = true; | 145 did_call_constructor_ = true; |
146 } | 146 } |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
OLD | NEW |