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

Side by Side Diff: Source/WebCore/rendering/RenderFullScreen.h

Issue 8218020: Merge 95371 - Don't detach elements from the render tree when entering fullscreen mode (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 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
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 23 matching lines...) Expand all
34 class RenderFullScreen : public RenderDeprecatedFlexibleBox { 34 class RenderFullScreen : public RenderDeprecatedFlexibleBox {
35 public: 35 public:
36 RenderFullScreen(Node*); 36 RenderFullScreen(Node*);
37 virtual bool isRenderFullScreen() const { return true; } 37 virtual bool isRenderFullScreen() const { return true; }
38 virtual const char* renderName() const { return "RenderFullScreen"; } 38 virtual const char* renderName() const { return "RenderFullScreen"; }
39 39
40 void setPlaceholder(RenderBlock*); 40 void setPlaceholder(RenderBlock*);
41 RenderBlock* placeholder() { return m_placeholder; } 41 RenderBlock* placeholder() { return m_placeholder; }
42 void createPlaceholder(PassRefPtr<RenderStyle>, const IntRect& frameRect); 42 void createPlaceholder(PassRefPtr<RenderStyle>, const IntRect& frameRect);
43 43
44 static PassRefPtr<RenderStyle> createFullScreenStyle(); 44
45 static RenderObject* wrapRenderer(RenderObject* renderer, Document*);
46 void unwrapRenderer();
45 47
46 private: 48 private:
47 virtual void willBeDestroyed(); 49 virtual void willBeDestroyed();
48 50
49 protected: 51 protected:
50 RenderBlock* m_placeholder; 52 RenderBlock* m_placeholder;
51 }; 53 };
52 54
53 inline RenderFullScreen* toRenderFullScreen(RenderObject* object) 55 inline RenderFullScreen* toRenderFullScreen(RenderObject* object)
54 { 56 {
55 ASSERT(object->isRenderFullScreen()); 57 ASSERT(object->isRenderFullScreen());
56 return static_cast<RenderFullScreen*>(object); 58 return static_cast<RenderFullScreen*>(object);
57 } 59 }
58 60
59 // This will catch anyone doing an unnecessary cast: 61 // This will catch anyone doing an unnecessary cast:
60 void toRenderFullScreen(RenderFullScreen*); 62 void toRenderFullScreen(RenderFullScreen*);
61 } 63 }
62 64
63 #endif 65 #endif
64 66
65 #endif 67 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/dom/NodeRenderingContext.cpp ('k') | Source/WebCore/rendering/RenderFullScreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698