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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix git cl format mangling Created 5 years, 7 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: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index f668620b095015648d489dd76352b72f812f59c8..0e209909ba71cc0a397c6ec76c0bb406c1413139 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -1799,6 +1799,8 @@ void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style)
toLayoutBoxModelObject(this)->layer()->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
else if (diff.needsPaintInvalidationObject() || updatedDiff.needsPaintInvalidationObject())
setShouldDoFullPaintInvalidation();
+
+ view()->clearHitTestCache();
Rick Byers 2015/06/05 20:48:59 I don't know enough about the style system to say
esprehn 2015/06/06 21:14:30 You don't want to be here, this puts code inside s
dtapuska 2015/06/09 18:21:24 Done.
dtapuska 2015/06/09 18:21:24 Done.
}
static inline bool layoutObjectHasBackground(const LayoutObject* layoutObject)

Powered by Google App Engine
This is Rietveld 408576698