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

Unified Diff: third_party/WebKit/Source/web/LinkHighlightImpl.cpp

Issue 1880763002: Merge repaintRects and paintInvalidationObjects in text-based-repaint test results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/web/LinkHighlightImpl.cpp
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
index 6c638d18a4934e150898c4c9be308f32bcc78453..416144b2cdbf02ea6ce2a6f2115830ca38514b2a 100644
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp
@@ -329,6 +329,11 @@ void LinkHighlightImpl::notifyAnimationFinished(double, int)
releaseResources();
}
+class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient {
+ String debugName() const final { return "LinkHighlight"; }
+ LayoutRect visualRect() const final { return LayoutRect(); }
+};
+
void LinkHighlightImpl::updateGeometry()
{
// To avoid unnecessary updates (e.g. other entities have requested animations from our WebViewImpl),
@@ -348,7 +353,7 @@ void LinkHighlightImpl::updateGeometry()
m_contentLayer->layer()->invalidate();
if (m_currentGraphicsLayer && m_currentGraphicsLayer->isTrackingPaintInvalidations())
- m_currentGraphicsLayer->trackPaintInvalidationRect(FloatRect(layer()->position().x, layer()->position().y, layer()->bounds().width, layer()->bounds().height));
+ m_currentGraphicsLayer->trackPaintInvalidation(LinkHighlightDisplayItemClientForTracking(), FloatRect(layer()->position().x, layer()->position().y, layer()->bounds().width, layer()->bounds().height), PaintInvalidationFull);
}
} else {
clearGraphicsLayerLinkHighlightPointer();

Powered by Google App Engine
This is Rietveld 408576698