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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTextControl.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, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. 3 * (C) 2008 Torch Mobile Inc. All rights reserved.
4 * (http://www.torchmobile.com/) 4 * (http://www.torchmobile.com/)
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 22 matching lines...) Expand all
33 33
34 class CORE_EXPORT LayoutTextControl : public LayoutBlockFlow { 34 class CORE_EXPORT LayoutTextControl : public LayoutBlockFlow {
35 public: 35 public:
36 ~LayoutTextControl() override; 36 ~LayoutTextControl() override;
37 37
38 TextControlElement* textControlElement() const; 38 TextControlElement* textControlElement() const;
39 virtual PassRefPtr<ComputedStyle> createInnerEditorStyle( 39 virtual PassRefPtr<ComputedStyle> createInnerEditorStyle(
40 const ComputedStyle& startStyle) const = 0; 40 const ComputedStyle& startStyle) const = 0;
41 41
42 const char* name() const override { return "LayoutTextControl"; } 42 const char* name() const override { return "LayoutTextControl"; }
43 char objectSize() const override { return sizeof(this); }
43 44
44 protected: 45 protected:
45 LayoutTextControl(TextControlElement*); 46 LayoutTextControl(TextControlElement*);
46 47
47 // This convenience function should not be made public because 48 // This convenience function should not be made public because
48 // innerEditorElement may outlive the layout tree. 49 // innerEditorElement may outlive the layout tree.
49 HTMLElement* innerEditorElement() const; 50 HTMLElement* innerEditorElement() const;
50 51
51 int scrollbarThickness() const; 52 int scrollbarThickness() const;
52 void adjustInnerEditorStyle(ComputedStyle& textBlockStyle) const; 53 void adjustInnerEditorStyle(ComputedStyle& textBlockStyle) const;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 126 }
126 int firstLineBoxBaseline() const override { 127 int firstLineBoxBaseline() const override {
127 return LayoutBlock::firstLineBoxBaseline(); 128 return LayoutBlock::firstLineBoxBaseline();
128 } 129 }
129 int inlineBlockBaseline(LineDirectionMode direction) const override { 130 int inlineBlockBaseline(LineDirectionMode direction) const override {
130 return LayoutBlock::inlineBlockBaseline(direction); 131 return LayoutBlock::inlineBlockBaseline(direction);
131 } 132 }
132 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override { 133 bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const override {
133 return true; 134 return true;
134 } 135 }
136
137 char objectSize() const override { return sizeof(this); }
135 }; 138 };
136 139
137 } // namespace blink 140 } // namespace blink
138 141
139 #endif // LayoutTextControl_h 142 #endif // LayoutTextControl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698