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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutPart.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) 2006, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 LayoutRect replacedContentRect() const final; 53 LayoutRect replacedContentRect() const final;
54 54
55 void updateOnWidgetChange(); 55 void updateOnWidgetChange();
56 void updateGeometry(); 56 void updateGeometry();
57 57
58 bool isLayoutPart() const final { return true; } 58 bool isLayoutPart() const final { return true; }
59 virtual void paintContents(const PaintInfo&, const LayoutPoint&) const; 59 virtual void paintContents(const PaintInfo&, const LayoutPoint&) const;
60 60
61 bool isThrottledFrameView() const; 61 bool isThrottledFrameView() const;
62 62
63 char objectSize() const override { return sizeof(this); }
64
63 protected: 65 protected:
64 PaintLayerType layerTypeRequired() const override; 66 PaintLayerType layerTypeRequired() const override;
65 67
66 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; 68 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
67 void layout() override; 69 void layout() override;
68 void paint(const PaintInfo&, const LayoutPoint&) const override; 70 void paint(const PaintInfo&, const LayoutPoint&) const override;
69 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final; 71 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final;
70 72
71 // Overridden to invalidate the child frame if any. 73 // Overridden to invalidate the child frame if any.
72 void invalidatePaintOfSubtreesIfNeeded( 74 void invalidatePaintOfSubtreesIfNeeded(
(...skipping 12 matching lines...) Expand all
85 HitTestAction); 87 HitTestAction);
86 88
87 int m_refCount; 89 int m_refCount;
88 }; 90 };
89 91
90 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); 92 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart());
91 93
92 } // namespace blink 94 } // namespace blink
93 95
94 #endif // LayoutPart_h 96 #endif // LayoutPart_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.h ('k') | third_party/WebKit/Source/core/layout/LayoutProgress.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698