Diff
Modified: trunk/LayoutTests/ChangeLog (93481 => 93482)
--- trunk/LayoutTests/ChangeLog 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/ChangeLog 2011-08-20 18:40:16 UTC (rev 93482)
@@ -1,3 +1,22 @@
+2011-08-20 Tom Zakrajsek <[email protected]>
+
+ instanceof HTMLSourceElement Fails
+ https://bugs.webkit.org/show_bug.cgi?id=65013
+
+ Reviewed by Eric Carlson.
+
+ Updated test results after adding HTMLSourceElement to the DOMWindow
+
+ * fast/dom/prototype-inheritance-2-expected.txt:
+ * fast/dom/prototype-inheritance-expected.txt:
+ * platform/chromium/fast/dom/prototype-inheritance-expected.txt:
+ * platform/gtk/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/gtk/fast/dom/prototype-inheritance-expected.txt:
+ * platform/qt-wk2/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/qt/fast/dom/prototype-inheritance-2-expected.txt:
+ * platform/qt/fast/dom/prototype-inheritance-expected.txt:
+ * platform/win/fast/dom/prototype-inheritance-expected.txt:
+
2011-08-20 Darin Adler <[email protected]>
If Range::insertNode is passed an empty document fragment, it creates a broken DOM tree
Modified: trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt (93481 => 93482)
--- trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -276,6 +276,7 @@
Never found HTMLQuoteElement
Never found HTMLScriptElement
Never found HTMLSelectElement
+Never found HTMLSourceElement
Never found HTMLTableCaptionElement
Never found HTMLTableCellElement
Never found HTMLTableColElement
Modified: trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt (93481 => 93482)
--- trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -221,6 +221,8 @@
PASS inner.HTMLScriptElement.constructor.isInner is true
PASS inner.HTMLSelectElement.isInner is true
PASS inner.HTMLSelectElement.constructor.isInner is true
+PASS inner.HTMLSourceElement.isInner is true
+PASS inner.HTMLSourceElement.constructor.isInner is true
PASS inner.HTMLStyleElement.isInner is true
PASS inner.HTMLStyleElement.constructor.isInner is true
PASS inner.HTMLTableCaptionElement.isInner is true
Modified: trunk/LayoutTests/platform/chromium/fast/dom/prototype-inheritance-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/chromium/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/chromium/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -221,6 +221,8 @@
PASS inner.HTMLScriptElement.constructor.isInner is true
PASS inner.HTMLSelectElement.isInner is true
PASS inner.HTMLSelectElement.constructor.isInner is true
+PASS inner.HTMLSourceElement.isInner is true
+PASS inner.HTMLSourceElement.constructor.isInner is true
PASS inner.HTMLStyleElement.isInner is true
PASS inner.HTMLStyleElement.constructor.isInner is true
PASS inner.HTMLTableCaptionElement.isInner is true
Modified: trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-2-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -276,6 +276,7 @@
Never found HTMLQuoteElement
Never found HTMLScriptElement
Never found HTMLSelectElement
+Never found HTMLSourceElement
Never found HTMLTableCaptionElement
Never found HTMLTableCellElement
Never found HTMLTableColElement
Modified: trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -221,6 +221,8 @@
PASS inner.HTMLScriptElement.constructor.isInner is true
PASS inner.HTMLSelectElement.isInner is true
PASS inner.HTMLSelectElement.constructor.isInner is true
+PASS inner.HTMLSourceElement.isInner is true
+PASS inner.HTMLSourceElement.constructor.isInner is true
PASS inner.HTMLStyleElement.isInner is true
PASS inner.HTMLStyleElement.constructor.isInner is true
PASS inner.HTMLTableCaptionElement.isInner is true
Modified: trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-2-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -284,6 +284,7 @@
Never found HTMLQuoteElement
Never found HTMLScriptElement
Never found HTMLSelectElement
+Never found HTMLSourceElement
Never found HTMLTableCaptionElement
Never found HTMLTableCellElement
Never found HTMLTableColElement
Modified: trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -221,6 +221,8 @@
PASS inner.HTMLScriptElement.constructor.isInner is true
PASS inner.HTMLSelectElement.isInner is true
PASS inner.HTMLSelectElement.constructor.isInner is true
+PASS inner.HTMLSourceElement.isInner is true
+PASS inner.HTMLSourceElement.constructor.isInner is true
PASS inner.HTMLStyleElement.isInner is true
PASS inner.HTMLStyleElement.constructor.isInner is true
PASS inner.HTMLTableCaptionElement.isInner is true
Modified: trunk/LayoutTests/platform/qt-wk2/fast/dom/prototype-inheritance-2-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/qt-wk2/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/qt-wk2/fast/dom/prototype-inheritance-2-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -279,6 +279,7 @@
Never found HTMLQuoteElement
Never found HTMLScriptElement
Never found HTMLSelectElement
+Never found HTMLSourceElement
Never found HTMLTableCaptionElement
Never found HTMLTableCellElement
Never found HTMLTableColElement
Modified: trunk/LayoutTests/platform/win/fast/dom/prototype-inheritance-expected.txt (93481 => 93482)
--- trunk/LayoutTests/platform/win/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/LayoutTests/platform/win/fast/dom/prototype-inheritance-expected.txt 2011-08-20 18:40:16 UTC (rev 93482)
@@ -219,6 +219,8 @@
PASS inner.HTMLScriptElement.constructor.isInner is true
PASS inner.HTMLSelectElement.isInner is true
PASS inner.HTMLSelectElement.constructor.isInner is true
+PASS inner.HTMLSourceElement.isInner is true
+PASS inner.HTMLSourceElement.constructor.isInner is true
PASS inner.HTMLStyleElement.isInner is true
PASS inner.HTMLStyleElement.constructor.isInner is true
PASS inner.HTMLTableCaptionElement.isInner is true
Modified: trunk/Source/WebCore/ChangeLog (93481 => 93482)
--- trunk/Source/WebCore/ChangeLog 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/Source/WebCore/ChangeLog 2011-08-20 18:40:16 UTC (rev 93482)
@@ -1,3 +1,18 @@
+2011-08-20 Tom Zakrajsek <[email protected]>
+
+ instanceof HTMLSourceElement Fails
+ https://bugs.webkit.org/show_bug.cgi?id=65013
+
+ Reviewed by Eric Carlson.
+
+ Add HTMLSourceElement to DOMWindow.idl for consistency. Constructors for
+ all elements should be available on DOMWindow.
+
+ * bindings/generic/RuntimeEnabledFeatures.cpp:
+ (WebCore::RuntimeEnabledFeatures::htmlSourceElementEnabled):
+ * bindings/generic/RuntimeEnabledFeatures.h:
+ * page/DOMWindow.idl:
+
2011-08-20 Darin Adler <[email protected]>
If Range::insertNode is passed an empty document fragment, it creates a broken DOM tree
Modified: trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp (93481 => 93482)
--- trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp 2011-08-20 18:40:16 UTC (rev 93482)
@@ -104,6 +104,11 @@
return MediaPlayer::isAvailable();
}
+bool RuntimeEnabledFeatures::htmlSourceElementEnabled()
+{
+ return MediaPlayer::isAvailable();
+}
+
bool RuntimeEnabledFeatures::mediaErrorEnabled()
{
return MediaPlayer::isAvailable();
Modified: trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h (93481 => 93482)
--- trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h 2011-08-20 18:40:16 UTC (rev 93482)
@@ -85,6 +85,7 @@
static bool htmlMediaElementEnabled();
static bool htmlAudioElementEnabled();
static bool htmlVideoElementEnabled();
+ static bool htmlSourceElementEnabled();
static bool mediaErrorEnabled();
static bool timeRangesEnabled();
#endif
Modified: trunk/Source/WebCore/page/DOMWindow.idl (93481 => 93482)
--- trunk/Source/WebCore/page/DOMWindow.idl 2011-08-20 18:11:55 UTC (rev 93481)
+++ trunk/Source/WebCore/page/DOMWindow.idl 2011-08-20 18:40:16 UTC (rev 93482)
@@ -607,6 +607,7 @@
attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLVideoElementConstructor HTMLVideoElement;
attribute [Conditional=VIDEO, EnabledAtRuntime] MediaErrorConstructor MediaError;
attribute [Conditional=VIDEO, EnabledAtRuntime] TimeRangesConstructor TimeRanges;
+ attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLSourceElementConstructor HTMLSourceElement;
#if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
attribute WebKitAnimationConstructor WebKitAnimation;