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 24 matching lines...) Expand all Loading... |
35 RenderMedia::RenderMedia(HTMLMediaElement* video) | 35 RenderMedia::RenderMedia(HTMLMediaElement* video) |
36 : RenderImage(video) | 36 : RenderImage(video) |
37 { | 37 { |
38 setImageResource(RenderImageResource::create()); | 38 setImageResource(RenderImageResource::create()); |
39 } | 39 } |
40 | 40 |
41 RenderMedia::~RenderMedia() | 41 RenderMedia::~RenderMedia() |
42 { | 42 { |
43 } | 43 } |
44 | 44 |
45 void RenderMedia::trace(Visitor* visitor) | |
46 { | |
47 visitor->trace(m_children); | |
48 RenderImage::trace(visitor); | |
49 } | |
50 | |
51 HTMLMediaElement* RenderMedia::mediaElement() const | 45 HTMLMediaElement* RenderMedia::mediaElement() const |
52 { | 46 { |
53 return toHTMLMediaElement(node()); | 47 return toHTMLMediaElement(node()); |
54 } | 48 } |
55 | 49 |
56 void RenderMedia::layout() | 50 void RenderMedia::layout() |
57 { | 51 { |
58 LayoutSize oldSize = contentBoxRect().size(); | 52 LayoutSize oldSize = contentBoxRect().size(); |
59 | 53 |
60 RenderImage::layout(); | 54 RenderImage::layout(); |
(...skipping 14 matching lines...) Expand all Loading... |
75 controlsRenderer->style()->setWidth(Length(newSize.width(), Fixed)); | 69 controlsRenderer->style()->setWidth(Length(newSize.width(), Fixed)); |
76 controlsRenderer->forceLayout(); | 70 controlsRenderer->forceLayout(); |
77 clearNeedsLayout(); | 71 clearNeedsLayout(); |
78 } | 72 } |
79 | 73 |
80 void RenderMedia::paintReplaced(PaintInfo&, const LayoutPoint&) | 74 void RenderMedia::paintReplaced(PaintInfo&, const LayoutPoint&) |
81 { | 75 { |
82 } | 76 } |
83 | 77 |
84 } // namespace blink | 78 } // namespace blink |
OLD | NEW |