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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. 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 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 "wtf/Optional.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 const int buttonShadowHeight = 2; 17 const int buttonShadowHeight = 2;
18 18
19 void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, 19 void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo,
20 const LayoutPoint& paintOffset) { 20 const LayoutPoint& paintOffset) {
21 if (m_layoutFileUploadControl.style()->visibility() != EVisibility::Visible) 21 if (m_layoutFileUploadControl.style()->visibility() != EVisibility::kVisible)
22 return; 22 return;
23 23
24 // Push a clip. 24 // Push a clip.
25 Optional<ClipRecorder> clipRecorder; 25 Optional<ClipRecorder> clipRecorder;
26 if (paintInfo.phase == PaintPhaseForeground || 26 if (paintInfo.phase == PaintPhaseForeground ||
27 paintInfo.phase == PaintPhaseDescendantBlockBackgroundsOnly) { 27 paintInfo.phase == PaintPhaseDescendantBlockBackgroundsOnly) {
28 IntRect clipRect = enclosingIntRect(LayoutRect( 28 IntRect clipRect = enclosingIntRect(LayoutRect(
29 LayoutPoint(paintOffset.x() + m_layoutFileUploadControl.borderLeft(), 29 LayoutPoint(paintOffset.x() + m_layoutFileUploadControl.borderLeft(),
30 paintOffset.y() + m_layoutFileUploadControl.borderTop()), 30 paintOffset.y() + m_layoutFileUploadControl.borderTop()),
31 m_layoutFileUploadControl.size() + 31 m_layoutFileUploadControl.size() +
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 font, textRunPaintInfo, 103 font, textRunPaintInfo,
104 FloatPoint(roundToInt(textX), roundToInt(textY))); 104 FloatPoint(roundToInt(textX), roundToInt(textY)));
105 } 105 }
106 106
107 // Paint the children. 107 // Paint the children.
108 m_layoutFileUploadControl.LayoutBlockFlow::paintObject(paintInfo, 108 m_layoutFileUploadControl.LayoutBlockFlow::paintObject(paintInfo,
109 paintOffset); 109 paintOffset);
110 } 110 }
111 111
112 } // namespace blink 112 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698