aboutsummaryrefslogtreecommitdiff
path: root/x11/kdelibs4/files/patch-khtml_ecma-kjs_html.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdelibs4/files/patch-khtml_ecma-kjs_html.cpp')
-rw-r--r--x11/kdelibs4/files/patch-khtml_ecma-kjs_html.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/x11/kdelibs4/files/patch-khtml_ecma-kjs_html.cpp b/x11/kdelibs4/files/patch-khtml_ecma-kjs_html.cpp
new file mode 100644
index 000000000000..57e66a5b95f8
--- /dev/null
+++ b/x11/kdelibs4/files/patch-khtml_ecma-kjs_html.cpp
@@ -0,0 +1,36 @@
+--- khtml/ecma/kjs_html.cpp 2007/02/26 16:39:44 637497
++++ khtml/ecma/kjs_html.cpp 2007/03/05 13:15:20 639609
+@@ -1866,10 +1866,12 @@
+ getDOMNode(exec, frameElement.contentDocument()) : Undefined();
+ case FrameContentWindow: {
+ KHTMLPart* part = static_cast<DOM::HTMLFrameElementImpl*>(frameElement.handle())->contentPart();
+- if (part)
+- return Value(Window::retrieveWindow(part));
+- else
+- return Undefined();
++ if (part) {
++ Window *w = Window::retrieveWindow(part);
++ if (w)
++ return Value(w);
++ }
++ return Undefined();
+ }
+ case FrameFrameBorder: return String(frameElement.frameBorder());
+ case FrameLongDesc: return String(frameElement.longDesc());
+@@ -1899,10 +1901,12 @@
+ getDOMNode(exec, iFrame.contentDocument()) : Undefined();
+ case IFrameContentWindow: {
+ KHTMLPart* part = static_cast<DOM::HTMLIFrameElementImpl*>(iFrame.handle())->contentPart();
+- if (part)
+- return Value(Window::retrieveWindow(part));
+- else
+- return Undefined();
++ if (part) {
++ Window *w = Window::retrieveWindow(part);
++ if (w)
++ return Value(w);
++ }
++ return Undefined();
+ }
+ case IFrameFrameBorder: return String(iFrame.frameBorder());
+ case IFrameHeight: return String(iFrame.height());