| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Harri Porten (porten@kde.org) | 2 * Copyright (C) 2000 Harri Porten (porten@kde.org) |
| 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 4 * Copyright (C) 2004-2006 Apple Computer, Inc. | 4 * Copyright (C) 2004-2006 Apple Computer, Inc. |
| 5 * Copyright (C) 2006 James G. Speth (speth@end.com) | 5 * Copyright (C) 2006 James G. Speth (speth@end.com) |
| 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) | 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) |
| 7 * Copyright 2007, 2008 Google Inc. All Rights Reserved. | 7 * Copyright 2007, 2008 Google Inc. All Rights Reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
| (...skipping 2582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2593 String str = ""; | 2593 String str = ""; |
| 2594 for (int i = 0; i < args.Length(); ++i) { | 2594 for (int i = 0; i < args.Length(); ++i) { |
| 2595 str += ToWebCoreString(args[i]); | 2595 str += ToWebCoreString(args[i]); |
| 2596 } | 2596 } |
| 2597 return str; | 2597 return str; |
| 2598 } | 2598 } |
| 2599 | 2599 |
| 2600 CALLBACK_FUNC_DECL(HTMLDocumentWrite) { | 2600 CALLBACK_FUNC_DECL(HTMLDocumentWrite) { |
| 2601 INC_STATS(L"DOM.HTMLDocument.write()"); | 2601 INC_STATS(L"DOM.HTMLDocument.write()"); |
| 2602 HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder()); | 2602 HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder()); |
| 2603 imp->write(WriteHelper_GetString(args), | 2603 Frame* frame = V8Proxy::retrieveActiveFrame(); |
| 2604 V8Proxy::retrieveWindow()->document()); | 2604 ASSERT(frame); |
| 2605 imp->write(WriteHelper_GetString(args), frame->document()); |
| 2605 return v8::Undefined(); | 2606 return v8::Undefined(); |
| 2606 } | 2607 } |
| 2607 | 2608 |
| 2608 CALLBACK_FUNC_DECL(HTMLDocumentWriteln) { | 2609 CALLBACK_FUNC_DECL(HTMLDocumentWriteln) { |
| 2609 INC_STATS(L"DOM.HTMLDocument.writeln()"); | 2610 INC_STATS(L"DOM.HTMLDocument.writeln()"); |
| 2610 HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder()); | 2611 HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder()); |
| 2611 imp->writeln(WriteHelper_GetString(args), | 2612 Frame* frame = V8Proxy::retrieveActiveFrame(); |
| 2612 V8Proxy::retrieveWindow()->document()); | 2613 ASSERT(frame); |
| 2614 imp->writeln(WriteHelper_GetString(args), frame->document()); |
| 2613 return v8::Undefined(); | 2615 return v8::Undefined(); |
| 2614 } | 2616 } |
| 2615 | 2617 |
| 2616 CALLBACK_FUNC_DECL(HTMLDocumentOpen) { | 2618 CALLBACK_FUNC_DECL(HTMLDocumentOpen) { |
| 2617 INC_STATS(L"DOM.HTMLDocument.open()"); | 2619 INC_STATS(L"DOM.HTMLDocument.open()"); |
| 2618 HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder()); | 2620 HTMLDocument* imp = V8Proxy::DOMWrapperToNode<HTMLDocument>(args.Holder()); |
| 2619 | 2621 |
| 2620 if (args.Length() > 2) { | 2622 if (args.Length() > 2) { |
| 2621 if (Frame* frame = imp->frame()) { | 2623 if (Frame* frame = imp->frame()) { |
| 2622 // Fetch the global object for the frame. | 2624 // Fetch the global object for the frame. |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3474 #undef MAKE_CASE | 3476 #undef MAKE_CASE |
| 3475 | 3477 |
| 3476 default: | 3478 default: |
| 3477 return V8ClassIndex::INVALID_CLASS_INDEX; | 3479 return V8ClassIndex::INVALID_CLASS_INDEX; |
| 3478 } | 3480 } |
| 3479 } | 3481 } |
| 3480 | 3482 |
| 3481 #endif // ENABLE(SVG) | 3483 #endif // ENABLE(SVG) |
| 3482 | 3484 |
| 3483 } // namespace WebCore | 3485 } // namespace WebCore |
| OLD | NEW |