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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutHTMLCanvas.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) 2004, 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 PaintInvalidationReason invalidatePaintIfNeeded( 44 PaintInvalidationReason invalidatePaintIfNeeded(
45 const PaintInvalidatorContext&) const final; 45 const PaintInvalidatorContext&) const final;
46 46
47 void canvasSizeChanged(); 47 void canvasSizeChanged();
48 48
49 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 49 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
50 50
51 const char* name() const override { return "LayoutHTMLCanvas"; } 51 const char* name() const override { return "LayoutHTMLCanvas"; }
52 52
53 char objectSize() const override { return sizeof(this); }
54
53 private: 55 private:
54 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override; 56 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override;
55 void intrinsicSizeChanged() override { canvasSizeChanged(); } 57 void intrinsicSizeChanged() override { canvasSizeChanged(); }
56 58
57 CompositingReasons additionalCompositingReasons() const override; 59 CompositingReasons additionalCompositingReasons() const override;
58 }; 60 };
59 61
60 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutHTMLCanvas, isCanvas()); 62 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutHTMLCanvas, isCanvas());
61 63
62 } // namespace blink 64 } // namespace blink
63 65
64 #endif // LayoutHTMLCanvas_h 66 #endif // LayoutHTMLCanvas_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFullScreen.h ('k') | third_party/WebKit/Source/core/layout/LayoutIFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698