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

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

Issue 185333004: [SVG] Refactor getIntersectionList() and getEnclosureList() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Copyright notice update. Created 6 years, 9 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 | Annotate | Revision Log
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; 56 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL;
57 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL; 57 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL;
58 58
59 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE FINAL; 59 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE FINAL;
60 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E; 60 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E;
61 61
62 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL; 62 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL;
63 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; 63 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL;
64 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 64 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
65 65
66 static bool checkIntersection(RenderObject*, const FloatRect&);
67 static bool checkEnclosure(RenderObject*, const FloatRect&);
68
69 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE FIN AL; 66 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE FIN AL;
70 67
71 SVGElement* element() const { return toSVGElement(RenderObject::node()); } 68 SVGElement* element() const { return toSVGElement(RenderObject::node()); }
72 69
73 virtual bool isSVG() const OVERRIDE FINAL { return true; } 70 virtual bool isSVG() const OVERRIDE FINAL { return true; }
74 71
75 protected: 72 protected:
76 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE FINAL; 73 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE FINAL;
77 virtual void willBeDestroyed() OVERRIDE; 74 virtual void willBeDestroyed() OVERRIDE;
78 75
79 private: 76 private:
80 // RenderSVGModelObject subclasses should use element() instead. 77 // RenderSVGModelObject subclasses should use element() instead.
81 void node() const WTF_DELETED_FUNCTION; 78 void node() const WTF_DELETED_FUNCTION;
82 79
83 // This method should never be called, SVG uses a different nodeAtPoint meth od 80 // This method should never be called, SVG uses a different nodeAtPoint meth od
84 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL; 81 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL;
85 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; 82 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL;
86 }; 83 };
87 84
88 } 85 }
89 86
90 #endif 87 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698