Changeset 156381 in webkit


Ignore:
Timestamp:
Sep 24, 2013, 8:09:41 PM (12 years ago)
Author:
Antti Koivisto
Message:

Remove HTMLContentElement
https://bugs.webkit.org/show_bug.cgi?id=121891

Reviewed by Andreas Kling.

Remove an unsused Shadow DOM type.

  • DerivedSources.make:
  • WebCore.exp.in:
  • WebCore.xcodeproj/project.pbxproj:
  • html/HTMLDetailsElement.cpp:
  • html/HTMLSummaryElement.cpp:
  • html/HTMLTagNames.in:
  • html/shadow/ContentDistributor.cpp:
  • html/shadow/HTMLContentElement.cpp: Removed.
  • html/shadow/HTMLContentElement.h: Removed.
  • html/shadow/HTMLContentElement.idl: Removed.
  • html/shadow/InsertionPoint.h:

(WebCore::InsertionPoint::matchTypeFor):

  • testing/Internals.cpp:
  • testing/Internals.h:
  • testing/Internals.idl:
Location:
trunk/Source/WebCore
Files:
3 deleted
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/CMakeLists.txt

    r156317 r156381  
    539539    html/canvas/WebGLUniformLocation.idl
    540540    html/canvas/WebGLVertexArrayObjectOES.idl
    541 
    542     html/shadow/HTMLContentElement.idl
    543541
    544542    inspector/InjectedScriptHost.idl
     
    15601558    html/shadow/ContentDistributor.cpp
    15611559    html/shadow/DetailsMarkerControl.cpp
    1562     html/shadow/HTMLContentElement.cpp
    15631560    html/shadow/InsertionPoint.cpp
    15641561    html/shadow/MediaControlElementTypes.cpp
  • trunk/Source/WebCore/ChangeLog

    r156380 r156381  
     12013-09-24  Antti Koivisto  <antti@apple.com>
     2
     3        Remove HTMLContentElement
     4        https://bugs.webkit.org/show_bug.cgi?id=121891
     5
     6        Reviewed by Andreas Kling.
     7
     8        Remove an unsused Shadow DOM type.
     9
     10        * DerivedSources.make:
     11        * WebCore.exp.in:
     12        * WebCore.xcodeproj/project.pbxproj:
     13        * html/HTMLDetailsElement.cpp:
     14        * html/HTMLSummaryElement.cpp:
     15        * html/HTMLTagNames.in:
     16        * html/shadow/ContentDistributor.cpp:
     17        * html/shadow/HTMLContentElement.cpp: Removed.
     18        * html/shadow/HTMLContentElement.h: Removed.
     19        * html/shadow/HTMLContentElement.idl: Removed.
     20        * html/shadow/InsertionPoint.h:
     21        (WebCore::InsertionPoint::matchTypeFor):
     22        * testing/Internals.cpp:
     23        * testing/Internals.h:
     24        * testing/Internals.idl:
     25
    1262013-09-24  Benjamin Poulain  <benjamin@webkit.org>
    227
  • trunk/Source/WebCore/DerivedSources.cpp

    r156049 r156381  
    183183#include "JSHTMLCanvasElement.cpp"
    184184#include "JSHTMLCollection.cpp"
    185 #include "JSHTMLContentElement.cpp"
    186185#include "JSHTMLDataListElement.cpp"
    187186#include "JSHTMLDetailsElement.cpp"
  • trunk/Source/WebCore/DerivedSources.make

    r156309 r156381  
    449449    $(WebCore)/html/canvas/WebGLUniformLocation.idl \
    450450    $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \
    451     $(WebCore)/html/shadow/HTMLContentElement.idl \
    452451    $(WebCore)/html/track/AudioTrack.idl \
    453452    $(WebCore)/html/track/AudioTrackList.idl \
  • trunk/Source/WebCore/DerivedSources.pri

    r156049 r156381  
    424424    $$PWD/html/ValidityState.idl \
    425425    $$PWD/html/VoidCallback.idl \
    426     $$PWD/html/shadow/HTMLContentElement.idl \
    427426    $$PWD/inspector/InjectedScriptHost.idl \
    428427    $$PWD/inspector/InspectorFrontendHost.idl \
  • trunk/Source/WebCore/GNUmakefile.list.am

    r156296 r156381  
    326326        DerivedSources/WebCore/JSHTMLCollection.cpp \
    327327        DerivedSources/WebCore/JSHTMLCollection.h \
    328         DerivedSources/WebCore/JSHTMLContentElement.cpp \
    329         DerivedSources/WebCore/JSHTMLContentElement.h \
    330328        DerivedSources/WebCore/JSHTMLDataListElement.cpp \
    331329        DerivedSources/WebCore/JSHTMLDataListElement.h \
     
    15711569        $(WebCore)/html/canvas/WebGLUniformLocation.idl \
    15721570        $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \
    1573         $(WebCore)/html/shadow/HTMLContentElement.idl \
    15741571        $(WebCore)/html/track/AudioTrack.idl \
    15751572        $(WebCore)/html/track/AudioTrackList.idl \
     
    37013698        Source/WebCore/html/shadow/DetailsMarkerControl.cpp \
    37023699        Source/WebCore/html/shadow/DetailsMarkerControl.h \
    3703         Source/WebCore/html/shadow/HTMLContentElement.cpp \
    3704         Source/WebCore/html/shadow/HTMLContentElement.h \
    37053700        Source/WebCore/html/shadow/InsertionPoint.cpp \
    37063701        Source/WebCore/html/shadow/InsertionPoint.h \
  • trunk/Source/WebCore/Target.pri

    r156278 r156381  
    749749    html/shadow/ContentDistributor.cpp \
    750750    html/shadow/DetailsMarkerControl.cpp \
    751     html/shadow/HTMLContentElement.cpp \
    752751    html/shadow/InsertionPoint.cpp \
    753752    html/shadow/MediaControls.cpp \
     
    19171916    html/parser/XSSAuditorDelegate.h \
    19181917    html/shadow/ContentDistributor.h \
    1919     html/shadow/HTMLContentElement.h \
    19201918    html/shadow/MediaControlElementTypes.h \
    19211919    html/shadow/MediaControlElements.h \
  • trunk/Source/WebCore/WebCore.exp.in

    r156215 r156381  
    27652765#endif
    27662766
    2767 #if ENABLE(SHADOW_DOM)
    2768 __ZN7WebCore18HTMLContentElement6createEPNS_8DocumentE
    2769 #endif
    2770 
    27712767#if ENABLE(CSS_REGIONS)
    27722768__ZN7WebCore22RuntimeEnabledFeatures19isCSSRegionsEnabledE
  • trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj

    r156278 r156381  
    22252225      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    22262226    </ClCompile>
    2227     <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLContentElement.cpp">
    2228       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
    2229       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
    2230       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
    2231       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
    2232       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
    2233       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
    2234       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
    2235       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
    2236       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
    2237       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
    2238       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
    2239       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    2240     </ClCompile>
    22412227    <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.cpp">
    22422228      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
     
    1559915585    <ClCompile Include="..\html\shadow\ContentDistributor.cpp" />
    1560015586    <ClCompile Include="..\html\shadow\DetailsMarkerControl.cpp" />
    15601     <ClCompile Include="..\html\shadow\HTMLContentElement.cpp">
    15602       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
    15603       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
    15604       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
    15605       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
    15606       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
    15607       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
    15608       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
    15609       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
    15610       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
    15611       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
    15612       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
    15613       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    15614     </ClCompile>
    1561515587    <ClCompile Include="..\html\shadow\InsertionPoint.cpp" />
    1561615588    <ClCompile Include="..\html\shadow\MediaControlElements.cpp" />
     
    1833218304    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCanvasElement.h" />
    1833318305    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCollection.h" />
    18334     <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLContentElement.h" />
    1833518306    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.h" />
    1833618307    <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDetailsElement.h" />
     
    2062820599    <ClInclude Include="..\html\shadow\ContentDistributor.h" />
    2062920600    <ClInclude Include="..\html\shadow\DetailsMarkerControl.h" />
    20630     <ClInclude Include="..\html\shadow\HTMLContentElement.h" />
    2063120601    <ClInclude Include="..\html\shadow\InsertionPoint.h" />
    2063220602    <ClInclude Include="..\html\shadow\MediaControlElements.h" />
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r156359 r156381  
    14971497                4A0DA2FE129B241900AB61E1 /* FormAssociatedElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A0DA2FC129B241900AB61E1 /* FormAssociatedElement.cpp */; };
    14981498                4A0DA2FF129B241900AB61E1 /* FormAssociatedElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A0DA2FD129B241900AB61E1 /* FormAssociatedElement.h */; settings = {ATTRIBUTES = (Private, ); }; };
    1499                 4A1E719014E101E400626F9D /* JSHTMLContentElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A1E718E14E101E400626F9D /* JSHTMLContentElement.cpp */; };
    1500                 4A1E719114E101E400626F9D /* JSHTMLContentElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A1E718F14E101E400626F9D /* JSHTMLContentElement.h */; };
    15011499                4A1E71A614E106AC00626F9D /* JSShadowRoot.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A1E71A414E106AC00626F9D /* JSShadowRoot.h */; };
    15021500                4A38BF5014FE1C0900612512 /* WebSocketDeflateFramer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A38BF4E14FE1C0900612512 /* WebSocketDeflateFramer.cpp */; };
     
    17861784                57B791A314C6A62900F202D1 /* ContentDistributor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57B7919F14C6A62900F202D1 /* ContentDistributor.cpp */; };
    17871785                57B791A414C6A62900F202D1 /* ContentDistributor.h in Headers */ = {isa = PBXBuildFile; fileRef = 57B791A014C6A62900F202D1 /* ContentDistributor.h */; settings = {ATTRIBUTES = (Private, ); }; };
    1788                 57B791A914C6A63300F202D1 /* HTMLContentElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57B791A714C6A63300F202D1 /* HTMLContentElement.cpp */; };
    1789                 57B791AA14C6A63300F202D1 /* HTMLContentElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 57B791A814C6A63300F202D1 /* HTMLContentElement.h */; };
    17901786                57CF497414EE36D700ECFF14 /* InsertionPoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */; };
    17911787                57CF497514EE36D700ECFF14 /* InsertionPoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 57CF497314EE36D700ECFF14 /* InsertionPoint.h */; };
     
    80858081                4A0DA2FC129B241900AB61E1 /* FormAssociatedElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FormAssociatedElement.cpp; sourceTree = "<group>"; };
    80868082                4A0DA2FD129B241900AB61E1 /* FormAssociatedElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FormAssociatedElement.h; sourceTree = "<group>"; };
    8087                 4A1E718E14E101E400626F9D /* JSHTMLContentElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLContentElement.cpp; sourceTree = "<group>"; };
    8088                 4A1E718F14E101E400626F9D /* JSHTMLContentElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLContentElement.h; sourceTree = "<group>"; };
    80898083                4A1E71A414E106AC00626F9D /* JSShadowRoot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSShadowRoot.h; sourceTree = "<group>"; };
    80908084                4A38BF4E14FE1C0900612512 /* WebSocketDeflateFramer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebSocketDeflateFramer.cpp; path = Modules/websockets/WebSocketDeflateFramer.cpp; sourceTree = "<group>"; };
     
    83928386                57B7919F14C6A62900F202D1 /* ContentDistributor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ContentDistributor.cpp; sourceTree = "<group>"; };
    83938387                57B791A014C6A62900F202D1 /* ContentDistributor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentDistributor.h; sourceTree = "<group>"; };
    8394                 57B791A714C6A63300F202D1 /* HTMLContentElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLContentElement.cpp; sourceTree = "<group>"; };
    8395                 57B791A814C6A63300F202D1 /* HTMLContentElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLContentElement.h; sourceTree = "<group>"; };
    83968388                57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InsertionPoint.cpp; sourceTree = "<group>"; };
    83978389                57CF497314EE36D700ECFF14 /* InsertionPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InsertionPoint.h; sourceTree = "<group>"; };
     
    1026910261                A7B6E69D0B291A9600D0529F /* DragData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DragData.h; sourceTree = "<group>"; };
    1027010262                A7B7619F161EE526002083D3 /* StyleScopeResolver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleScopeResolver.h; sourceTree = "<group>"; };
    10271                 A7B7749614CF6353004044BB /* HTMLContentElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLContentElement.idl; sourceTree = "<group>"; };
    1027210263                A7BBE26411AFB3F20005EA03 /* JSHTMLMeterElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLMeterElement.cpp; sourceTree = "<group>"; };
    1027310264                A7BBE26511AFB3F20005EA03 /* JSHTMLMeterElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLMeterElement.h; sourceTree = "<group>"; };
     
    1449314484                                A7C9ABF61357A3BF00F5503F /* DetailsMarkerControl.cpp */,
    1449414485                                A7C9ABF71357A3BF00F5503F /* DetailsMarkerControl.h */,
    14495                                 57B791A714C6A63300F202D1 /* HTMLContentElement.cpp */,
    14496                                 57B791A814C6A63300F202D1 /* HTMLContentElement.h */,
    14497                                 A7B7749614CF6353004044BB /* HTMLContentElement.idl */,
    1449814486                                57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */,
    1449914487                                57CF497314EE36D700ECFF14 /* InsertionPoint.h */,
     
    1729517283                                BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */,
    1729617284                                BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */,
    17297                                 4A1E718E14E101E400626F9D /* JSHTMLContentElement.cpp */,
    17298                                 4A1E718F14E101E400626F9D /* JSHTMLContentElement.h */,
    1729917285                                F5C041E10FFCA96D00839D4A /* JSHTMLDataListElement.cpp */,
    1730017286                                F5C041E20FFCA96D00839D4A /* JSHTMLDataListElement.h */,
     
    2265822644                                A8DF3FD0097FA0FC0052981B /* HTMLCollection.h in Headers */,
    2265922645                                977B3865122883E900B81FF8 /* HTMLConstructionSite.h in Headers */,
    22660                                 57B791AA14C6A63300F202D1 /* HTMLContentElement.h in Headers */,
    2266122646                                E1A31663134BCAE8007C9A4F /* HTMLConverter.h in Headers */,
    2266222647                                F5C041DB0FFCA7CE00839D4A /* HTMLDataListElement.h in Headers */,
     
    2307523060                                938E666209F09B87008A48EC /* JSHTMLCanvasElement.h in Headers */,
    2307623061                                BCCBAD410C18C14200CE890F /* JSHTMLCollection.h in Headers */,
    23077                                 4A1E719114E101E400626F9D /* JSHTMLContentElement.h in Headers */,
    2307823062                                076306D017E1478D005A7C4E /* MediaStreamTrackSourcesCallback.h in Headers */,
    2307923063                                F5C041E70FFCA96D00839D4A /* JSHTMLDataListElement.h in Headers */,
     
    2591925903                                A8DF3FD1097FA0FC0052981B /* HTMLCollection.cpp in Sources */,
    2592025904                                977B3864122883E900B81FF8 /* HTMLConstructionSite.cpp in Sources */,
    25921                                 57B791A914C6A63300F202D1 /* HTMLContentElement.cpp in Sources */,
    2592225905                                5D4F51DF132725480016F541 /* HTMLConverter.mm in Sources */,
    2592325906                                F5C041DA0FFCA7CE00839D4A /* HTMLDataListElement.cpp in Sources */,
     
    2632626309                                BCCBAD3B0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp in Sources */,
    2632726310                                CD61FE841794CC59004101EB /* JSWebKitSourceBuffer.cpp in Sources */,
    26328                                 4A1E719014E101E400626F9D /* JSHTMLContentElement.cpp in Sources */,
    2632926311                                F5C041E60FFCA96D00839D4A /* JSHTMLDataListElement.cpp in Sources */,
    2633026312                                D359D8BE129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp in Sources */,
  • trunk/Source/WebCore/html/HTMLDetailsElement.cpp

    r156147 r156381  
    2323
    2424#if ENABLE(DETAILS_ELEMENT)
    25 #include "HTMLContentElement.h"
    2625#include "HTMLNames.h"
    2726#include "HTMLSummaryElement.h"
     27#include "InsertionPoint.h"
    2828#include "LocalizedStrings.h"
    2929#include "MouseEvent.h"
  • trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp

    r154835 r156381  
    4545#include "HTMLButtonElement.cpp"
    4646#include "HTMLCanvasElement.cpp"
    47 #include "HTMLContentElement.cpp"
    4847#include "HTMLDataListElement.cpp"
    4948#include "HTMLDetailsElement.cpp"
  • trunk/Source/WebCore/html/HTMLSummaryElement.cpp

    r156147 r156381  
    2424#if ENABLE(DETAILS_ELEMENT)
    2525#include "DetailsMarkerControl.h"
    26 #include "HTMLContentElement.h"
    2726#include "HTMLDetailsElement.h"
    2827#include "HTMLNames.h"
     28#include "InsertionPoint.h"
    2929#include "KeyboardEvent.h"
    3030#include "MouseEvent.h"
  • trunk/Source/WebCore/html/HTMLTagNames.in

    r155818 r156381  
    3232colgroup interfaceName=HTMLTableColElement
    3333command interfaceName=HTMLElement
    34 content interfaceName=HTMLContentElement, conditional=SHADOW_DOM, runtimeConditional=shadowDOM, generateTypeHelpers
    3534webkitShadowContent interfaceName=HTMLElement, noConstructor
    3635datalist interfaceName=HTMLDataListElement, conditional=DATALIST_ELEMENT
  • trunk/Source/WebCore/html/shadow/ContentDistributor.cpp

    r154165 r156381  
    2929
    3030#include "ElementTraversal.h"
    31 #include "HTMLContentElement.h"
     31#include "InsertionPoint.h"
    3232#include "ShadowRoot.h"
    33 
    3433
    3534namespace WebCore {
  • trunk/Source/WebCore/html/shadow/InsertionPoint.h

    r155795 r156381  
    4242class InsertionPoint : public HTMLElement {
    4343public:
    44     enum Type {
    45         InternalType,
    46         HTMLContentElementType
    47     };
    48 
    4944    enum MatchType {
    5045        AlwaysMatches,
     
    6055
    6156    virtual MatchType matchTypeFor(Node*) const { return AlwaysMatches; }
    62     virtual Type insertionPointType() const { return InternalType; }
    6357
    6458    virtual void willAttachRenderers() OVERRIDE;
  • trunk/Source/WebCore/testing/Internals.cpp

    r156256 r156381  
    5050#include "FrameLoader.h"
    5151#include "FrameView.h"
    52 #include "HTMLContentElement.h"
    5352#include "HTMLInputElement.h"
    5453#include "HTMLNames.h"
     
    347346}
    348347
    349 PassRefPtr<Element> Internals::createContentElement(ExceptionCode& ec)
    350 {
    351     Document* document = contextDocument();
    352     if (!document) {
    353         ec = INVALID_ACCESS_ERR;
    354         return 0;
    355     }
    356 
    357 #if ENABLE(SHADOW_DOM)
    358     return HTMLContentElement::create(*document);
    359 #else
    360     return 0;
    361 #endif
    362 }
    363 
    364 bool Internals::isValidContentSelect(Element* insertionPoint, ExceptionCode& ec)
    365 {
    366     if (!insertionPoint || !insertionPoint->isInsertionPoint()) {
    367         ec = INVALID_ACCESS_ERR;
    368         return false;
    369     }
    370 
    371 #if ENABLE(SHADOW_DOM)
    372     return isHTMLContentElement(insertionPoint) && toHTMLContentElement(insertionPoint)->isSelectValid();
    373 #else
    374     return false;
    375 #endif
    376 }
    377348
    378349Node* Internals::treeScopeRootNode(Node* node, ExceptionCode& ec)
  • trunk/Source/WebCore/testing/Internals.h

    r156215 r156381  
    110110    bool pauseTransitionAtTimeOnPseudoElement(const String& property, double pauseTime, Element*, const String& pseudoId, ExceptionCode&);
    111111
    112     PassRefPtr<Element> createContentElement(ExceptionCode&);
    113     bool isValidContentSelect(Element* insertionPoint, ExceptionCode&);
    114112    Node* treeScopeRootNode(Node*, ExceptionCode&);
    115113    Node* parentTreeScope(Node*, ExceptionCode&);
  • trunk/Source/WebCore/testing/Internals.idl

    r156215 r156381  
    5050    [RaisesException] DOMString shadowPseudoId(Element element);
    5151    [RaisesException] void setShadowPseudoId(Element element, DOMString id);
    52     [RaisesException] Element createContentElement();
    53     [RaisesException] boolean isValidContentSelect(Element contentElement);
    5452    [RaisesException] Node treeScopeRootNode(Node node);
    5553    [RaisesException] Node parentTreeScope(Node node);
Note: See TracChangeset for help on using the changeset viewer.