| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 PaintLayerType layerTypeRequired() const override { return NormalPaintLayer; } | 86 PaintLayerType layerTypeRequired() const override { return NormalPaintLayer; } |
| 87 | 87 |
| 88 bool canHaveChildren() const final { return true; } | 88 bool canHaveChildren() const final { return true; } |
| 89 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const final; | 89 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const final; |
| 90 | 90 |
| 91 bool isImage() const final { return false; } | 91 bool isImage() const final { return false; } |
| 92 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override; | 92 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override; |
| 93 | 93 |
| 94 bool backgroundShouldAlwaysBeClipped() const final { return false; } | 94 bool backgroundShouldAlwaysBeClipped() const final { return false; } |
| 95 | 95 |
| 96 LayoutUnit computePanelWidth(const LayoutRect& mediaWidth) const; |
| 97 |
| 96 LayoutObjectChildList m_children; | 98 LayoutObjectChildList m_children; |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMedia, isMedia()); | 101 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMedia, isMedia()); |
| 100 | 102 |
| 101 } // namespace blink | 103 } // namespace blink |
| 102 | 104 |
| 103 #endif // LayoutMedia_h | 105 #endif // LayoutMedia_h |
| OLD | NEW |