Index: Source/core/layout/LayoutTextControlSingleLine.cpp |
diff --git a/Source/core/layout/LayoutTextControlSingleLine.cpp b/Source/core/layout/LayoutTextControlSingleLine.cpp |
index e5c9e5e56766beee07abe19e7882681457b35940..94827d4975153eba78161a27bb9b0f77f7a041a7 100644 |
--- a/Source/core/layout/LayoutTextControlSingleLine.cpp |
+++ b/Source/core/layout/LayoutTextControlSingleLine.cpp |
@@ -75,7 +75,7 @@ void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout |
LayoutTextControl::paint(paintInfo, paintOffset); |
if (paintInfo.phase == PaintPhaseBlockBackground && m_shouldDrawCapsLockIndicator) { |
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, *this, paintInfo.phase)) |
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, *this, paintInfo.phase, paintOffset)) |
return; |
LayoutRect contentsRect = contentBoxRect(); |
@@ -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, snappedRect, paintOffset); |
LayoutTheme::theme().painter().paintCapsLockIndicator(this, paintInfo, snappedRect); |
} |
} |