2011-04-04 Roland Steiner <rolandsteiner@chromium.org>
authorrolandsteiner@chromium.org <rolandsteiner@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Apr 2011 22:25:18 +0000 (22:25 +0000)
committerrolandsteiner@chromium.org <rolandsteiner@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Apr 2011 22:25:18 +0000 (22:25 +0000)
commitbb571f5d358b96f4baf7563dc61395ca13d1dac7
tree120f52551cc6c73ce78c58c8d5f96cd7a08201b6
parent1eddaee47bdc0ef6338d877af22f42abff8a3f80
2011-04-04  Roland Steiner  <rolandsteiner@chromium.org>

        Reviewed by NOBODY (OOPS!).

        Bug 57689 - Extract scoping functionality from Document
        https://bugs.webkit.org/show_bug.cgi?id=57689

        Moved selfOnlyRef (renamed to guardRef), element ID, image map
        and accesss key functionalities from Document to a new base
        class TreeScope.

        TreeShared: made removedLastRef protected

        No new tests. (refactoring)

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::destroyScope):
        (WebCore::Document::getElementById):
        (WebCore::Document::childrenChanged):
        (WebCore::Document::scheduleStyleRecalc):
        (WebCore::Document::attach):
        (WebCore::Document::detach):
        * dom/Document.h:
        (WebCore::Node::Node):
        * dom/DocumentOrderedMap.cpp:
        (WebCore::DocumentOrderedMap::get):
        (WebCore::DocumentOrderedMap::getElementById):
        (WebCore::DocumentOrderedMap::getElementByMapName):
        (WebCore::DocumentOrderedMap::getElementByLowercasedMapName):
        * dom/DocumentOrderedMap.h:
        * dom/DOMAllInOne.cpp:
        * dom/Node.cpp:
        (WebCore::Node::~Node):
        (WebCore::Node::setDocument):
        * dom/Node.h:
        * dom/TreeScope.cpp: Added.
        * dom/TreeScope.h: Added.
        * platform/TreeShared.h:
        (WebCore::TreeShared::removedLastRef): made protected

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
Source/WebCore/Android.mk
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.am
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.pro
Source/WebCore/WebCore.vcproj/WebCore.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/dom/DOMAllInOne.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/dom/DocumentOrderedMap.cpp
Source/WebCore/dom/DocumentOrderedMap.h
Source/WebCore/dom/Node.cpp
Source/WebCore/dom/TreeScope.cpp [new file with mode: 0644]
Source/WebCore/dom/TreeScope.h [new file with mode: 0644]
Source/WebCore/platform/TreeShared.h