| 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 #ifndef LayoutFullScreen_h | 25 #ifndef LayoutFullScreen_h |
| 26 #define LayoutFullScreen_h | 26 #define LayoutFullScreen_h |
| 27 | 27 |
| 28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
| 29 #include "core/layout/LayoutFlexibleBox.h" | 29 #include "core/layout/LayoutFlexibleBox.h" |
| 30 #include "core/style/StyleInheritedData.h" | 30 #include "core/style/StyleInheritedData.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class LayoutBlockFlow; |
| 35 |
| 34 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox { | 36 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox { |
| 35 public: | 37 public: |
| 36 static LayoutFullScreen* createAnonymous(Document*); | 38 static LayoutFullScreen* createAnonymous(Document*); |
| 37 | 39 |
| 38 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutFullScreen || LayoutFlexibleBox::isOfType(type); } | 40 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutFullScreen || LayoutFlexibleBox::isOfType(type); } |
| 39 const char* name() const override { return "LayoutFullScreen"; } | 41 const char* name() const override { return "LayoutFullScreen"; } |
| 40 | 42 |
| 41 void setPlaceholder(LayoutBlock*); | 43 void resetPlaceholder() { m_placeholder = nullptr; } |
| 42 LayoutBlock* placeholder() { return m_placeholder; } | 44 LayoutBlockFlow* placeholder() { return m_placeholder; } |
| 43 void createPlaceholder(PassRefPtr<ComputedStyle>, const LayoutRect& frameRec
t); | 45 void createPlaceholder(PassRefPtr<ComputedStyle>, const LayoutRect& frameRec
t); |
| 44 | 46 |
| 45 | 47 |
| 46 static LayoutObject* wrapLayoutObject(LayoutObject*, LayoutObject*, Document
*); | 48 static LayoutObject* wrapLayoutObject(LayoutObject*, LayoutObject*, Document
*); |
| 47 void unwrapLayoutObject(); | 49 void unwrapLayoutObject(); |
| 48 | 50 |
| 49 void updateStyle(); | 51 void updateStyle(); |
| 50 | 52 |
| 51 // Must call setStyleWithWritingModeOfParent() instead. | 53 // Must call setStyleWithWritingModeOfParent() instead. |
| 52 void setStyle(PassRefPtr<ComputedStyle>) = delete; | 54 void setStyle(PassRefPtr<ComputedStyle>) = delete; |
| 53 | 55 |
| 54 private: | 56 private: |
| 55 LayoutFullScreen(); | 57 LayoutFullScreen(); |
| 56 void willBeDestroyed() override; | 58 void willBeDestroyed() override; |
| 57 | 59 |
| 58 protected: | 60 protected: |
| 59 LayoutBlock* m_placeholder; | 61 LayoutBlockFlow* m_placeholder; |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, isLayoutFullScreen()); | 64 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, isLayoutFullScreen()); |
| 63 | 65 |
| 64 } // namespace blink | 66 } // namespace blink |
| 65 | 67 |
| 66 #endif | 68 #endif |
| OLD | NEW |