| Index: Source/core/layout/LayoutTextControlSingleLine.cpp
|
| diff --git a/Source/core/layout/LayoutTextControlSingleLine.cpp b/Source/core/layout/LayoutTextControlSingleLine.cpp
|
| index 8c6b0d66d0781aa5d5ad9bc5a017060128b0b21c..078ae4970b16cb533e1df3a03655df4f607d8439 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,10 @@ 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);
|
| + if (!recorder.canUseCachedDrawing())
|
| + LayoutTheme::theme().painter().paintCapsLockIndicator(this, paintInfo, snappedRect);
|
| }
|
| }
|
|
|
|
|