| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void slowFirstChild() const = delete; | 50 void slowFirstChild() const = delete; |
| 51 void slowLastChild() const = delete; | 51 void slowLastChild() const = delete; |
| 52 | 52 |
| 53 const LayoutObjectChildList* children() const { return &m_children; } | 53 const LayoutObjectChildList* children() const { return &m_children; } |
| 54 LayoutObjectChildList* children() { return &m_children; } | 54 LayoutObjectChildList* children() { return &m_children; } |
| 55 | 55 |
| 56 HTMLMediaElement* mediaElement() const; | 56 HTMLMediaElement* mediaElement() const; |
| 57 | 57 |
| 58 const char* name() const override { return "LayoutMedia"; } | 58 const char* name() const override { return "LayoutMedia"; } |
| 59 | 59 |
| 60 // Temporary callback for crbug.com/587345,402044 | |
| 61 void notifyPositionMayHaveChanged(const IntRect&); | |
| 62 | |
| 63 // Change whether we want or don't want to receive position change | |
| 64 // notifications. This will cause us to start / stop receiving change | |
| 65 // notifications if possible. | |
| 66 // Temporary method for crbug.com/587345,402044 | |
| 67 void setRequestPositionUpdates(bool); | |
| 68 | |
| 69 protected: | 60 protected: |
| 70 // Temporary overrides for crbug.com/587345,402044 | |
| 71 void willBeDestroyed() override; | |
| 72 void insertedIntoTree() override; | |
| 73 | |
| 74 void layout() override; | 61 void layout() override; |
| 75 | 62 |
| 76 bool isOfType(LayoutObjectType type) const override { | 63 bool isOfType(LayoutObjectType type) const override { |
| 77 return type == LayoutObjectMedia || LayoutImage::isOfType(type); | 64 return type == LayoutObjectMedia || LayoutImage::isOfType(type); |
| 78 } | 65 } |
| 79 | 66 |
| 80 private: | 67 private: |
| 81 LayoutObjectChildList* virtualChildren() final { return children(); } | 68 LayoutObjectChildList* virtualChildren() final { return children(); } |
| 82 const LayoutObjectChildList* virtualChildren() const final { | 69 const LayoutObjectChildList* virtualChildren() const final { |
| 83 return children(); | 70 return children(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 96 LayoutUnit computePanelWidth(const LayoutRect& mediaWidth) const; | 83 LayoutUnit computePanelWidth(const LayoutRect& mediaWidth) const; |
| 97 | 84 |
| 98 LayoutObjectChildList m_children; | 85 LayoutObjectChildList m_children; |
| 99 }; | 86 }; |
| 100 | 87 |
| 101 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMedia, isMedia()); | 88 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMedia, isMedia()); |
| 102 | 89 |
| 103 } // namespace blink | 90 } // namespace blink |
| 104 | 91 |
| 105 #endif // LayoutMedia_h | 92 #endif // LayoutMedia_h |
| OLD | NEW |