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

Side by Side Diff: Source/core/rendering/svg/RenderSVGModelObject.h

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE FINAL; 60 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE FINAL;
61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
62 62
63 static bool checkIntersection(RenderObject*, const SVGRect&); 63 static bool checkIntersection(RenderObject*, const SVGRect&);
64 static bool checkEnclosure(RenderObject*, const SVGRect&); 64 static bool checkEnclosure(RenderObject*, const SVGRect&);
65 65
66 virtual FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return repaintRectInLocalCoordinates(); } 66 virtual FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return repaintRectInLocalCoordinates(); }
67 bool hasSVGShadow() const { return m_hasSVGShadow; } 67 bool hasSVGShadow() const { return m_hasSVGShadow; }
68 void setHasSVGShadow(bool hasShadow) { m_hasSVGShadow = hasShadow; } 68 void setHasSVGShadow(bool hasShadow) { m_hasSVGShadow = hasShadow; }
69 69
70 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE;
71
70 protected: 72 protected:
73 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE;
71 virtual void willBeDestroyed(); 74 virtual void willBeDestroyed();
72 75
73 private: 76 private:
74 // This method should never be called, SVG uses a different nodeAtPoint meth od 77 // This method should never be called, SVG uses a different nodeAtPoint meth od
75 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE; 78 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE;
76 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; 79 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL;
77 bool m_hasSVGShadow; 80 bool m_hasSVGShadow;
78 }; 81 };
79 82
80 } 83 }
81 84
82 #endif 85 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/rendering/svg/RenderSVGModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698