| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |