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

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

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. 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
« no previous file with comments | « Source/core/rendering/RenderInline.h ('k') | Source/core/rendering/RenderListBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // This is null for anonymous renderers. 55 // This is null for anonymous renderers.
56 ContainerNode* node() const { return toContainerNode(RenderObject::node()); } 56 ContainerNode* node() const { return toContainerNode(RenderObject::node()); }
57 57
58 protected: 58 protected:
59 void ensureLayer(); 59 void ensureLayer();
60 60
61 virtual void willBeDestroyed() OVERRIDE; 61 virtual void willBeDestroyed() OVERRIDE;
62 62
63 private: 63 private:
64 virtual bool isLayerModelObject() const OVERRIDE { return true; } 64 virtual bool isLayerModelObject() const OVERRIDE FINAL { return true; }
65 65
66 RenderLayer* m_layer; 66 RenderLayer* m_layer;
67 67
68 // Used to store state between styleWillChange and styleDidChange 68 // Used to store state between styleWillChange and styleDidChange
69 static bool s_wasFloating; 69 static bool s_wasFloating;
70 static bool s_hadLayer; 70 static bool s_hadLayer;
71 static bool s_hadTransform; 71 static bool s_hadTransform;
72 static bool s_layerWasSelfPainting; 72 static bool s_layerWasSelfPainting;
73 }; 73 };
74 74
75 inline RenderLayerModelObject* toRenderLayerModelObject(RenderObject* object) 75 inline RenderLayerModelObject* toRenderLayerModelObject(RenderObject* object)
76 { 76 {
77 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject()); 77 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
78 return static_cast<RenderLayerModelObject*>(object); 78 return static_cast<RenderLayerModelObject*>(object);
79 } 79 }
80 80
81 inline const RenderLayerModelObject* toRenderLayerModelObject(const RenderObject * object) 81 inline const RenderLayerModelObject* toRenderLayerModelObject(const RenderObject * object)
82 { 82 {
83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject()); 83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isLayerModelObject());
84 return static_cast<const RenderLayerModelObject*>(object); 84 return static_cast<const RenderLayerModelObject*>(object);
85 } 85 }
86 86
87 // This will catch anyone doing an unnecessary cast. 87 // This will catch anyone doing an unnecessary cast.
88 void toRenderLayerModelObject(const RenderLayerModelObject*); 88 void toRenderLayerModelObject(const RenderLayerModelObject*);
89 89
90 } // namespace WebCore 90 } // namespace WebCore
91 91
92 #endif // RenderLayerModelObject_h 92 #endif // RenderLayerModelObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInline.h ('k') | Source/core/rendering/RenderListBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698