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

Side by Side Diff: Source/core/layout/HitTestCache.cpp

Issue 1185923002: Oilpan: fix build after r197063, move HitTestCache to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add TODO for HitTestResult's trait override 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 unified diff | Download patch
« no previous file with comments | « Source/core/layout/HitTestCache.h ('k') | Source/core/layout/HitTestResult.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/layout/HitTestCache.h" 6 #include "core/layout/HitTestCache.h"
7 7
8 #include "public/platform/Platform.h" 8 #include "public/platform/Platform.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (m_updateIndex >= HIT_TEST_CACHE_SIZE) 70 if (m_updateIndex >= HIT_TEST_CACHE_SIZE)
71 m_updateIndex = 0; 71 m_updateIndex = 0;
72 } 72 }
73 73
74 void HitTestCache::clear() 74 void HitTestCache::clear()
75 { 75 {
76 m_updateIndex = 0; 76 m_updateIndex = 0;
77 m_items.clear(); 77 m_items.clear();
78 } 78 }
79 79
80 DEFINE_TRACE(HitTestCache)
81 {
82 visitor->trace(m_items);
83 }
84
80 } // namespace blink 85 } // namespace blink
OLDNEW
« 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