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

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

Issue 1294913004: Enable HitTestCache by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout test Created 5 years, 4 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/HitTestCache.h ('k') | Source/core/layout/HitTestResult.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/HitTestCache.cpp
diff --git a/Source/core/layout/HitTestCache.cpp b/Source/core/layout/HitTestCache.cpp
index 8ab3377278f84a396d7067cc8e9b4174c35650ab..4c6fbe1512a6a881b529178e0887ac1e94158674 100644
--- a/Source/core/layout/HitTestCache.cpp
+++ b/Source/core/layout/HitTestCache.cpp
@@ -33,21 +33,6 @@ bool HitTestCache::lookupCachedResult(HitTestResult& hitResult, uint64_t domTree
return result;
}
-void HitTestCache::verifyCachedResult(const HitTestResult& expected, const HitTestResult& actual)
-{
- ValidityHistogramMetric metric;
- if (!actual.equalForCacheability(expected)) {
- metric = expected.hitTestLocation().isRectBasedTest() ? ValidityHistogramMetric::INCORRECT_RECT_BASED_EXACT_MATCH : ValidityHistogramMetric::INCORRECT_POINT_EXACT_MATCH;
- Platform::current()->histogramSparse("Event.HitTestValidityScore", static_cast<int>(actual.equalityScore(expected)));
-
- // ASSERT that the cache hit is the same as the actual result.
- ASSERT_NOT_REACHED();
- } else {
- metric = ValidityHistogramMetric::VALID_EXACT_MATCH;
- }
- Platform::current()->histogramEnumeration("Event.HitTestValidity", static_cast<int>(metric), static_cast<int>(ValidityHistogramMetric::MAX_VALIDITY_METRIC));
-}
-
void HitTestCache::addCachedResult(const HitTestResult& result, uint64_t domTreeVersion)
{
if (!result.isCacheable())
« no previous file with comments | « Source/core/layout/HitTestCache.h ('k') | Source/core/layout/HitTestResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698