| Index: Source/core/layout/LayoutView.cpp
|
| diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
|
| index 7a238a869915e265c84a237673b426aad83a2e71..2d0d8aaa1f1c769adb942329cbc1df38df103853 100644
|
| --- a/Source/core/layout/LayoutView.cpp
|
| +++ b/Source/core/layout/LayoutView.cpp
|
| @@ -64,7 +64,6 @@ LayoutView::LayoutView(Document* document)
|
| , m_layoutCounterCount(0)
|
| , m_hitTestCount(0)
|
| , m_hitTestCacheHits(0)
|
| - , m_hitTestCache(HitTestCache::create())
|
| , m_pendingSelection(PendingSelection::create())
|
| {
|
| // init LayoutObject attributes
|
| @@ -99,7 +98,7 @@ bool LayoutView::hitTest(HitTestResult& result)
|
|
|
| uint64_t domTreeVersion = document().domTreeVersion();
|
| HitTestResult cacheResult = result;
|
| - bool cacheHit = m_hitTestCache->lookupCachedResult(cacheResult, domTreeVersion);
|
| + bool cacheHit = m_hitTestCache.lookupCachedResult(cacheResult, domTreeVersion);
|
| bool hitLayer = layer()->hitTest(result);
|
|
|
| // FrameView scrollbars are not the same as Layer scrollbars tested by Layer::hitTestOverflowControls,
|
| @@ -111,11 +110,11 @@ bool LayoutView::hitTest(HitTestResult& result)
|
|
|
| if (cacheHit) {
|
| m_hitTestCacheHits++;
|
| - m_hitTestCache->verifyCachedResult(result, cacheResult);
|
| + m_hitTestCache.verifyCachedResult(result, cacheResult);
|
| }
|
|
|
| if (hitLayer) {
|
| - m_hitTestCache->addCachedResult(result, domTreeVersion);
|
| + m_hitTestCache.addCachedResult(result, domTreeVersion);
|
|
|
| if (layer()->graphicsLayerBacking()) {
|
| layer()->graphicsLayerBacking()->platformLayer()->setHitTestCacheRect(enclosingIntRect(result.validityRect()));
|
|
|