Diff
Modified: trunk/LayoutTests/ChangeLog (106793 => 106794)
--- trunk/LayoutTests/ChangeLog 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/LayoutTests/ChangeLog 2012-02-06 10:39:29 UTC (rev 106794)
@@ -1,3 +1,15 @@
+2012-02-06 Hayato Ito <[email protected]>
+
+ Add <shadow> element, which is guarded by SHADOW_DOM flag.
+ https://bugs.webkit.org/show_bug.cgi?id=76435
+
+ Reviewed by Dimitri Glazkov.
+
+ Test: fast/dom/shadow/shadow-element.html
+
+ * fast/dom/shadow/shadow-element-expected.txt: Added.
+ * fast/dom/shadow/shadow-element.html: Added.
+
2012-02-06 Joe Thomas <[email protected]>
https://bugs.webkit.org/show_bug.cgi?id=76995.
Added: trunk/LayoutTests/fast/dom/shadow/shadow-element-expected.txt (0 => 106794)
--- trunk/LayoutTests/fast/dom/shadow/shadow-element-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dom/shadow/shadow-element-expected.txt 2012-02-06 10:39:29 UTC (rev 106794)
@@ -0,0 +1,10 @@
+This test ensures that the shadow element is available.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS shadow.nodeName is 'SHADOW'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/fast/dom/shadow/shadow-element.html (0 => 106794)
--- trunk/LayoutTests/fast/dom/shadow/shadow-element.html (rev 0)
+++ trunk/LayoutTests/fast/dom/shadow/shadow-element.html 2012-02-06 10:39:29 UTC (rev 106794)
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<div>
+ <shadow id="shadow"></content>
+</div>
+<script>
+ description("This test ensures that the shadow element is available.")
+// Since shadow element does not have its own APIS, it acts like a normal element.
+// We don't have to guard this by SHADOW_DOM flag for now.
+var shadow = document.getElementById("shadow");
+shouldBe("shadow.nodeName", "'SHADOW'");
+</script>
+<script src=""
+</body>
+</html>
Modified: trunk/Source/WebCore/CMakeLists.txt (106793 => 106794)
--- trunk/Source/WebCore/CMakeLists.txt 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/CMakeLists.txt 2012-02-06 10:39:29 UTC (rev 106794)
@@ -307,6 +307,7 @@
html/canvas/Uint8ClampedArray.idl
html/shadow/HTMLContentElement.idl
+ html/shadow/HTMLShadowElement.idl
html/track/TextTrackList.idl
html/track/TrackEvent.idl
@@ -866,6 +867,7 @@
html/shadow/ContentInclusionSelector.cpp
html/shadow/DetailsMarkerControl.cpp
html/shadow/HTMLContentElement.cpp
+ html/shadow/HTMLShadowElement.cpp
html/shadow/MediaControls.cpp
html/shadow/MediaControlRootElement.cpp
html/shadow/MeterShadowElement.cpp
Modified: trunk/Source/WebCore/ChangeLog (106793 => 106794)
--- trunk/Source/WebCore/ChangeLog 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/ChangeLog 2012-02-06 10:39:29 UTC (rev 106794)
@@ -1,3 +1,33 @@
+2012-02-06 Hayato Ito <[email protected]>
+
+ Add <shadow> element, which is guarded by SHADOW_DOM flag.
+ https://bugs.webkit.org/show_bug.cgi?id=76435
+
+ Reviewed by Dimitri Glazkov.
+
+ Test: fast/dom/shadow/shadow-element.html
+
+ * CMakeLists.txt:
+ * DerivedSources.cpp:
+ * DerivedSources.make:
+ * DerivedSources.pri:
+ * GNUmakefile.list.am:
+ * Target.pri:
+ * WebCore.gypi:
+ * WebCore.vcproj/WebCore.vcproj:
+ * WebCore.xcodeproj/project.pbxproj:
+ * html/HTMLElementsAllInOne.cpp:
+ * html/HTMLTagNames.in:
+ * html/shadow/HTMLShadowElement.cpp: Added.
+ (WebCore):
+ (WebCore::HTMLShadowElement::HTMLShadowElement):
+ (WebCore::HTMLShadowElement::create):
+ (WebCore::HTMLShadowElement::~HTMLShadowElement):
+ * html/shadow/HTMLShadowElement.h: Added.
+ (WebCore):
+ (HTMLShadowElement):
+ * html/shadow/HTMLShadowElement.idl: Added.
+
2012-02-06 Joe Thomas <[email protected]>
https://bugs.webkit.org/show_bug.cgi?id=76995.
Modified: trunk/Source/WebCore/DerivedSources.cpp (106793 => 106794)
--- trunk/Source/WebCore/DerivedSources.cpp 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/DerivedSources.cpp 2012-02-06 10:39:29 UTC (rev 106794)
@@ -193,6 +193,9 @@
#include "JSHTMLQuoteElement.cpp"
#include "JSHTMLScriptElement.cpp"
#include "JSHTMLSelectElement.cpp"
+#if ENABLE(SHADOW_DOM)
+#include "JSHTMLShadowElement.cpp"
+#endif
#include "JSHTMLSourceElement.cpp"
#include "JSHTMLSpanElement.cpp"
#include "JSHTMLStyleElement.cpp"
Modified: trunk/Source/WebCore/DerivedSources.make (106793 => 106794)
--- trunk/Source/WebCore/DerivedSources.make 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/DerivedSources.make 2012-02-06 10:39:29 UTC (rev 106794)
@@ -299,6 +299,7 @@
$(WebCore)/html/canvas/WebGLUniformLocation.idl \
$(WebCore)/html/canvas/WebGLVertexArrayObjectOES.idl \
$(WebCore)/html/shadow/HTMLContentElement.idl \
+ $(WebCore)/html/shadow/HTMLShadowElement.idl \
$(WebCore)/html/track/TextTrackList.idl \
$(WebCore)/html/track/TrackEvent.idl \
$(WebCore)/inspector/InjectedScriptHost.idl \
Modified: trunk/Source/WebCore/DerivedSources.pri (106793 => 106794)
--- trunk/Source/WebCore/DerivedSources.pri 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/DerivedSources.pri 2012-02-06 10:39:29 UTC (rev 106794)
@@ -327,6 +327,7 @@
$$PWD/html/ValidityState.idl \
$$PWD/html/VoidCallback.idl \
$$PWD/html/shadow/HTMLContentElement.idl \
+ $$PWD/html/shadow/HTMLShadowElement.idl \
$$PWD/inspector/InjectedScriptHost.idl \
$$PWD/inspector/InspectorFrontendHost.idl \
$$PWD/inspector/_javascript_CallFrame.idl \
Modified: trunk/Source/WebCore/GNUmakefile.list.am (106793 => 106794)
--- trunk/Source/WebCore/GNUmakefile.list.am 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/GNUmakefile.list.am 2012-02-06 10:39:29 UTC (rev 106794)
@@ -5761,3 +5761,15 @@
Source/WebCore/platform/graphics/cairo/TextureMapperGLCairo.h
endif # END USE_TEXTURE_MAPPER_GL
endif # USE_ACCELERATED_COMPOSITING
+
+# ---
+# Shadow DOM support
+# ---
+if ENABLE_SHADOW_DOM
+webcore_built_sources += \
+ DerivedSources/WebCore/JSHTMLShadowElement.cpp \
+ DerivedSources/WebCore/JSHTMLShadowElement.h
+dom_binding_idls += \
+ $(WebCore)/html/shadow/HTMLShadowElement.idl
+
+endif # END ENABLE_SHADOW_DOM
Modified: trunk/Source/WebCore/Target.pri (106793 => 106794)
--- trunk/Source/WebCore/Target.pri 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/Target.pri 2012-02-06 10:39:29 UTC (rev 106794)
@@ -846,6 +846,7 @@
html/shadow/ContentInclusionSelector.cpp \
html/shadow/DetailsMarkerControl.cpp \
html/shadow/HTMLContentElement.cpp \
+ html/shadow/HTMLShadowElement.cpp \
html/shadow/MediaControls.cpp \
html/shadow/MediaControlRootElement.cpp \
html/shadow/MeterShadowElement.cpp \
@@ -1906,6 +1907,7 @@
html/shadow/ContentSelectorQuery.h \
html/shadow/ContentInclusionSelector.h \
html/shadow/HTMLContentElement.h \
+ html/shadow/HTMLShadowElement.h \
html/shadow/MediaControlElements.h \
html/shadow/DetailsMarkerControl.h \
html/track/TextTrackList.h \
Modified: trunk/Source/WebCore/WebCore.gypi (106793 => 106794)
--- trunk/Source/WebCore/WebCore.gypi 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/WebCore.gypi 2012-02-06 10:39:29 UTC (rev 106794)
@@ -976,6 +976,7 @@
'html/canvas/WebGLUniformLocation.idl',
'html/canvas/WebGLVertexArrayObjectOES.idl',
'html/shadow/HTMLContentElement.idl',
+ 'html/shadow/HTMLShadowElement.idl',
'html/track/TextTrackList.idl',
'html/track/TrackEvent.idl',
'inspector/InjectedScriptHost.idl',
@@ -5532,6 +5533,8 @@
'html/shadow/DetailsMarkerControl.h',
'html/shadow/HTMLContentElement.cpp',
'html/shadow/HTMLContentElement.h',
+ 'html/shadow/HTMLShadowElement.cpp',
+ 'html/shadow/HTMLShadowElement.h',
'html/shadow/MediaControls.cpp',
'html/shadow/MediaControls.h',
'html/shadow/MediaControlElements.cpp',
Modified: trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj (106793 => 106794)
--- trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj 2012-02-06 10:39:29 UTC (rev 106794)
@@ -8830,6 +8830,62 @@
>
</File>
<File
+ RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSHTMLShadowElement.cpp"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Cairo_CFLite|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Cairo_CFLite|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_All|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Production|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSHTMLShadowElement.h"
+ >
+ </File>
+ <File
RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSHTMLSourceElement.cpp"
>
<FileConfiguration
@@ -60833,6 +60889,62 @@
>
</File>
<File
+ RelativePath="..\html\shadow\HTMLShadowElement.cpp"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Cairo_CFLite|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Cairo_CFLite|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_All|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Production|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\html\shadow\HTMLShadowElement.h"
+ >
+ </File>
+ <File
RelativePath="..\html\shadow\MediaControlElements.cpp"
>
</File>
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (106793 => 106794)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2012-02-06 10:39:29 UTC (rev 106794)
@@ -1359,6 +1359,8 @@
4A6E9FC713C17D570046A7F8 /* FontFeatureSettings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4A6E9FC513C17D570046A7F8 /* FontFeatureSettings.cpp */; };
4A6E9FC813C17D570046A7F8 /* FontFeatureSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A6E9FC613C17D570046A7F8 /* FontFeatureSettings.h */; settings = {ATTRIBUTES = (Private, ); }; };
4A8C96EB0BE69032004EEFF0 /* FrameSelectionMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4A8C96EA0BE69032004EEFF0 /* FrameSelectionMac.mm */; };
+ 4ABDFF0B14DBE385004D117D /* HTMLShadowElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ABDFF0714DBE312004D117D /* HTMLShadowElement.cpp */; };
+ 4ABDFF0C14DBE385004D117D /* HTMLShadowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ABDFF0814DBE312004D117D /* HTMLShadowElement.h */; };
4ACBC0BE12713CBD0094F9B2 /* ClassList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ACBC0BC12713CBD0094F9B2 /* ClassList.cpp */; };
4ACBC0BF12713CBD0094F9B2 /* ClassList.h in Headers */ = {isa = PBXBuildFile; fileRef = 4ACBC0BD12713CBD0094F9B2 /* ClassList.h */; };
4ACBC0C312713CCA0094F9B2 /* DOMSettableTokenList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4ACBC0C012713CCA0094F9B2 /* DOMSettableTokenList.cpp */; };
@@ -8185,6 +8187,9 @@
4A6E9FC513C17D570046A7F8 /* FontFeatureSettings.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FontFeatureSettings.cpp; sourceTree = "<group>"; };
4A6E9FC613C17D570046A7F8 /* FontFeatureSettings.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.h; fileEncoding = 4; path = FontFeatureSettings.h; sourceTree = "<group>"; };
4A8C96EA0BE69032004EEFF0 /* FrameSelectionMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; name = FrameSelectionMac.mm; path = mac/FrameSelectionMac.mm; sourceTree = "<group>"; };
+ 4ABDFF0714DBE312004D117D /* HTMLShadowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLShadowElement.cpp; sourceTree = "<group>"; };
+ 4ABDFF0814DBE312004D117D /* HTMLShadowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLShadowElement.h; sourceTree = "<group>"; };
+ 4ABDFF0914DBE312004D117D /* HTMLShadowElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLShadowElement.idl; sourceTree = "<group>"; };
4ACBC0BC12713CBD0094F9B2 /* ClassList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ClassList.cpp; sourceTree = "<group>"; };
4ACBC0BD12713CBD0094F9B2 /* ClassList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ClassList.h; sourceTree = "<group>"; };
4ACBC0C012713CCA0094F9B2 /* DOMSettableTokenList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMSettableTokenList.cpp; sourceTree = "<group>"; };
@@ -14311,6 +14316,9 @@
57B791A714C6A63300F202D1 /* HTMLContentElement.cpp */,
57B791A814C6A63300F202D1 /* HTMLContentElement.h */,
A7B7749614CF6353004044BB /* HTMLContentElement.idl */,
+ 4ABDFF0714DBE312004D117D /* HTMLShadowElement.cpp */,
+ 4ABDFF0814DBE312004D117D /* HTMLShadowElement.h */,
+ 4ABDFF0914DBE312004D117D /* HTMLShadowElement.idl */,
417253A81354BBBC00360F2A /* MediaControlElements.cpp */,
417253A91354BBBC00360F2A /* MediaControlElements.h */,
4157AF7F12F1FB0400A8C6F5 /* MediaControlRootElement.cpp */,
@@ -22321,6 +22329,7 @@
977B3875122883E900B81FF8 /* HTMLScriptRunner.h in Headers */,
977B3876122883E900B81FF8 /* HTMLScriptRunnerHost.h in Headers */,
A81369D8097374F600D74463 /* HTMLSelectElement.h in Headers */,
+ 4ABDFF0C14DBE385004D117D /* HTMLShadowElement.h in Headers */,
E44613A80CD6331000FADA75 /* HTMLSourceElement.h in Headers */,
977E2DCE12F0E28300C13379 /* HTMLSourceTracker.h in Headers */,
978AD67514130A8D00C7CAE3 /* HTMLSpanElement.h in Headers */,
@@ -25365,6 +25374,7 @@
A871DC220A15205700B12A68 /* HTMLScriptElement.cpp in Sources */,
977B3874122883E900B81FF8 /* HTMLScriptRunner.cpp in Sources */,
A81369D9097374F600D74463 /* HTMLSelectElement.cpp in Sources */,
+ 4ABDFF0B14DBE385004D117D /* HTMLShadowElement.cpp in Sources */,
E44613A70CD6331000FADA75 /* HTMLSourceElement.cpp in Sources */,
977E2DCD12F0E28300C13379 /* HTMLSourceTracker.cpp in Sources */,
978AD67414130A8D00C7CAE3 /* HTMLSpanElement.cpp in Sources */,
Modified: trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp (106793 => 106794)
--- trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp 2012-02-06 10:39:29 UTC (rev 106794)
@@ -90,6 +90,7 @@
#include "HTMLQuoteElement.cpp"
#include "HTMLScriptElement.cpp"
#include "HTMLSelectElement.cpp"
+#include "HTMLShadowElement.cpp"
#include "HTMLSourceElement.cpp"
#include "HTMLSpanElement.cpp"
#include "HTMLStyleElement.cpp"
Modified: trunk/Source/WebCore/html/HTMLTagNames.in (106793 => 106794)
--- trunk/Source/WebCore/html/HTMLTagNames.in 2012-02-06 10:26:05 UTC (rev 106793)
+++ trunk/Source/WebCore/html/HTMLTagNames.in 2012-02-06 10:39:29 UTC (rev 106794)
@@ -93,6 +93,7 @@
optgroup interfaceName=HTMLOptGroupElement, constructorNeedsFormElement
option constructorNeedsFormElement
output constructorNeedsFormElement
+shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM
p interfaceName=HTMLParagraphElement
param
plaintext interfaceName=HTMLElement
Added: trunk/Source/WebCore/html/shadow/HTMLShadowElement.cpp (0 => 106794)
--- trunk/Source/WebCore/html/shadow/HTMLShadowElement.cpp (rev 0)
+++ trunk/Source/WebCore/html/shadow/HTMLShadowElement.cpp 2012-02-06 10:39:29 UTC (rev 106794)
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+
+#if ENABLE(SHADOW_DOM)
+
+#include "HTMLShadowElement.h"
+
+#include "HTMLNames.h"
+
+namespace WebCore {
+
+class Document;
+
+inline HTMLShadowElement::HTMLShadowElement(const QualifiedName& tagName, Document* document)
+ : HTMLElement(tagName, document)
+{
+ ASSERT(hasTagName(HTMLNames::shadowTag));
+}
+
+PassRefPtr<HTMLShadowElement> HTMLShadowElement::create(const QualifiedName& tagName, Document* document)
+{
+ return adoptRef(new HTMLShadowElement(tagName, document));
+}
+
+HTMLShadowElement::~HTMLShadowElement()
+{
+}
+
+} // namespace WebCore
+
+#endif // ENABLE(SHADOW_DOM)
Added: trunk/Source/WebCore/html/shadow/HTMLShadowElement.h (0 => 106794)
--- trunk/Source/WebCore/html/shadow/HTMLShadowElement.h (rev 0)
+++ trunk/Source/WebCore/html/shadow/HTMLShadowElement.h 2012-02-06 10:39:29 UTC (rev 106794)
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef HTMLShadowElement_h
+#define HTMLShadowElement_h
+
+#if ENABLE(SHADOW_DOM)
+
+#include "HTMLElement.h"
+
+namespace WebCore {
+
+class HTMLShadowElement : public HTMLElement {
+public:
+ static PassRefPtr<HTMLShadowElement> create(const QualifiedName&, Document*);
+
+ virtual ~HTMLShadowElement();
+
+private:
+ HTMLShadowElement(const QualifiedName&, Document*);
+};
+
+} // namespace WebCore
+
+#endif // ENABLE(SHADOW_DOM)
+
+#endif // HTMLShadowElement_h
Added: trunk/Source/WebCore/html/shadow/HTMLShadowElement.idl (0 => 106794)
--- trunk/Source/WebCore/html/shadow/HTMLShadowElement.idl (rev 0)
+++ trunk/Source/WebCore/html/shadow/HTMLShadowElement.idl 2012-02-06 10:39:29 UTC (rev 106794)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following disclaimer
+ * in the documentation and/or other materials provided with the
+ * distribution.
+ * * Neither the name of Google Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+module html {
+
+ interface [
+ Conditional=SHADOW_DOM,
+ EnabledAtRuntime=shadowDOM
+ ] HTMLShadowElement : HTMLElement {
+ };
+
+}