Chromium Code Reviews| Index: Source/core/layout/LayoutTextControlSingleLine.cpp |
| diff --git a/Source/core/layout/LayoutTextControlSingleLine.cpp b/Source/core/layout/LayoutTextControlSingleLine.cpp |
| index 8c6b0d66d0781aa5d5ad9bc5a017060128b0b21c..443aefb9285282456431164fcb3bd1649f65bc34 100644 |
| --- a/Source/core/layout/LayoutTextControlSingleLine.cpp |
| +++ b/Source/core/layout/LayoutTextControlSingleLine.cpp |
| @@ -34,6 +34,7 @@ |
| #include "core/layout/LayoutAnalyzer.h" |
| #include "core/layout/LayoutTheme.h" |
| #include "core/paint/DeprecatedPaintLayer.h" |
| +#include "core/paint/LayoutObjectDrawingRecorder.h" |
| #include "core/paint/PaintInfo.h" |
| #include "core/paint/ThemePainter.h" |
| #include "platform/PlatformKeyboardEvent.h" |
| @@ -84,7 +85,9 @@ void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout |
| // Convert the rect into the coords used for painting the content |
| contentsRect.moveBy(paintOffset + location()); |
| - LayoutTheme::theme().painter().paintCapsLockIndicator(this, paintInfo, pixelSnappedIntRect(contentsRect)); |
| + IntRect snappedRect = pixelSnappedIntRect(contentsRect); |
| + LayoutObjectDrawingRecorder recorder(*paintInfo.context, *this, paintInfo.phase, snappedRect); |
|
chrishtr
2015/06/18 20:09:02
visual overflow rect instead?
wkorman
2015/06/18 22:26:04
Discussed in person, sticking with contentsRect as
|
| + LayoutTheme::theme().painter().paintCapsLockIndicator(this, paintInfo, snappedRect); |
| } |
| } |