Ignore:
Timestamp:
Oct 14, 2013, 10:55:52 AM (12 years ago)
Author:
[email protected]
Message:

Pass Document directly to anonymous renderer constructors.
<https://webkit.org/b/122752>

Reviewed by Antti Koivisto.

Added separate constructors for creating anonymous renderers that
take a Document& instead of a null Element*/Text*.

Removed setDocumentForAnonymous() and all createAnonymous() helpers.
...and RenderObject::m_node is now a Node&, wohoo!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderMedia.cpp

    r156876 r157408  
    3636
    3737RenderMedia::RenderMedia(HTMLMediaElement& element)
    38     : RenderImage(&element)
     38    : RenderImage(element)
    3939{
    4040    setImageResource(RenderImageResource::create());
     
    4242
    4343RenderMedia::RenderMedia(HTMLMediaElement& element, const IntSize& intrinsicSize)
    44     : RenderImage(&element)
     44    : RenderImage(element)
    4545{
    4646    setImageResource(RenderImageResource::create());
Note: See TracChangeset for help on using the changeset viewer.