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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBR.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 FloatRect* /* glyphBounds */ = nullptr) const override { 56 FloatRect* /* glyphBounds */ = nullptr) const override {
57 return 0; 57 return 0;
58 } 58 }
59 59
60 int lineHeight(bool firstLine) const; 60 int lineHeight(bool firstLine) const;
61 61
62 bool isOfType(LayoutObjectType type) const override { 62 bool isOfType(LayoutObjectType type) const override {
63 return type == LayoutObjectBr || LayoutText::isOfType(type); 63 return type == LayoutObjectBr || LayoutText::isOfType(type);
64 } 64 }
65 65
66 char objectSize() const override { return sizeof(this); }
67
66 int caretMinOffset() const override; 68 int caretMinOffset() const override;
67 int caretMaxOffset() const override; 69 int caretMaxOffset() const override;
68 70
69 PositionWithAffinity positionForPoint(const LayoutPoint&) final; 71 PositionWithAffinity positionForPoint(const LayoutPoint&) final;
70 72
71 protected: 73 protected:
72 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 74 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
73 }; 75 };
74 76
75 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBR, isBR()); 77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBR, isBR());
76 78
77 } // namespace blink 79 } // namespace blink
78 80
79 #endif // LayoutBR_h 81 #endif // LayoutBR_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698