Changeset 156381 in webkit
- Timestamp:
- Sep 24, 2013, 8:09:41 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r156317 r156381 539 539 html/canvas/WebGLUniformLocation.idl 540 540 html/canvas/WebGLVertexArrayObjectOES.idl 541 542 html/shadow/HTMLContentElement.idl543 541 544 542 inspector/InjectedScriptHost.idl … … 1560 1558 html/shadow/ContentDistributor.cpp 1561 1559 html/shadow/DetailsMarkerControl.cpp 1562 html/shadow/HTMLContentElement.cpp1563 1560 html/shadow/InsertionPoint.cpp 1564 1561 html/shadow/MediaControlElementTypes.cpp -
trunk/Source/WebCore/ChangeLog
r156380 r156381 1 2013-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 1 26 2013-09-24 Benjamin Poulain <benjamin@webkit.org> 2 27 -
trunk/Source/WebCore/DerivedSources.cpp
r156049 r156381 183 183 #include "JSHTMLCanvasElement.cpp" 184 184 #include "JSHTMLCollection.cpp" 185 #include "JSHTMLContentElement.cpp"186 185 #include "JSHTMLDataListElement.cpp" 187 186 #include "JSHTMLDetailsElement.cpp" -
trunk/Source/WebCore/DerivedSources.make
r156309 r156381 449 449 $(WebCore)/html/canvas/WebGLUniformLocation.idl \ 450 450 $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \ 451 $(WebCore)/html/shadow/HTMLContentElement.idl \452 451 $(WebCore)/html/track/AudioTrack.idl \ 453 452 $(WebCore)/html/track/AudioTrackList.idl \ -
trunk/Source/WebCore/DerivedSources.pri
r156049 r156381 424 424 $$PWD/html/ValidityState.idl \ 425 425 $$PWD/html/VoidCallback.idl \ 426 $$PWD/html/shadow/HTMLContentElement.idl \427 426 $$PWD/inspector/InjectedScriptHost.idl \ 428 427 $$PWD/inspector/InspectorFrontendHost.idl \ -
trunk/Source/WebCore/GNUmakefile.list.am
r156296 r156381 326 326 DerivedSources/WebCore/JSHTMLCollection.cpp \ 327 327 DerivedSources/WebCore/JSHTMLCollection.h \ 328 DerivedSources/WebCore/JSHTMLContentElement.cpp \329 DerivedSources/WebCore/JSHTMLContentElement.h \330 328 DerivedSources/WebCore/JSHTMLDataListElement.cpp \ 331 329 DerivedSources/WebCore/JSHTMLDataListElement.h \ … … 1571 1569 $(WebCore)/html/canvas/WebGLUniformLocation.idl \ 1572 1570 $(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \ 1573 $(WebCore)/html/shadow/HTMLContentElement.idl \1574 1571 $(WebCore)/html/track/AudioTrack.idl \ 1575 1572 $(WebCore)/html/track/AudioTrackList.idl \ … … 3701 3698 Source/WebCore/html/shadow/DetailsMarkerControl.cpp \ 3702 3699 Source/WebCore/html/shadow/DetailsMarkerControl.h \ 3703 Source/WebCore/html/shadow/HTMLContentElement.cpp \3704 Source/WebCore/html/shadow/HTMLContentElement.h \3705 3700 Source/WebCore/html/shadow/InsertionPoint.cpp \ 3706 3701 Source/WebCore/html/shadow/InsertionPoint.h \ -
trunk/Source/WebCore/Target.pri
r156278 r156381 749 749 html/shadow/ContentDistributor.cpp \ 750 750 html/shadow/DetailsMarkerControl.cpp \ 751 html/shadow/HTMLContentElement.cpp \752 751 html/shadow/InsertionPoint.cpp \ 753 752 html/shadow/MediaControls.cpp \ … … 1917 1916 html/parser/XSSAuditorDelegate.h \ 1918 1917 html/shadow/ContentDistributor.h \ 1919 html/shadow/HTMLContentElement.h \1920 1918 html/shadow/MediaControlElementTypes.h \ 1921 1919 html/shadow/MediaControlElements.h \ -
trunk/Source/WebCore/WebCore.exp.in
r156215 r156381 2765 2765 #endif 2766 2766 2767 #if ENABLE(SHADOW_DOM)2768 __ZN7WebCore18HTMLContentElement6createEPNS_8DocumentE2769 #endif2770 2771 2767 #if ENABLE(CSS_REGIONS) 2772 2768 __ZN7WebCore22RuntimeEnabledFeatures19isCSSRegionsEnabledE -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r156278 r156381 2225 2225 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 2226 2226 </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>2241 2227 <ClCompile Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.cpp"> 2242 2228 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> … … 15599 15585 <ClCompile Include="..\html\shadow\ContentDistributor.cpp" /> 15600 15586 <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>15615 15587 <ClCompile Include="..\html\shadow\InsertionPoint.cpp" /> 15616 15588 <ClCompile Include="..\html\shadow\MediaControlElements.cpp" /> … … 18332 18304 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCanvasElement.h" /> 18333 18305 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLCollection.h" /> 18334 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLContentElement.h" />18335 18306 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDataListElement.h" /> 18336 18307 <ClInclude Include="$(ConfigurationBuildDir)\obj$(PlatformArchitecture)\$(ProjectName)\DerivedSources\JSHTMLDetailsElement.h" /> … … 20628 20599 <ClInclude Include="..\html\shadow\ContentDistributor.h" /> 20629 20600 <ClInclude Include="..\html\shadow\DetailsMarkerControl.h" /> 20630 <ClInclude Include="..\html\shadow\HTMLContentElement.h" />20631 20601 <ClInclude Include="..\html\shadow\InsertionPoint.h" /> 20632 20602 <ClInclude Include="..\html\shadow\MediaControlElements.h" /> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r156359 r156381 1497 1497 4A0DA2FE129B241900AB61E1 /* FormAssociatedElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A0DA2FC129B241900AB61E1 /* FormAssociatedElement.cpp */; }; 1498 1498 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 */; };1501 1499 4A1E71A614E106AC00626F9D /* JSShadowRoot.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A1E71A414E106AC00626F9D /* JSShadowRoot.h */; }; 1502 1500 4A38BF5014FE1C0900612512 /* WebSocketDeflateFramer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A38BF4E14FE1C0900612512 /* WebSocketDeflateFramer.cpp */; }; … … 1786 1784 57B791A314C6A62900F202D1 /* ContentDistributor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57B7919F14C6A62900F202D1 /* ContentDistributor.cpp */; }; 1787 1785 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 */; };1790 1786 57CF497414EE36D700ECFF14 /* InsertionPoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */; }; 1791 1787 57CF497514EE36D700ECFF14 /* InsertionPoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 57CF497314EE36D700ECFF14 /* InsertionPoint.h */; }; … … 8085 8081 4A0DA2FC129B241900AB61E1 /* FormAssociatedElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FormAssociatedElement.cpp; sourceTree = "<group>"; }; 8086 8082 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>"; };8089 8083 4A1E71A414E106AC00626F9D /* JSShadowRoot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSShadowRoot.h; sourceTree = "<group>"; }; 8090 8084 4A38BF4E14FE1C0900612512 /* WebSocketDeflateFramer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WebSocketDeflateFramer.cpp; path = Modules/websockets/WebSocketDeflateFramer.cpp; sourceTree = "<group>"; }; … … 8392 8386 57B7919F14C6A62900F202D1 /* ContentDistributor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ContentDistributor.cpp; sourceTree = "<group>"; }; 8393 8387 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>"; };8396 8388 57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InsertionPoint.cpp; sourceTree = "<group>"; }; 8397 8389 57CF497314EE36D700ECFF14 /* InsertionPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InsertionPoint.h; sourceTree = "<group>"; }; … … 10269 10261 A7B6E69D0B291A9600D0529F /* DragData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DragData.h; sourceTree = "<group>"; }; 10270 10262 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>"; };10272 10263 A7BBE26411AFB3F20005EA03 /* JSHTMLMeterElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLMeterElement.cpp; sourceTree = "<group>"; }; 10273 10264 A7BBE26511AFB3F20005EA03 /* JSHTMLMeterElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLMeterElement.h; sourceTree = "<group>"; }; … … 14493 14484 A7C9ABF61357A3BF00F5503F /* DetailsMarkerControl.cpp */, 14494 14485 A7C9ABF71357A3BF00F5503F /* DetailsMarkerControl.h */, 14495 57B791A714C6A63300F202D1 /* HTMLContentElement.cpp */,14496 57B791A814C6A63300F202D1 /* HTMLContentElement.h */,14497 A7B7749614CF6353004044BB /* HTMLContentElement.idl */,14498 14486 57CF497214EE36D700ECFF14 /* InsertionPoint.cpp */, 14499 14487 57CF497314EE36D700ECFF14 /* InsertionPoint.h */, … … 17295 17283 BCCBAD3E0C18C14200CE890F /* JSHTMLCollection.cpp */, 17296 17284 BCCBAD3F0C18C14200CE890F /* JSHTMLCollection.h */, 17297 4A1E718E14E101E400626F9D /* JSHTMLContentElement.cpp */,17298 4A1E718F14E101E400626F9D /* JSHTMLContentElement.h */,17299 17285 F5C041E10FFCA96D00839D4A /* JSHTMLDataListElement.cpp */, 17300 17286 F5C041E20FFCA96D00839D4A /* JSHTMLDataListElement.h */, … … 22658 22644 A8DF3FD0097FA0FC0052981B /* HTMLCollection.h in Headers */, 22659 22645 977B3865122883E900B81FF8 /* HTMLConstructionSite.h in Headers */, 22660 57B791AA14C6A63300F202D1 /* HTMLContentElement.h in Headers */,22661 22646 E1A31663134BCAE8007C9A4F /* HTMLConverter.h in Headers */, 22662 22647 F5C041DB0FFCA7CE00839D4A /* HTMLDataListElement.h in Headers */, … … 23075 23060 938E666209F09B87008A48EC /* JSHTMLCanvasElement.h in Headers */, 23076 23061 BCCBAD410C18C14200CE890F /* JSHTMLCollection.h in Headers */, 23077 4A1E719114E101E400626F9D /* JSHTMLContentElement.h in Headers */,23078 23062 076306D017E1478D005A7C4E /* MediaStreamTrackSourcesCallback.h in Headers */, 23079 23063 F5C041E70FFCA96D00839D4A /* JSHTMLDataListElement.h in Headers */, … … 25919 25903 A8DF3FD1097FA0FC0052981B /* HTMLCollection.cpp in Sources */, 25920 25904 977B3864122883E900B81FF8 /* HTMLConstructionSite.cpp in Sources */, 25921 57B791A914C6A63300F202D1 /* HTMLContentElement.cpp in Sources */,25922 25905 5D4F51DF132725480016F541 /* HTMLConverter.mm in Sources */, 25923 25906 F5C041DA0FFCA7CE00839D4A /* HTMLDataListElement.cpp in Sources */, … … 26326 26309 BCCBAD3B0C18BFF800CE890F /* JSHTMLCollectionCustom.cpp in Sources */, 26327 26310 CD61FE841794CC59004101EB /* JSWebKitSourceBuffer.cpp in Sources */, 26328 4A1E719014E101E400626F9D /* JSHTMLContentElement.cpp in Sources */,26329 26311 F5C041E60FFCA96D00839D4A /* JSHTMLDataListElement.cpp in Sources */, 26330 26312 D359D8BE129CA55C0006E5D2 /* JSHTMLDetailsElement.cpp in Sources */, -
trunk/Source/WebCore/html/HTMLDetailsElement.cpp
r156147 r156381 23 23 24 24 #if ENABLE(DETAILS_ELEMENT) 25 #include "HTMLContentElement.h"26 25 #include "HTMLNames.h" 27 26 #include "HTMLSummaryElement.h" 27 #include "InsertionPoint.h" 28 28 #include "LocalizedStrings.h" 29 29 #include "MouseEvent.h" -
trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp
r154835 r156381 45 45 #include "HTMLButtonElement.cpp" 46 46 #include "HTMLCanvasElement.cpp" 47 #include "HTMLContentElement.cpp"48 47 #include "HTMLDataListElement.cpp" 49 48 #include "HTMLDetailsElement.cpp" -
trunk/Source/WebCore/html/HTMLSummaryElement.cpp
r156147 r156381 24 24 #if ENABLE(DETAILS_ELEMENT) 25 25 #include "DetailsMarkerControl.h" 26 #include "HTMLContentElement.h"27 26 #include "HTMLDetailsElement.h" 28 27 #include "HTMLNames.h" 28 #include "InsertionPoint.h" 29 29 #include "KeyboardEvent.h" 30 30 #include "MouseEvent.h" -
trunk/Source/WebCore/html/HTMLTagNames.in
r155818 r156381 32 32 colgroup interfaceName=HTMLTableColElement 33 33 command interfaceName=HTMLElement 34 content interfaceName=HTMLContentElement, conditional=SHADOW_DOM, runtimeConditional=shadowDOM, generateTypeHelpers35 34 webkitShadowContent interfaceName=HTMLElement, noConstructor 36 35 datalist interfaceName=HTMLDataListElement, conditional=DATALIST_ELEMENT -
trunk/Source/WebCore/html/shadow/ContentDistributor.cpp
r154165 r156381 29 29 30 30 #include "ElementTraversal.h" 31 #include " HTMLContentElement.h"31 #include "InsertionPoint.h" 32 32 #include "ShadowRoot.h" 33 34 33 35 34 namespace WebCore { -
trunk/Source/WebCore/html/shadow/InsertionPoint.h
r155795 r156381 42 42 class InsertionPoint : public HTMLElement { 43 43 public: 44 enum Type {45 InternalType,46 HTMLContentElementType47 };48 49 44 enum MatchType { 50 45 AlwaysMatches, … … 60 55 61 56 virtual MatchType matchTypeFor(Node*) const { return AlwaysMatches; } 62 virtual Type insertionPointType() const { return InternalType; }63 57 64 58 virtual void willAttachRenderers() OVERRIDE; -
trunk/Source/WebCore/testing/Internals.cpp
r156256 r156381 50 50 #include "FrameLoader.h" 51 51 #include "FrameView.h" 52 #include "HTMLContentElement.h"53 52 #include "HTMLInputElement.h" 54 53 #include "HTMLNames.h" … … 347 346 } 348 347 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 #else360 return 0;361 #endif362 }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 #else374 return false;375 #endif376 }377 348 378 349 Node* Internals::treeScopeRootNode(Node* node, ExceptionCode& ec) -
trunk/Source/WebCore/testing/Internals.h
r156215 r156381 110 110 bool pauseTransitionAtTimeOnPseudoElement(const String& property, double pauseTime, Element*, const String& pseudoId, ExceptionCode&); 111 111 112 PassRefPtr<Element> createContentElement(ExceptionCode&);113 bool isValidContentSelect(Element* insertionPoint, ExceptionCode&);114 112 Node* treeScopeRootNode(Node*, ExceptionCode&); 115 113 Node* parentTreeScope(Node*, ExceptionCode&); -
trunk/Source/WebCore/testing/Internals.idl
r156215 r156381 50 50 [RaisesException] DOMString shadowPseudoId(Element element); 51 51 [RaisesException] void setShadowPseudoId(Element element, DOMString id); 52 [RaisesException] Element createContentElement();53 [RaisesException] boolean isValidContentSelect(Element contentElement);54 52 [RaisesException] Node treeScopeRootNode(Node node); 55 53 [RaisesException] Node parentTreeScope(Node node);
Note:
See TracChangeset
for help on using the changeset viewer.