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

Side by Side Diff: Source/core/rendering/RenderFrameSet.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/RenderFrame.h ('k') | Source/core/rendering/RenderFullScreen.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) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2006, 2008 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 bool allowBorder(FrameEdge edge) const { return m_allowBorder[edge]; } 46 bool allowBorder(FrameEdge edge) const { return m_allowBorder[edge]; }
47 47
48 void setPreventResize(FrameEdge edge, bool preventResize) { m_preventResize[ edge] = preventResize; } 48 void setPreventResize(FrameEdge edge, bool preventResize) { m_preventResize[ edge] = preventResize; }
49 void setAllowBorder(FrameEdge edge, bool allowBorder) { m_allowBorder[edge] = allowBorder; } 49 void setAllowBorder(FrameEdge edge, bool allowBorder) { m_allowBorder[edge] = allowBorder; }
50 50
51 private: 51 private:
52 Vector<bool> m_preventResize; 52 Vector<bool> m_preventResize;
53 Vector<bool> m_allowBorder; 53 Vector<bool> m_allowBorder;
54 }; 54 };
55 55
56 class RenderFrameSet : public RenderBox { 56 class RenderFrameSet FINAL : public RenderBox {
57 public: 57 public:
58 RenderFrameSet(HTMLFrameSetElement*); 58 RenderFrameSet(HTMLFrameSetElement*);
59 virtual ~RenderFrameSet(); 59 virtual ~RenderFrameSet();
60 60
61 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 61 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
62 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 62 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
63 63
64 const RenderObjectChildList* children() const { return &m_children; } 64 const RenderObjectChildList* children() const { return &m_children; }
65 RenderObjectChildList* children() { return &m_children; } 65 RenderObjectChildList* children() { return &m_children; }
66 66
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet()); 144 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFrameSet());
145 return static_cast<RenderFrameSet*>(object); 145 return static_cast<RenderFrameSet*>(object);
146 } 146 }
147 147
148 // This will catch anyone doing an unnecessary cast. 148 // This will catch anyone doing an unnecessary cast.
149 void toRenderFrameSet(const RenderFrameSet*); 149 void toRenderFrameSet(const RenderFrameSet*);
150 150
151 } // namespace WebCore 151 } // namespace WebCore
152 152
153 #endif // RenderFrameSet_h 153 #endif // RenderFrameSet_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFrame.h ('k') | Source/core/rendering/RenderFullScreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698