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

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

Issue 892343002: [Slimming Paint] Add a drawing recorder for DetailsMarkerPainter::paint, and add fast/html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « LayoutTests/virtual/slimmingpaint/fast/html/README.txt ('k') | no next file » | 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 d20e69b4ab6b2d923fc731672675a5e1c8f61287..72a590ecb9a0b385179afc943c26fd2c6e6ca5d9 100644
--- a/Source/core/paint/DetailsMarkerPainter.cpp
+++ b/Source/core/paint/DetailsMarkerPainter.cpp
@@ -6,6 +6,7 @@
#include "core/paint/DetailsMarkerPainter.h"
#include "core/paint/BlockPainter.h"
+#include "core/paint/RenderDrawingRecorder.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RenderDetailsMarker.h"
#include "platform/geometry/LayoutPoint.h"
@@ -27,6 +28,10 @@ void DetailsMarkerPainter::paint(const PaintInfo& paintInfo, const LayoutPoint&
if (!paintInfo.rect.intersects(pixelSnappedIntRect(overflowRect)))
return;
+ RenderDrawingRecorder renderDrawingRecorder(paintInfo.context, m_renderDetailsMarker, paintInfo.phase, overflowRect);
+ if (renderDrawingRecorder.canUseCachedDrawing())
+ return;
+
const Color color(m_renderDetailsMarker.resolveColor(CSSPropertyColor));
paintInfo.context->setStrokeColor(color);
paintInfo.context->setStrokeStyle(SolidStroke);
« no previous file with comments | « LayoutTests/virtual/slimmingpaint/fast/html/README.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698