Ignore:
Timestamp:
Oct 5, 2013, 7:30:52 PM (12 years ago)
Author:
[email protected]
Message:

CTTE: Node::treeScope() should return a reference.
<https://webkit.org/b/122399>

Reviewed by Superlative Sam.

Every Node belongs to a TreeScope. To enforce this, I've made
treeScope() return a TreeScope&, and setTreeScope() now takes a
TreeScope& so there is no way to clear it.

File:
1 edited

Legend:

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

    r156876 r156981  
    564564{
    565565    HTMLImageElement* i = element() && isHTMLImageElement(element()) ? toHTMLImageElement(element()) : 0;
    566     return i ? i->treeScope()->getImageMap(i->fastGetAttribute(usemapAttr)) : 0;
     566    return i ? i->treeScope().getImageMap(i->fastGetAttribute(usemapAttr)) : 0;
    567567}
    568568
Note: See TracChangeset for help on using the changeset viewer.