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

Unified Diff: Source/core/paint/DetailsMarkerPainter.cpp

Issue 1315993004: Implement a paint offset cache for slimming paint v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase more (world moved in the past hour) 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
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/EmbeddedObjectPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DetailsMarkerPainter.cpp
diff --git a/Source/core/paint/DetailsMarkerPainter.cpp b/Source/core/paint/DetailsMarkerPainter.cpp
index ca8984dbea0a939c54bc36b08e6aea7b5d6d01ff..0da7474d91f8f01e47b149642c71c51ec59f7e0c 100644
--- a/Source/core/paint/DetailsMarkerPainter.cpp
+++ b/Source/core/paint/DetailsMarkerPainter.cpp
@@ -21,7 +21,7 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
return;
}
- if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase))
+ if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, paintOffset))
return;
LayoutPoint boxOrigin(paintOffset + m_layoutDetailsMarker.location());
@@ -31,7 +31,7 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect)))
return;
- LayoutObjectDrawingRecorder layoutDrawingRecorder(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, overflowRect);
+ LayoutObjectDrawingRecorder layoutDrawingRecorder(*paintInfo.context, m_layoutDetailsMarker, paintInfo.phase, overflowRect, paintOffset);
const Color color(m_layoutDetailsMarker.resolveColor(CSSPropertyColor));
paintInfo.context->setStrokeColor(color);
paintInfo.context->setStrokeStyle(SolidStroke);
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/EmbeddedObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698