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

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

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/LayoutTableRow.cpp
diff --git a/Source/core/layout/LayoutTableRow.cpp b/Source/core/layout/LayoutTableRow.cpp
index 7eea86c2b4802f5a9b69ff210d5d6bec612d2d47..66ae205198702444de1488d00232e7b9d1c5f43c 100644
--- a/Source/core/layout/LayoutTableRow.cpp
+++ b/Source/core/layout/LayoutTableRow.cpp
@@ -205,7 +205,8 @@ bool LayoutTableRow::nodeAtPoint(HitTestResult& result, const HitTestLocation& l
if (!cell->hasSelfPaintingLayer()) {
LayoutPoint cellPoint = flipForWritingModeForChild(cell, accumulatedOffset);
if (cell->nodeAtPoint(result, locationInContainer, cellPoint, action)) {
- updateHitTestResult(result, locationInContainer.point() - toLayoutSize(cellPoint));
+ // TODO(dtapuska): Fix correct cell layout rect.
+ updateHitTestResult(result, locationInContainer.point() - toLayoutSize(cellPoint), result.validityRect());
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698