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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. 4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 26 matching lines...) Expand all
37 37
38 enum PluginAvailability { 38 enum PluginAvailability {
39 PluginAvailable, 39 PluginAvailable,
40 PluginMissing, 40 PluginMissing,
41 PluginBlockedByContentSecurityPolicy, 41 PluginBlockedByContentSecurityPolicy,
42 }; 42 };
43 void setPluginAvailability(PluginAvailability); 43 void setPluginAvailability(PluginAvailability);
44 bool showsUnavailablePluginIndicator() const; 44 bool showsUnavailablePluginIndicator() const;
45 45
46 const char* name() const override { return "LayoutEmbeddedObject"; } 46 const char* name() const override { return "LayoutEmbeddedObject"; }
47 char objectSize() const override { return sizeof(this); }
47 48
48 const String& unavailablePluginReplacementText() const { 49 const String& unavailablePluginReplacementText() const {
49 return m_unavailablePluginReplacementText; 50 return m_unavailablePluginReplacementText;
50 } 51 }
51 52
52 private: 53 private:
53 void paintContents(const PaintInfo&, const LayoutPoint&) const final; 54 void paintContents(const PaintInfo&, const LayoutPoint&) const final;
54 void paintReplaced(const PaintInfo&, const LayoutPoint&) const final; 55 void paintReplaced(const PaintInfo&, const LayoutPoint&) const final;
55 void paint(const PaintInfo&, const LayoutPoint&) const final; 56 void paint(const PaintInfo&, const LayoutPoint&) const final;
56 PaintInvalidationReason invalidatePaintIfNeeded( 57 PaintInvalidationReason invalidatePaintIfNeeded(
(...skipping 14 matching lines...) Expand all
71 72
72 PluginAvailability m_pluginAvailability = PluginAvailable; 73 PluginAvailability m_pluginAvailability = PluginAvailable;
73 String m_unavailablePluginReplacementText; 74 String m_unavailablePluginReplacementText;
74 }; 75 };
75 76
76 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, isEmbeddedObject()); 77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, isEmbeddedObject());
77 78
78 } // namespace blink 79 } // namespace blink
79 80
80 #endif // LayoutEmbeddedObject_h 81 #endif // LayoutEmbeddedObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutDetailsMarker.h ('k') | third_party/WebKit/Source/core/layout/LayoutFieldset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698