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

Side by Side Diff: Source/core/rendering/RenderFullScreen.cpp

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/RenderFullScreen.h ('k') | Source/core/rendering/RenderGrid.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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 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 13 matching lines...) Expand all
24 24
25 #include "config.h" 25 #include "config.h"
26 26
27 #include "RenderFullScreen.h" 27 #include "RenderFullScreen.h"
28 28
29 #include "RenderLayer.h" 29 #include "RenderLayer.h"
30 #include "RenderLayerCompositor.h" 30 #include "RenderLayerCompositor.h"
31 31
32 using namespace WebCore; 32 using namespace WebCore;
33 33
34 class RenderFullScreenPlaceholder : public RenderBlock { 34 class RenderFullScreenPlaceholder FINAL : public RenderBlock {
35 public: 35 public:
36 RenderFullScreenPlaceholder(RenderFullScreen* owner) 36 RenderFullScreenPlaceholder(RenderFullScreen* owner)
37 : RenderBlock(0) 37 : RenderBlock(0)
38 , m_owner(owner) 38 , m_owner(owner)
39 { 39 {
40 setDocumentForAnonymous(owner->document()); 40 setDocumentForAnonymous(owner->document());
41 } 41 }
42 private: 42 private:
43 virtual bool isRenderFullScreenPlaceholder() const { return true; } 43 virtual bool isRenderFullScreenPlaceholder() const { return true; }
44 virtual void willBeDestroyed(); 44 virtual void willBeDestroyed();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 if (!m_placeholder) { 178 if (!m_placeholder) {
179 m_placeholder = new (document()->renderArena()) RenderFullScreenPlacehol der(this); 179 m_placeholder = new (document()->renderArena()) RenderFullScreenPlacehol der(this);
180 m_placeholder->setStyle(style); 180 m_placeholder->setStyle(style);
181 if (parent()) { 181 if (parent()) {
182 parent()->addChild(m_placeholder, this); 182 parent()->addChild(m_placeholder, this);
183 parent()->setNeedsLayoutAndPrefWidthsRecalc(); 183 parent()->setNeedsLayoutAndPrefWidthsRecalc();
184 } 184 }
185 } else 185 } else
186 m_placeholder->setStyle(style); 186 m_placeholder->setStyle(style);
187 } 187 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFullScreen.h ('k') | Source/core/rendering/RenderGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698