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

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

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 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"
11 #include "core/css/CSSComputedStyleDeclaration.h" 11 #include "core/css/CSSComputedStyleDeclaration.h"
12 #include "core/css/cssom/FilteredComputedStylePropertyMap.h" 12 #include "core/css/cssom/FilteredComputedStylePropertyMap.h"
13 #include "core/dom/ExecutionContext.h" 13 #include "core/dom/ExecutionContext.h"
14 #include "core/layout/LayoutObject.h" 14 #include "core/layout/LayoutObject.h"
15 #include "modules/csspaint/PaintRenderingContext2D.h" 15 #include "modules/csspaint/PaintRenderingContext2D.h"
16 #include "modules/csspaint/PaintSize.h" 16 #include "modules/csspaint/PaintSize.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 "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) {
27 float un_zoom_factor = 1 / zoom; 27 float un_zoom_factor = 1 / zoom;
28 auto un_zoom_fn = [un_zoom_factor](int a) -> int { 28 auto un_zoom_fn = [un_zoom_factor](int a) -> int {
29 return round(a * un_zoom_factor); 29 return round(a * un_zoom_factor);
30 }; 30 };
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 v8::Local<v8::Object> paint_instance; 138 v8::Local<v8::Object> paint_instance;
139 if (V8ObjectConstructor::NewInstance(isolate, constructor) 139 if (V8ObjectConstructor::NewInstance(isolate, constructor)
140 .ToLocal(&paint_instance)) { 140 .ToLocal(&paint_instance)) {
141 instance_.Set(isolate, paint_instance); 141 instance_.Set(isolate, paint_instance);
142 } 142 }
143 143
144 did_call_constructor_ = true; 144 did_call_constructor_ = true;
145 } 145 }
146 146
147 } // namespace blink 147 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698