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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool mapToVisualRectInAncestorSpaceInternal( 58 bool mapToVisualRectInAncestorSpaceInternal(
59 const LayoutBoxModelObject* ancestor, 59 const LayoutBoxModelObject* ancestor,
60 TransformState&, 60 TransformState&,
61 VisualRectFlags = DefaultVisualRectFlags) const final; 61 VisualRectFlags = DefaultVisualRectFlags) const final;
62 62
63 AffineTransform m_localTransform; 63 AffineTransform m_localTransform;
64 64
65 bool isOfType(LayoutObjectType type) const override { 65 bool isOfType(LayoutObjectType type) const override {
66 return type == LayoutObjectSVG || LayoutBlockFlow::isOfType(type); 66 return type == LayoutObjectSVG || LayoutBlockFlow::isOfType(type);
67 } 67 }
68 char objectSize() const override { return sizeof(this); }
68 69
69 private: 70 private:
70 LayoutRect absoluteVisualRect() const final; 71 LayoutRect absoluteVisualRect() const final;
71 72
72 bool allowsOverflowClip() const final; 73 bool allowsOverflowClip() const final;
73 74
74 void absoluteRects(Vector<IntRect>&, 75 void absoluteRects(Vector<IntRect>&,
75 const LayoutPoint& accumulatedOffset) const final; 76 const LayoutPoint& accumulatedOffset) const final;
76 77
77 void updateFromStyle() final; 78 void updateFromStyle() final;
78 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; 79 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
79 80
80 bool nodeAtPoint(HitTestResult&, 81 bool nodeAtPoint(HitTestResult&,
81 const HitTestLocation& locationInContainer, 82 const HitTestLocation& locationInContainer,
82 const LayoutPoint& accumulatedOffset, 83 const LayoutPoint& accumulatedOffset,
83 HitTestAction) override; 84 HitTestAction) override;
84 85
85 // The inherited version doesn't check for SVG effects. 86 // The inherited version doesn't check for SVG effects.
86 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override { 87 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const override {
87 return false; 88 return false;
88 } 89 }
89 }; 90 };
90 91
91 } // namespace blink 92 } // namespace blink
92 #endif // LayoutSVGBlock_h 93 #endif // LayoutSVGBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698