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

Unified Diff: Source/core/layout/LayoutView.h

Issue 1177123003: Revert "Implement a Hit Test Cache for same point hits." (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/layout/LayoutPart.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutView.h
diff --git a/Source/core/layout/LayoutView.h b/Source/core/layout/LayoutView.h
index c09b84d7628076b0b080b9281411d0ad8c2f4876..c4d6aeb2277a7f25503cbba87b2396ec5e127a5c 100644
--- a/Source/core/layout/LayoutView.h
+++ b/Source/core/layout/LayoutView.h
@@ -25,8 +25,6 @@
#include "core/CoreExport.h"
#include "core/dom/Position.h"
#include "core/frame/FrameView.h"
-#include "core/layout/HitTestCache.h"
-#include "core/layout/HitTestResult.h"
#include "core/layout/LayoutBlockFlow.h"
#include "core/layout/LayoutState.h"
#include "core/layout/PaintInvalidationState.h"
@@ -53,12 +51,10 @@ public:
void willBeDestroyed() override;
bool hitTest(HitTestResult&);
+ bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&);
// Returns the total count of calls to HitTest, for testing.
unsigned hitTestCount() const { return m_hitTestCount; }
- unsigned hitTestCacheHits() const { return m_hitTestCacheHits; }
-
- void clearHitTestCache() { m_hitTestCache.clear(); }
virtual const char* name() const override { return "LayoutView"; }
@@ -217,8 +213,6 @@ private:
unsigned m_layoutCounterCount;
unsigned m_hitTestCount;
- unsigned m_hitTestCacheHits;
- HitTestCache m_hitTestCache;
OwnPtrWillBePersistent<PendingSelection> m_pendingSelection;
};
« no previous file with comments | « Source/core/layout/LayoutPart.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698