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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutQuote.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) 2011 Nokia Inc. All rights reserved. 2 * Copyright (C) 2011 Nokia Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 const char* name() const override { return "LayoutQuote"; } 47 const char* name() const override { return "LayoutQuote"; }
48 48
49 private: 49 private:
50 void detachQuote(); 50 void detachQuote();
51 51
52 void willBeDestroyed() override; 52 void willBeDestroyed() override;
53 bool isOfType(LayoutObjectType type) const override { 53 bool isOfType(LayoutObjectType type) const override {
54 return type == LayoutObjectQuote || LayoutInline::isOfType(type); 54 return type == LayoutObjectQuote || LayoutInline::isOfType(type);
55 } 55 }
56 char objectSize() const override { return sizeof(this); }
56 void styleDidChange(StyleDifference, const ComputedStyle*) override; 57 void styleDidChange(StyleDifference, const ComputedStyle*) override;
57 void willBeRemovedFromTree() override; 58 void willBeRemovedFromTree() override;
58 59
59 String computeText() const; 60 String computeText() const;
60 void updateText(); 61 void updateText();
61 const QuotesData* quotesData() const; 62 const QuotesData* quotesData() const;
62 void updateDepth(); 63 void updateDepth();
63 bool isAttached() { return m_attached; } 64 bool isAttached() { return m_attached; }
64 65
65 LayoutTextFragment* findFragmentChild() const; 66 LayoutTextFragment* findFragmentChild() const;
(...skipping 29 matching lines...) Expand all
95 96
96 // Cached text for this quote. 97 // Cached text for this quote.
97 String m_text; 98 String m_text;
98 }; 99 };
99 100
100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote()); 101 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote());
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif // LayoutQuote_h 105 #endif // LayoutQuote_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutProgress.h ('k') | third_party/WebKit/Source/core/layout/LayoutReplaced.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698