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

Unified Diff: Source/platform/LayoutUnit.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/LayoutUnit.h
diff --git a/Source/platform/LayoutUnit.h b/Source/platform/LayoutUnit.h
index 95e33a16dc1cd9bab3d9f2c16663103960e89de2..711042b69eb9fdad07d3381e0a67608be1c539e9 100644
--- a/Source/platform/LayoutUnit.h
+++ b/Source/platform/LayoutUnit.h
@@ -170,6 +170,13 @@ public:
static float epsilon() { return 1.0f / kFixedPointDenominator; }
+ static const LayoutUnit epsilonUnit()
+ {
+ LayoutUnit m;
+ m.m_value = 1;
+ return m;
+ }
+
static const LayoutUnit max()
{
LayoutUnit m;

Powered by Google App Engine
This is Rietveld 408576698