Changeset 61818 in webkit


Ignore:
Timestamp:
Jun 24, 2010 9:30:59 PM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

2010-06-22 Antonio Gomes <tonikitoo@webkit.org>

Reviewed by David Hyatt.

Add a NodeList-derivated wrapper class for a ListHashSet.
https://bugs.webkit.org/show_bug.cgi?id=41081

StaticHashSetList will work as a wrapper to ListHashSet objects that are
aimed to be exposed to the DOM.

As a use case, the rect based HitTest (bug 40197) will store the retrieved nodes
in a ListHashSet. It is going to be exposed to the DOM through are nodesFromRect
of Document returning a NodeList (i.e. StatisHashSetList) wrapping a ListHashSet.

No new tests.

Location:
trunk/WebCore
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/Android.mk

    r61677 r61818  
    163163        dom/SelectorNodeList.cpp \
    164164        dom/SpaceSplitString.cpp \
     165        dom/StaticHashSetNodeList.cpp \
    165166        dom/StaticNodeList.cpp \
    166167        dom/StyleElement.cpp \
  • trunk/WebCore/CMakeLists.txt

    r61677 r61818  
    819819    dom/SelectorNodeList.cpp
    820820    dom/SpaceSplitString.cpp
     821    dom/StaticHashSetNodeList.cpp
    821822    dom/StaticNodeList.cpp
    822823    dom/StyleElement.cpp
  • trunk/WebCore/ChangeLog

    r61816 r61818  
     12010-06-22 Antonio Gomes <tonikitoo@webkit.org>
     2
     3        Reviewed by David Hyatt.
     4
     5        Add a NodeList-derivated wrapper class for a ListHashSet.
     6        https://bugs.webkit.org/show_bug.cgi?id=41081
     7
     8        StaticHashSetList will work as a wrapper to ListHashSet objects that are
     9        aimed to be exposed to the DOM.
     10
     11        As a use case, the rect based HitTest (bug 40197) will store the retrieved nodes
     12        in a ListHashSet. It is going to be exposed to the DOM through are nodesFromRect
     13        of Document returning a NodeList (i.e. StatisHashSetList) wrapping a ListHashSet.
     14
     15        No new tests.
     16
    1172010-06-24  Cris Neckar  <cdn@chromium.org>
    218
  • trunk/WebCore/GNUmakefile.am

    r61789 r61818  
    886886        WebCore/dom/SpaceSplitString.cpp \
    887887        WebCore/dom/SpaceSplitString.h \
     888        WebCore/dom/StaticHashSetNodeList.cpp \
     889        WebCore/dom/StaticHashSetNodeList.h \
    888890        WebCore/dom/StaticNodeList.cpp \
    889891        WebCore/dom/StaticNodeList.h \
  • trunk/WebCore/WebCore.pro

    r61789 r61818  
    508508    dom/OptionGroupElement.cpp \
    509509    dom/OptionElement.cpp \
     510    dom/StaticHashSetNodeList.cpp \
    510511    dom/OverflowEvent.cpp \
    511512    dom/PageTransitionEvent.cpp \
     
    12521253    dom/OptionElement.h \
    12531254    dom/OptionGroupElement.h \
     1255    dom/StaticHashSetNodeList.h \
    12541256    dom/OverflowEvent.h \
    12551257    dom/PageTransitionEvent.h \
  • trunk/WebCore/WebCore.vcproj/WebCore.vcproj

    r61677 r61818  
    3018630186                        </File>
    3018730187                        <File
     30188                                RelativePath="..\dom\StaticHashSetNodeList.cpp"
     30189                                >
     30190                        </File>
     30191                        <File
     30192                                RelativePath="..\dom\StaticHashSetNodeList.h"
     30193                                >
     30194                        <File
    3018830195                                RelativePath="..\dom\StaticNodeList.cpp"
    3018930196                                >
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r61789 r61818  
    48834883                CE4C00E610F6F7C100CA38F5 /* HTMLNoScriptElement.h in Headers */ = {isa = PBXBuildFile; fileRef = CE4C00E510F6F7C100CA38F5 /* HTMLNoScriptElement.h */; };
    48844884                CE54FD381016D9A6008B44C8 /* ScriptSourceProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = CE54FD371016D9A6008B44C8 /* ScriptSourceProvider.h */; settings = {ATTRIBUTES = (Private, ); }; };
     4885                CEA3949C11D45CDA003094CF /* StaticHashSetNodeList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CEA3949A11D45CDA003094CF /* StaticHashSetNodeList.cpp */; };
     4886                CEA3949D11D45CDA003094CF /* StaticHashSetNodeList.h in Headers */ = {isa = PBXBuildFile; fileRef = CEA3949B11D45CDA003094CF /* StaticHashSetNodeList.h */; };
    48854887                CEF418CE1179678C009D112C /* ViewportArguments.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CEF418CC1179678C009D112C /* ViewportArguments.cpp */; };
    48864888                CEF418CF1179678C009D112C /* ViewportArguments.h in Headers */ = {isa = PBXBuildFile; fileRef = CEF418CD1179678C009D112C /* ViewportArguments.h */; };
     
    1044910451                CE4C00E510F6F7C100CA38F5 /* HTMLNoScriptElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLNoScriptElement.h; sourceTree = "<group>"; };
    1045010452                CE54FD371016D9A6008B44C8 /* ScriptSourceProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptSourceProvider.h; sourceTree = "<group>"; };
     10453                CEA3949A11D45CDA003094CF /* StaticHashSetNodeList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StaticHashSetNodeList.cpp; sourceTree = "<group>"; };
     10454                CEA3949B11D45CDA003094CF /* StaticHashSetNodeList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StaticHashSetNodeList.h; sourceTree = "<group>"; };
    1045110455                CEF418CC1179678C009D112C /* ViewportArguments.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ViewportArguments.cpp; sourceTree = "<group>"; };
    1045210456                CEF418CD1179678C009D112C /* ViewportArguments.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewportArguments.h; sourceTree = "<group>"; };
     
    1682716831                                D01A27AB10C9BFD800026A42 /* SpaceSplitString.cpp */,
    1682816832                                D01A27AC10C9BFD800026A42 /* SpaceSplitString.h */,
     16833                                CEA3949A11D45CDA003094CF /* StaticHashSetNodeList.cpp */,
     16834                                CEA3949B11D45CDA003094CF /* StaticHashSetNodeList.h */,
    1682916835                                BC7FA62C0D1F0EFF00DB22A9 /* StaticNodeList.cpp */,
    1683016836                                BC7FA62B0D1F0EFF00DB22A9 /* StaticNodeList.h */,
     
    1953119537                                A8E6A78111D1661B00311F4A /* HTMLParserScheduler.h in Headers */,
    1953219538                                A84D827C11D333ED00972990 /* RawDataDocumentParser.h in Headers */,
     19539                                CEA3949D11D45CDA003094CF /* StaticHashSetNodeList.h in Headers */,
    1953319540                        );
    1953419541                        runOnlyForDeploymentPostprocessing = 0;
     
    2185021857                                B525A96611CA2340003A23A8 /* JSSQLException.cpp in Sources */,
    2185121858                                A8E6A78211D1661B00311F4A /* HTMLParserScheduler.cpp in Sources */,
     21859                                CEA3949C11D45CDA003094CF /* StaticHashSetNodeList.cpp in Sources */,
    2185221860                        );
    2185321861                        runOnlyForDeploymentPostprocessing = 0;
Note: See TracChangeset for help on using the changeset viewer.