| OLD | NEW |
| (Empty) |
| 1 | |
| 2 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 3 // Use of this source code is governed by a BSD-style license that can be | |
| 4 // found in the LICENSE file. | |
| 5 | |
| 6 #ifndef LayoutFullScreenItem_h | |
| 7 #define LayoutFullScreenItem_h | |
| 8 | |
| 9 #include "core/layout/LayoutBlock.h" | |
| 10 #include "core/layout/api/LayoutBlockItem.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class LayoutFullScreenItem : public LayoutBlockItem { | |
| 15 public: | |
| 16 explicit LayoutFullScreenItem(LayoutBlock* layoutBlock) | |
| 17 : LayoutBlockItem(layoutBlock) {} | |
| 18 | |
| 19 explicit LayoutFullScreenItem(const LayoutBlockItem& item) | |
| 20 : LayoutBlockItem(item) { | |
| 21 SECURITY_DCHECK(!item || item.isLayoutFullScreen()); | |
| 22 } | |
| 23 | |
| 24 explicit LayoutFullScreenItem(std::nullptr_t) : LayoutBlockItem(nullptr) {} | |
| 25 | |
| 26 LayoutFullScreenItem() {} | |
| 27 | |
| 28 void unwrapLayoutObject() { return toFullScreen()->unwrapLayoutObject(); } | |
| 29 | |
| 30 private: | |
| 31 LayoutFullScreen* toFullScreen() { | |
| 32 return toLayoutFullScreen(layoutObject()); | |
| 33 } | |
| 34 const LayoutFullScreen* toFullScreen() const { | |
| 35 return toLayoutFullScreen(layoutObject()); | |
| 36 } | |
| 37 }; | |
| 38 | |
| 39 } // namespace blink | |
| 40 | |
| 41 #endif // LayoutFullScreenItem_h | |
| OLD | NEW |