Index: Source/core/layout/LayoutView.cpp |
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp |
index 0993de0c8751285c5da080fc3d99d81b27a66e1c..72da1bc1a320550cbf9401be221cc8dd4a2d5d42 100644 |
--- a/Source/core/layout/LayoutView.cpp |
+++ b/Source/core/layout/LayoutView.cpp |
@@ -124,6 +124,13 @@ bool LayoutView::hitTestNoLifecycleUpdate(HitTestResult& result) |
return hitLayer; |
} |
+void LayoutView::clearHitTestCache() |
+{ |
+ m_hitTestCache->clear(); |
+ if (LayoutPart* frameLayoutObject = frame()->ownerLayoutObject()) |
+ frameLayoutObject->view()->clearHitTestCache(); |
+} |
+ |
void LayoutView::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit, LogicalExtentComputedValues& computedValues) const |
{ |
computedValues.m_extent = (!shouldUsePrintingLayout() && m_frameView) ? LayoutUnit(viewLogicalHeightForBoxSizing()) : logicalHeight; |