Changeset 158665 in webkit


Ignore:
Timestamp:
Nov 5, 2013 6:35:47 AM (10 years ago)
Author:
Antti Koivisto
Message:

Make it compile.

  • dom/LiveNodeList.h:

(WebCore::LiveNodeList::LiveNodeList):
(WebCore::LiveNodeList::~LiveNodeList):

  • dom/NodeRareData.h:

(WebCore::NodeListsNodeData::adoptDocument):

  • html/HTMLCollection.cpp:

(WebCore::HTMLCollection::HTMLCollection):
(WebCore::HTMLCollection::~HTMLCollection):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r158663 r158665  
     12013-11-05  Antti Koivisto  <antti@apple.com>
     2
     3        Make it compile.
     4
     5        * dom/LiveNodeList.h:
     6        (WebCore::LiveNodeList::LiveNodeList):
     7        (WebCore::LiveNodeList::~LiveNodeList):
     8        * dom/NodeRareData.h:
     9        (WebCore::NodeListsNodeData::adoptDocument):
     10        * html/HTMLCollection.cpp:
     11        (WebCore::HTMLCollection::HTMLCollection):
     12        (WebCore::HTMLCollection::~HTMLCollection):
     13
    1142013-11-05  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/dom/LiveNodeList.h

    r158663 r158665  
    6767        ASSERT(m_type == static_cast<unsigned>(type));
    6868
    69         document().registerNodeList(this);
     69        document().registerNodeList(*this);
    7070    }
    7171    virtual Node* namedItem(const AtomicString&) const OVERRIDE;
     
    7474    virtual ~LiveNodeList()
    7575    {
    76         document().unregisterNodeList(this);
     76        document().unregisterNodeList(*this);
    7777    }
    7878
  • trunk/Source/WebCore/dom/NodeRareData.h

    r158663 r158665  
    230230        if (oldDocument != newDocument) {
    231231            for (auto it = m_atomicNameCaches.begin(), end = m_atomicNameCaches.end(); it != end; ++it) {
    232                 LiveNodeList* list = it->value;
     232                LiveNodeList& list = *it->value;
    233233                oldDocument->unregisterNodeList(list);
    234234                newDocument->registerNodeList(list);
     
    236236
    237237            for (auto it = m_nameCaches.begin(), end = m_nameCaches.end(); it != end; ++it) {
    238                 LiveNodeList* list = it->value;
     238                LiveNodeList& list = *it->value;
    239239                oldDocument->unregisterNodeList(list);
    240240                newDocument->registerNodeList(list);
     
    242242
    243243            for (auto it = m_tagNodeListCacheNS.begin(), end = m_tagNodeListCacheNS.end(); it != end; ++it) {
    244                 LiveNodeList* list = it->value;
    245                 ASSERT(!list->isRootedAtDocument());
     244                LiveNodeList& list = *it->value;
     245                ASSERT(!list.isRootedAtDocument());
    246246                oldDocument->unregisterNodeList(list);
    247247                newDocument->registerNodeList(list);
     
    249249
    250250            for (auto it = m_cachedCollections.begin(), end = m_cachedCollections.end(); it != end; ++it) {
    251                 HTMLCollection* collection = it->value;
     251                HTMLCollection& collection = *it->value;
    252252                oldDocument->unregisterCollection(collection);
    253253                newDocument->registerCollection(collection);
  • trunk/Source/WebCore/html/HTMLCollection.cpp

    r158663 r158665  
    149149    ASSERT(m_collectionType == static_cast<unsigned>(type));
    150150
    151     document().registerCollection(this);
     151    document().registerCollection(*this);
    152152}
    153153
     
    159159HTMLCollection::~HTMLCollection()
    160160{
    161     document().unregisterCollection(this);
     161    document().unregisterCollection(*this);
    162162    // HTMLNameCollection removes cache by itself.
    163163    if (type() != WindowNamedItems && type() != DocumentNamedItems)
Note: See TracChangeset for help on using the changeset viewer.