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

Side by Side Diff: third_party/WebKit/Source/core/paint/FileUploadControlPainter.cpp

Issue 2817663002: Rewrite references to "wtf/" to "platform/wtf/" in core/paint. (Closed)
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/paint/FileUploadControlPainter.h" 5 #include "core/paint/FileUploadControlPainter.h"
6 6
7 #include "core/layout/LayoutButton.h" 7 #include "core/layout/LayoutButton.h"
8 #include "core/layout/LayoutFileUploadControl.h" 8 #include "core/layout/LayoutFileUploadControl.h"
9 #include "core/layout/TextRunConstructor.h" 9 #include "core/layout/TextRunConstructor.h"
10 #include "core/paint/LayoutObjectDrawingRecorder.h" 10 #include "core/paint/LayoutObjectDrawingRecorder.h"
11 #include "core/paint/PaintInfo.h" 11 #include "core/paint/PaintInfo.h"
12 #include "platform/graphics/paint/ClipRecorder.h" 12 #include "platform/graphics/paint/ClipRecorder.h"
13 #include "wtf/Optional.h" 13 #include "platform/wtf/Optional.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 const int kButtonShadowHeight = 2; 17 const int kButtonShadowHeight = 2;
18 18
19 void FileUploadControlPainter::PaintObject(const PaintInfo& paint_info, 19 void FileUploadControlPainter::PaintObject(const PaintInfo& paint_info,
20 const LayoutPoint& paint_offset) { 20 const LayoutPoint& paint_offset) {
21 if (layout_file_upload_control_.Style()->Visibility() != 21 if (layout_file_upload_control_.Style()->Visibility() !=
22 EVisibility::kVisible) 22 EVisibility::kVisible)
23 return; 23 return;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 font, text_run_paint_info, 108 font, text_run_paint_info,
109 FloatPoint(RoundToInt(text_x), RoundToInt(text_y))); 109 FloatPoint(RoundToInt(text_x), RoundToInt(text_y)));
110 } 110 }
111 111
112 // Paint the children. 112 // Paint the children.
113 layout_file_upload_control_.LayoutBlockFlow::PaintObject(paint_info, 113 layout_file_upload_control_.LayoutBlockFlow::PaintObject(paint_info,
114 paint_offset); 114 paint_offset);
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698