Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Unified Diff: webkit/port/bindings/v8/v8_custom.cpp

Issue 6442: Let's try this again. The regressions were caused by an incorrect use... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/port/bindings/v8/v8_custom.cpp
===================================================================
--- webkit/port/bindings/v8/v8_custom.cpp (revision 2825)
+++ webkit/port/bindings/v8/v8_custom.cpp (working copy)
@@ -2600,16 +2600,18 @@
CALLBACK_FUNC_DECL(HTMLDocumentWrite) {
INC_STATS(L"DOM.HTMLDocument.write()");
HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder());
- imp->write(WriteHelper_GetString(args),
- V8Proxy::retrieveWindow()->document());
+ Frame* frame = V8Proxy::retrieveActiveFrame();
+ ASSERT(frame);
+ imp->write(WriteHelper_GetString(args), frame->document());
return v8::Undefined();
}
CALLBACK_FUNC_DECL(HTMLDocumentWriteln) {
INC_STATS(L"DOM.HTMLDocument.writeln()");
HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder());
- imp->writeln(WriteHelper_GetString(args),
- V8Proxy::retrieveWindow()->document());
+ Frame* frame = V8Proxy::retrieveActiveFrame();
+ ASSERT(frame);
+ imp->writeln(WriteHelper_GetString(args), frame->document());
return v8::Undefined();
}
« no previous file with comments | « webkit/data/layout_tests/chrome/fast/dom/wrapper-context-expected.txt ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698