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

Unified Diff: sky/engine/core/rendering/RenderBox.h

Issue 945693002: Move hit testing out of RenderLayer into RenderBox. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add to test case 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderBox.h
diff --git a/sky/engine/core/rendering/RenderBox.h b/sky/engine/core/rendering/RenderBox.h
index 78234325467caffd4c6ad44b863f9ade720e35eb..073ed3bddb85140fedb6d0edfb58a4671c2c9e16 100644
--- a/sky/engine/core/rendering/RenderBox.h
+++ b/sky/engine/core/rendering/RenderBox.h
@@ -30,6 +30,7 @@ namespace blink {
struct LayerPaintingInfo;
struct PaintInfo;
+class HitTestingTransformState;
class RenderBlockFlow;
enum SizeType { MainOrPreferredSize, MinSize, MaxSize };
@@ -268,6 +269,11 @@ public:
virtual void absoluteQuads(Vector<FloatQuad>&) const override;
+ bool hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLayer,
+ const HitTestRequest& request, HitTestResult& result,
+ const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation,
+ const HitTestingTransformState* transformState = 0, double* zOffset = 0);
+
void paintLayer(GraphicsContext* context, RenderLayer* rootLayer, const IntRect& rect);
virtual void layout() override;
@@ -467,6 +473,13 @@ protected:
void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
private:
+ PassRefPtr<HitTestingTransformState> createLocalTransformState(
+ RenderLayer* rootLayer, RenderLayer* containerLayer,
+ const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation,
+ const HitTestingTransformState* containerTransformState) const;
+ bool hitTestNonLayerDescendants(const HitTestRequest& request, HitTestResult& result,
+ const LayoutRect& layerBounds, const HitTestLocation& hitTestLocation);
+
void paintLayerContents(GraphicsContext* context, const LayerPaintingInfo& paintingInfo, const IntRect& rect);
void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logicalLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&) const;
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698