OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef LayoutFramelet_h |
| 6 #define LayoutFramelet_h |
| 7 |
| 8 #include "core/layout/LayoutPart.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class LayoutFramelet final : public LayoutPart { |
| 13 public: |
| 14 explicit LayoutFramelet(Element*); |
| 15 |
| 16 const char* name() const override { return "LayoutFramelet"; } |
| 17 |
| 18 private: |
| 19 bool shouldComputeSizeAsReplaced() const override; |
| 20 bool isInlineBlockOrInlineTable() const override; |
| 21 |
| 22 void layout() override; |
| 23 |
| 24 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutFramelet || LayoutPart::isOfType(type); } |
| 25 |
| 26 PaintLayerType layerTypeRequired() const override; |
| 27 }; |
| 28 |
| 29 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFramelet, isLayoutFramelet()); |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif // LayoutFramelet_h |
OLD | NEW |