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

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

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 LayoutGeometryMap&) const final; 69 LayoutGeometryMap&) const final;
70 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 70 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
71 71
72 void computeLayerHitTestRects(LayerHitTestRects&) const final; 72 void computeLayerHitTestRects(LayerHitTestRects&) const final;
73 73
74 SVGElement* element() const { return toSVGElement(LayoutObject::node()); } 74 SVGElement* element() const { return toSVGElement(LayoutObject::node()); }
75 75
76 bool isOfType(LayoutObjectType type) const override { 76 bool isOfType(LayoutObjectType type) const override {
77 return type == LayoutObjectSVG || LayoutObject::isOfType(type); 77 return type == LayoutObjectSVG || LayoutObject::isOfType(type);
78 } 78 }
79 char objectSize() const override { return sizeof(this); }
79 80
80 protected: 81 protected:
81 void addLayerHitTestRects(LayerHitTestRects&, 82 void addLayerHitTestRects(LayerHitTestRects&,
82 const PaintLayer* currentCompositedLayer, 83 const PaintLayer* currentCompositedLayer,
83 const LayoutPoint& layerOffset, 84 const LayoutPoint& layerOffset,
84 const LayoutRect& containerRect) const final; 85 const LayoutRect& containerRect) const final;
85 void willBeDestroyed() override; 86 void willBeDestroyed() override;
86 87
87 private: 88 private:
88 // LayoutSVGModelObject subclasses should use element() instead. 89 // LayoutSVGModelObject subclasses should use element() instead.
89 void node() const = delete; 90 void node() const = delete;
90 91
91 // 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
92 bool nodeAtPoint(HitTestResult&, 93 bool nodeAtPoint(HitTestResult&,
93 const HitTestLocation& locationInContainer, 94 const HitTestLocation& locationInContainer,
94 const LayoutPoint& accumulatedOffset, 95 const LayoutPoint& accumulatedOffset,
95 HitTestAction) final; 96 HitTestAction) final;
96 IntRect absoluteElementBoundingBoxRect() const final; 97 IntRect absoluteElementBoundingBoxRect() const final;
97 98
98 protected: 99 protected:
99 FloatRect m_localVisualRect; 100 FloatRect m_localVisualRect;
100 }; 101 };
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif 105 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698