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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
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 23 matching lines...) Expand all
34 34
35 const char* name() const override { return "LayoutSVGHiddenContainer"; } 35 const char* name() const override { return "LayoutSVGHiddenContainer"; }
36 36
37 protected: 37 protected:
38 void layout() override; 38 void layout() override;
39 39
40 bool isOfType(LayoutObjectType type) const override { 40 bool isOfType(LayoutObjectType type) const override {
41 return type == LayoutObjectSVGHiddenContainer || 41 return type == LayoutObjectSVGHiddenContainer ||
42 LayoutSVGContainer::isOfType(type); 42 LayoutSVGContainer::isOfType(type);
43 } 43 }
44 char objectSize() const override { return sizeof(this); }
44 45
45 private: 46 private:
46 // LayoutSVGHiddenContainer paints nothing. 47 // LayoutSVGHiddenContainer paints nothing.
47 void paint(const PaintInfo&, const LayoutPoint&) const final {} 48 void paint(const PaintInfo&, const LayoutPoint&) const final {}
48 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { 49 bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final {
49 return true; 50 return true;
50 } 51 }
51 LayoutRect absoluteVisualRect() const final { return LayoutRect(); } 52 LayoutRect absoluteVisualRect() const final { return LayoutRect(); }
52 FloatRect visualRectInLocalSVGCoordinates() const final { 53 FloatRect visualRectInLocalSVGCoordinates() const final {
53 return FloatRect(); 54 return FloatRect();
54 } 55 }
55 void absoluteQuads(Vector<FloatQuad>&, 56 void absoluteQuads(Vector<FloatQuad>&,
56 MapCoordinatesFlags mode = 0) const final {} 57 MapCoordinatesFlags mode = 0) const final {}
57 58
58 bool nodeAtFloatPoint(HitTestResult&, 59 bool nodeAtFloatPoint(HitTestResult&,
59 const FloatPoint& pointInParent, 60 const FloatPoint& pointInParent,
60 HitTestAction) final; 61 HitTestAction) final;
61 }; 62 };
62 } // namespace blink 63 } // namespace blink
63 64
64 #endif // LayoutSVGHiddenContainer_h 65 #endif // LayoutSVGHiddenContainer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698