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

Unified Diff: Source/core/layout/LayoutTextControlSingleLine.cpp

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutTextControlSingleLine.cpp
diff --git a/Source/core/layout/LayoutTextControlSingleLine.cpp b/Source/core/layout/LayoutTextControlSingleLine.cpp
index e5c9e5e56766beee07abe19e7882681457b35940..1948b2a8188eb7acb815e80ec08d952fa5ab7985 100644
--- a/Source/core/layout/LayoutTextControlSingleLine.cpp
+++ b/Source/core/layout/LayoutTextControlSingleLine.cpp
@@ -89,7 +89,7 @@ void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout
// Convert the rect into the coords used for painting the content
contentsRect.moveBy(paintOffset + location());
IntRect snappedRect = pixelSnappedIntRect(contentsRect);
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, *this, paintInfo.phase, snappedRect);
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, *this, paintInfo.phase, LayoutRect(snappedRect));
jbroman 2015/08/26 19:06:43 This is currently going via FloatRect(const IntRec
chrishtr 2015/08/26 20:53:51 Reverted.
LayoutTheme::theme().painter().paintCapsLockIndicator(this, paintInfo, snappedRect);
}
}

Powered by Google App Engine
This is Rietveld 408576698