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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestLocation.h

Issue 1780673002: Simplify CullRect computation in LineBoxList::hitTest; fixing off-by-one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@svg-text-hittest-no-floor
Patch Set: Created 4 years, 9 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/core/layout/HitTestLocation.h
diff --git a/third_party/WebKit/Source/core/layout/HitTestLocation.h b/third_party/WebKit/Source/core/layout/HitTestLocation.h
index a89241b79eecfdba0fcdb0339af89061368da07a..6fef9bd636127364585ee13fa2c743b62bcce7ed 100644
--- a/third_party/WebKit/Source/core/layout/HitTestLocation.h
+++ b/third_party/WebKit/Source/core/layout/HitTestLocation.h
@@ -62,10 +62,6 @@ public:
IntRect boundingBox() const { return m_boundingBox; }
static IntRect rectForPoint(const LayoutPoint&, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding);
- int topPadding() const { return roundedPoint().y() - m_boundingBox.y(); }
- int rightPadding() const { return m_boundingBox.maxX() - roundedPoint().x() - 1; }
- int bottomPadding() const { return m_boundingBox.maxY() - roundedPoint().y() - 1; }
- int leftPadding() const { return roundedPoint().x() - m_boundingBox.x(); }
bool intersects(const LayoutRect&) const;
bool intersects(const FloatRect&) const;

Powered by Google App Engine
This is Rietveld 408576698