Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: Source/core/rendering/RenderMedia.cpp

Issue 423093002: Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add more trace Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
45 HTMLMediaElement* RenderMedia::mediaElement() const 51 HTMLMediaElement* RenderMedia::mediaElement() const
46 { 52 {
47 return toHTMLMediaElement(node()); 53 return toHTMLMediaElement(node());
48 } 54 }
49 55
50 void RenderMedia::layout() 56 void RenderMedia::layout()
51 { 57 {
52 LayoutSize oldSize = contentBoxRect().size(); 58 LayoutSize oldSize = contentBoxRect().size();
53 59
54 RenderImage::layout(); 60 RenderImage::layout();
(...skipping 14 matching lines...) Expand all
69 controlsRenderer->style()->setWidth(Length(newSize.width(), Fixed)); 75 controlsRenderer->style()->setWidth(Length(newSize.width(), Fixed));
70 controlsRenderer->forceLayout(); 76 controlsRenderer->forceLayout();
71 clearNeedsLayout(); 77 clearNeedsLayout();
72 } 78 }
73 79
74 void RenderMedia::paintReplaced(PaintInfo&, const LayoutPoint&) 80 void RenderMedia::paintReplaced(PaintInfo&, const LayoutPoint&)
75 { 81 {
76 } 82 }
77 83
78 } // namespace blink 84 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698