| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 const RenderObjectChildList* children() const { return &m_children; } | 46 const RenderObjectChildList* children() const { return &m_children; } |
| 47 RenderObjectChildList* children() { return &m_children; } | 47 RenderObjectChildList* children() { return &m_children; } |
| 48 | 48 |
| 49 HTMLMediaElement* mediaElement() const; | 49 HTMLMediaElement* mediaElement() const; |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual void layout(); | 52 virtual void layout(); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 virtual RenderObjectChildList* virtualChildren() { return children(); } | 55 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } |
| 56 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } | 56 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } |
| 57 virtual bool canHaveChildren() const { return true; } | 57 virtual bool canHaveChildren() const OVERRIDE FINAL { return true; } |
| 58 | 58 |
| 59 virtual const char* renderName() const { return "RenderMedia"; } | 59 virtual const char* renderName() const { return "RenderMedia"; } |
| 60 virtual bool isMedia() const { return true; } | 60 virtual bool isMedia() const OVERRIDE FINAL { return true; } |
| 61 virtual bool isImage() const { return false; } | 61 virtual bool isImage() const OVERRIDE FINAL { return false; } |
| 62 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); | 62 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); |
| 63 | 63 |
| 64 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } | 64 virtual bool requiresForcedStyleRecalcPropagation() const OVERRIDE FINAL { r
eturn true; } |
| 65 | 65 |
| 66 RenderObjectChildList m_children; | 66 RenderObjectChildList m_children; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 inline RenderMedia* toRenderMedia(RenderObject* object) | 69 inline RenderMedia* toRenderMedia(RenderObject* object) |
| 70 { | 70 { |
| 71 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMedia()); | 71 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMedia()); |
| 72 return static_cast<RenderMedia*>(object); | 72 return static_cast<RenderMedia*>(object); |
| 73 } | 73 } |
| 74 | 74 |
| 75 // This will catch anyone doing an unnecessary cast. | 75 // This will catch anyone doing an unnecessary cast. |
| 76 void toRenderMedia(const RenderMedia*); | 76 void toRenderMedia(const RenderMedia*); |
| 77 | 77 |
| 78 } // namespace WebCore | 78 } // namespace WebCore |
| 79 | 79 |
| 80 #endif | 80 #endif |
| 81 #endif // RenderMedia_h | 81 #endif // RenderMedia_h |
| OLD | NEW |