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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.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 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 6 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 30 matching lines...) Expand all
41 41
42 LayoutImageResource* imageResource() { return m_imageResource.get(); } 42 LayoutImageResource* imageResource() { return m_imageResource.get(); }
43 const LayoutImageResource* imageResource() const { 43 const LayoutImageResource* imageResource() const {
44 return m_imageResource.get(); 44 return m_imageResource.get();
45 } 45 }
46 46
47 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; } 47 FloatRect objectBoundingBox() const override { return m_objectBoundingBox; }
48 bool isOfType(LayoutObjectType type) const override { 48 bool isOfType(LayoutObjectType type) const override {
49 return type == LayoutObjectSVGImage || LayoutSVGModelObject::isOfType(type); 49 return type == LayoutObjectSVGImage || LayoutSVGModelObject::isOfType(type);
50 } 50 }
51 char objectSize() const override { return sizeof(this); }
51 52
52 const char* name() const override { return "LayoutSVGImage"; } 53 const char* name() const override { return "LayoutSVGImage"; }
53 54
54 protected: 55 protected:
55 void willBeDestroyed() override; 56 void willBeDestroyed() override;
56 57
57 private: 58 private:
58 FloatRect strokeBoundingBox() const override { return m_objectBoundingBox; } 59 FloatRect strokeBoundingBox() const override { return m_objectBoundingBox; }
59 60
60 void addOutlineRects(Vector<LayoutRect>&, 61 void addOutlineRects(Vector<LayoutRect>&,
(...skipping 22 matching lines...) Expand all
83 AffineTransform m_localTransform; 84 AffineTransform m_localTransform;
84 FloatRect m_objectBoundingBox; 85 FloatRect m_objectBoundingBox;
85 Persistent<LayoutImageResource> m_imageResource; 86 Persistent<LayoutImageResource> m_imageResource;
86 }; 87 };
87 88
88 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGImage, isSVGImage()); 89 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGImage, isSVGImage());
89 90
90 } // namespace blink 91 } // namespace blink
91 92
92 #endif // LayoutSVGImage_h 93 #endif // LayoutSVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698