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

Unified Diff: Source/platform/geometry/LayoutRect.h

Issue 1142283004: Implement a Hit Test Cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix comments from tdresser Created 5 years, 6 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/platform/geometry/LayoutRect.h
diff --git a/Source/platform/geometry/LayoutRect.h b/Source/platform/geometry/LayoutRect.h
index bfe86fc69df82597a74d943458c7383b035a559e..ac4407bdd43e96c79077cb04e322e5225cd729dc 100644
--- a/Source/platform/geometry/LayoutRect.h
+++ b/Source/platform/geometry/LayoutRect.h
@@ -236,6 +236,10 @@ inline IntRect pixelSnappedIntRect(const LayoutRect& rect)
PLATFORM_EXPORT IntRect enclosingIntRect(const LayoutRect&);
PLATFORM_EXPORT LayoutRect enclosingLayoutRect(const FloatRect&);
+// Returns a layout rect with minimum size for width and height that contains
+// |point|.
+PLATFORM_EXPORT LayoutRect boundingRect(const LayoutPoint&);
+
inline IntRect pixelSnappedIntRect(LayoutUnit left, LayoutUnit top, LayoutUnit width, LayoutUnit height)
{
return IntRect(left.round(), top.round(), snapSizeToPixel(width, left), snapSizeToPixel(height, top));

Powered by Google App Engine
This is Rietveld 408576698