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

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: Various fixes and test additions 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE FINAL; 59 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE FINAL;
60 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 60 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
61 61
62 static bool checkIntersection(RenderObject*, const FloatRect&); 62 static bool checkIntersection(RenderObject*, const FloatRect&);
63 static bool checkEnclosure(RenderObject*, const FloatRect&); 63 static bool checkEnclosure(RenderObject*, const FloatRect&);
64 64
65 virtual FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return repaintRectInLocalCoordinates(); } 65 virtual FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return repaintRectInLocalCoordinates(); }
66 bool hasSVGShadow() const { return m_hasSVGShadow; } 66 bool hasSVGShadow() const { return m_hasSVGShadow; }
67 void setHasSVGShadow(bool hasShadow) { m_hasSVGShadow = hasShadow; } 67 void setHasSVGShadow(bool hasShadow) { m_hasSVGShadow = hasShadow; }
68 68
69 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE;
70
69 protected: 71 protected:
72 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset) const OVERRIDE;
70 virtual void willBeDestroyed(); 73 virtual void willBeDestroyed();
71 74
72 private: 75 private:
73 // This method should never be called, SVG uses a different nodeAtPoint meth od 76 // This method should never be called, SVG uses a different nodeAtPoint meth od
74 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE; 77 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE;
75 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; 78 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL;
76 bool m_hasSVGShadow; 79 bool m_hasSVGShadow;
77 }; 80 };
78 81
79 } 82 }
80 83
81 #endif 84 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698