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

Side by Side Diff: Source/core/rendering/RenderLayerModelObject.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. 5 * Copyright (C) 2010, 2012 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE; 43 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE;
44 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 44 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
45 virtual void updateFromStyle() { } 45 virtual void updateFromStyle() { }
46 46
47 virtual bool requiresLayer() const = 0; 47 virtual bool requiresLayer() const = 0;
48 48
49 // Returns true if the background is painted opaque in the given rect. 49 // Returns true if the background is painted opaque in the given rect.
50 // The query rect is given in local coordinate system. 50 // The query rect is given in local coordinate system.
51 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const { re turn false; } 51 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const { re turn false; }
52 52
53 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
54
55 // This is null for anonymous renderers. 53 // This is null for anonymous renderers.
56 ContainerNode* node() const { return toContainerNode(RenderObject::node()); } 54 ContainerNode* node() const { return toContainerNode(RenderObject::node()); }
57 55
58 protected: 56 protected:
59 void ensureLayer(); 57 void ensureLayer();
60 58
61 virtual void willBeDestroyed() OVERRIDE; 59 virtual void willBeDestroyed() OVERRIDE;
62 60
63 private: 61 private:
64 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; } 62 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; }
(...skipping 18 matching lines...) Expand all
83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject()); 81 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
84 return static_cast<const RenderLayerModelObject*>(object); 82 return static_cast<const RenderLayerModelObject*>(object);
85 } 83 }
86 84
87 // This will catch anyone doing an unnecessary cast. 85 // This will catch anyone doing an unnecessary cast.
88 void toRenderLayerModelObject(const RenderLayerModelObject*); 86 void toRenderLayerModelObject(const RenderLayerModelObject*);
89 87
90 } // namespace WebCore 88 } // namespace WebCore
91 89
92 #endif // RenderLayerModelObject_h 90 #endif // RenderLayerModelObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | Source/core/rendering/RenderLayerModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698