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

Side by Side Diff: sky/engine/core/rendering/RenderLayer.h

Issue 925903005: Remove unnecessary operator overload on RenderLayer::hitTest. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | sky/engine/core/rendering/RenderLayer.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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons t; 143 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons t;
144 144
145 const RenderLayer* compositingContainer() const; 145 const RenderLayer* compositingContainer() const;
146 RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const; 146 RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const;
147 bool hasAncestorWithFilterOutsets() const; 147 bool hasAncestorWithFilterOutsets() const;
148 148
149 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co nst; 149 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co nst;
150 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con st; 150 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con st;
151 151
152 // The two main functions that use the layer system. The paint method 152 // The hitTest method looks for mouse events by walking
153 // paints the layers that intersect the damage rect from back to
154 // front. The hitTest method looks for mouse events by walking
155 // layers that intersect the point from front to back. 153 // layers that intersect the point from front to back.
156 bool hitTest(const HitTestRequest&, HitTestResult&);
157 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); 154 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&);
158 155
159 // Pass offsetFromRoot if known. 156 // Pass offsetFromRoot if known.
160 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0) const; 157 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0) const;
161 158
162 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know n. 159 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know n.
163 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou tPoint* offsetFromRoot = 0) const; 160 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou tPoint* offsetFromRoot = 0) const;
164 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; 161 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const;
165 162
166 // If true, this layer's children are included in its bounds for overlap tes ting. 163 // If true, this layer's children are included in its bounds for overlap tes ting.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 353
357 } // namespace blink 354 } // namespace blink
358 355
359 #ifndef NDEBUG 356 #ifndef NDEBUG
360 // Outside the WebCore namespace for ease of invocation from gdb. 357 // Outside the WebCore namespace for ease of invocation from gdb.
361 void showLayerTree(const blink::RenderLayer*); 358 void showLayerTree(const blink::RenderLayer*);
362 void showLayerTree(const blink::RenderObject*); 359 void showLayerTree(const blink::RenderObject*);
363 #endif 360 #endif
364 361
365 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ 362 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698