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

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

Issue 1242593004: Fix invalidity in HitTestCache with LayoutParts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout test 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
Index: Source/core/layout/HitTestCache.cpp
diff --git a/Source/core/layout/HitTestCache.cpp b/Source/core/layout/HitTestCache.cpp
index 8ab3377278f84a396d7067cc8e9b4174c35650ab..8ae19afdf23557d832fa78fea86c0c1231542a82 100644
--- a/Source/core/layout/HitTestCache.cpp
+++ b/Source/core/layout/HitTestCache.cpp
@@ -53,11 +53,6 @@ void HitTestCache::addCachedResult(const HitTestResult& result, uint64_t domTree
if (!result.isCacheable())
return;
- // If the result was a hit test on an LayoutPart and the request allowed
- // querying of the layout part; then the part hasn't been loaded yet.
- if (result.isOverWidget() && result.hitTestRequest().allowsChildFrameContent())
- return;
-
// For now don't support rect based or list based requests.
if (result.hitTestLocation().isRectBasedTest() || result.hitTestRequest().listBased())
return;

Powered by Google App Engine
This is Rietveld 408576698