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

Side by Side Diff: Source/core/layout/HitTestResult.h

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 unified diff | Download patch
« no previous file with comments | « Source/core/layout/HitTestCache.cpp ('k') | Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 HitTestResult(const HitTestRequest&, const LayoutPoint&); 59 HitTestResult(const HitTestRequest&, const LayoutPoint&);
60 // Pass positive padding values to perform a rect-based hit test. 60 // Pass positive padding values to perform a rect-based hit test.
61 HitTestResult(const HitTestRequest&, const LayoutPoint& centerPoint, unsigne d topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPaddin g); 61 HitTestResult(const HitTestRequest&, const LayoutPoint& centerPoint, unsigne d topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPaddin g);
62 HitTestResult(const HitTestRequest&, const HitTestLocation&); 62 HitTestResult(const HitTestRequest&, const HitTestLocation&);
63 HitTestResult(const HitTestResult&); 63 HitTestResult(const HitTestResult&);
64 ~HitTestResult(); 64 ~HitTestResult();
65 HitTestResult& operator=(const HitTestResult&); 65 HitTestResult& operator=(const HitTestResult&);
66 DECLARE_TRACE(); 66 DECLARE_TRACE();
67 67
68 bool equalForCacheability(const HitTestResult&) const; 68 bool equalForCacheability(const HitTestResult&) const;
69 unsigned equalityScore(const HitTestResult&) const;
70 void cacheValues(const HitTestResult&); 69 void cacheValues(const HitTestResult&);
71 70
72 // Populate this object based on another HitTestResult; similar to assignmen t operator 71 // Populate this object based on another HitTestResult; similar to assignmen t operator
73 // but don't assign any of the request parameters. ie. Thie method avoids se tting 72 // but don't assign any of the request parameters. ie. Thie method avoids se tting
74 // |m_hitTestLocation|, |m_hitTestRequest|. 73 // |m_hitTestLocation|, |m_hitTestRequest|.
75 void populateFromCachedResult(const HitTestResult&); 74 void populateFromCachedResult(const HitTestResult&);
76 75
77 // For point-based hit tests, these accessors provide information about the node 76 // For point-based hit tests, these accessors provide information about the node
78 // under the point. For rect-based hit tests they are meaningless (reflect t he 77 // under the point. For rect-based hit tests they are meaningless (reflect t he
79 // last candidate node observed in the rect). 78 // last candidate node observed in the rect).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a LayoutPart for example). 168 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a LayoutPart for example).
170 169
171 mutable OwnPtrWillBeMember<NodeSet> m_listBasedTestResult; 170 mutable OwnPtrWillBeMember<NodeSet> m_listBasedTestResult;
172 }; 171 };
173 172
174 } // namespace blink 173 } // namespace blink
175 174
176 WTF_ALLOW_CLEAR_UNUSED_SLOTS_WITH_MEM_FUNCTIONS(blink::HitTestResult); 175 WTF_ALLOW_CLEAR_UNUSED_SLOTS_WITH_MEM_FUNCTIONS(blink::HitTestResult);
177 176
178 #endif // HitTestResult_h 177 #endif // HitTestResult_h
OLDNEW
« no previous file with comments | « Source/core/layout/HitTestCache.cpp ('k') | Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698