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 10 matching lines...) Expand all Loading... |
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
23 * DAMAGE. | 23 * DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef LayoutFullScreen_h | 26 #ifndef LayoutFullScreen_h |
27 #define LayoutFullScreen_h | 27 #define LayoutFullScreen_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/layout/LayoutFlexibleBox.h" | 30 #include "core/layout/LayoutFlexibleBox.h" |
31 #include "core/style/StyleInheritedData.h" | |
32 | 31 |
33 namespace blink { | 32 namespace blink { |
34 | 33 |
35 class LayoutBlockFlow; | 34 class LayoutBlockFlow; |
36 | 35 |
37 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox { | 36 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox { |
38 public: | 37 public: |
39 static LayoutFullScreen* CreateAnonymous(Document*); | 38 static LayoutFullScreen* CreateAnonymous(Document*); |
40 | 39 |
41 bool IsOfType(LayoutObjectType type) const override { | 40 bool IsOfType(LayoutObjectType type) const override { |
(...skipping 30 matching lines...) Expand all Loading... |
72 DCHECK(!child); | 71 DCHECK(!child); |
73 return kItemPositionCenter; | 72 return kItemPositionCenter; |
74 } | 73 } |
75 }; | 74 }; |
76 | 75 |
77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, IsLayoutFullScreen()); | 76 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, IsLayoutFullScreen()); |
78 | 77 |
79 } // namespace blink | 78 } // namespace blink |
80 | 79 |
81 #endif | 80 #endif |
OLD | NEW |