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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTextControlMultiLine.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) 2008 Torch Mobile Inc. All rights reserved. 2 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
3 * (http://www.torchmobile.com/) 3 * (http://www.torchmobile.com/)
4 * Copyright (C) 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2009 Apple Inc. All rights reserved.
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 21 matching lines...) Expand all
32 class LayoutTextControlMultiLine final : public LayoutTextControl { 32 class LayoutTextControlMultiLine final : public LayoutTextControl {
33 public: 33 public:
34 LayoutTextControlMultiLine(HTMLTextAreaElement*); 34 LayoutTextControlMultiLine(HTMLTextAreaElement*);
35 ~LayoutTextControlMultiLine() override; 35 ~LayoutTextControlMultiLine() override;
36 36
37 private: 37 private:
38 bool isOfType(LayoutObjectType type) const override { 38 bool isOfType(LayoutObjectType type) const override {
39 return type == LayoutObjectTextArea || LayoutTextControl::isOfType(type); 39 return type == LayoutObjectTextArea || LayoutTextControl::isOfType(type);
40 } 40 }
41 41
42 char objectSize() const override { return sizeof(this); }
43
42 bool nodeAtPoint(HitTestResult&, 44 bool nodeAtPoint(HitTestResult&,
43 const HitTestLocation& locationInContainer, 45 const HitTestLocation& locationInContainer,
44 const LayoutPoint& accumulatedOffset, 46 const LayoutPoint& accumulatedOffset,
45 HitTestAction) override; 47 HitTestAction) override;
46 48
47 float getAvgCharWidth(const AtomicString& family) const override; 49 float getAvgCharWidth(const AtomicString& family) const override;
48 LayoutUnit preferredContentLogicalWidth(float charWidth) const override; 50 LayoutUnit preferredContentLogicalWidth(float charWidth) const override;
49 LayoutUnit computeControlLogicalHeight( 51 LayoutUnit computeControlLogicalHeight(
50 LayoutUnit lineHeight, 52 LayoutUnit lineHeight,
51 LayoutUnit nonContentHeight) const override; 53 LayoutUnit nonContentHeight) const override;
(...skipping 10 matching lines...) Expand all
62 const ComputedStyle& startStyle) const override; 64 const ComputedStyle& startStyle) const override;
63 LayoutObject* layoutSpecialExcludedChild(bool relayoutChildren, 65 LayoutObject* layoutSpecialExcludedChild(bool relayoutChildren,
64 SubtreeLayoutScope&) override; 66 SubtreeLayoutScope&) override;
65 }; 67 };
66 68
67 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControlMultiLine, isTextArea()); 69 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTextControlMultiLine, isTextArea());
68 70
69 } // namespace blink 71 } // namespace blink
70 72
71 #endif 73 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698