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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGModelObject.h

Issue 2570223002: [SPv2] Associate effect property nodes for SVG paint chunks (Closed)
Patch Set: rebased Created 4 years 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 69 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
70 70
71 void computeLayerHitTestRects(LayerHitTestRects&) const final; 71 void computeLayerHitTestRects(LayerHitTestRects&) const final;
72 72
73 SVGElement* element() const { return toSVGElement(LayoutObject::node()); } 73 SVGElement* element() const { return toSVGElement(LayoutObject::node()); }
74 74
75 bool isOfType(LayoutObjectType type) const override { 75 bool isOfType(LayoutObjectType type) const override {
76 return type == LayoutObjectSVG || LayoutObject::isOfType(type); 76 return type == LayoutObjectSVG || LayoutObject::isOfType(type);
77 } 77 }
78 78
79 bool hasNonIsolatedBlendingDescendants() const override { return false; }
80
79 protected: 81 protected:
80 void addLayerHitTestRects(LayerHitTestRects&, 82 void addLayerHitTestRects(LayerHitTestRects&,
81 const PaintLayer* currentCompositedLayer, 83 const PaintLayer* currentCompositedLayer,
82 const LayoutPoint& layerOffset, 84 const LayoutPoint& layerOffset,
83 const LayoutRect& containerRect) const final; 85 const LayoutRect& containerRect) const final;
84 void willBeDestroyed() override; 86 void willBeDestroyed() override;
85 87
86 private: 88 private:
87 // LayoutSVGModelObject subclasses should use element() instead. 89 // LayoutSVGModelObject subclasses should use element() instead.
88 void node() const = delete; 90 void node() const = delete;
89 91
90 // This method should never be called, SVG uses a different nodeAtPoint method 92 // This method should never be called, SVG uses a different nodeAtPoint method
91 bool nodeAtPoint(HitTestResult&, 93 bool nodeAtPoint(HitTestResult&,
92 const HitTestLocation& locationInContainer, 94 const HitTestLocation& locationInContainer,
93 const LayoutPoint& accumulatedOffset, 95 const LayoutPoint& accumulatedOffset,
94 HitTestAction) final; 96 HitTestAction) final;
95 IntRect absoluteElementBoundingBoxRect() const final; 97 IntRect absoluteElementBoundingBoxRect() const final;
96 98
97 protected: 99 protected:
98 FloatRect m_localVisualRect; 100 FloatRect m_localVisualRect;
99 }; 101 };
100 102
101 } // namespace blink 103 } // namespace blink
102 104
103 #endif 105 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698