| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) | 2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reser
ved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reser
ved. |
| 4 * Copyright (C) 2007 Samuel Weinig <sam@webkit.org> | 4 * Copyright (C) 2007 Samuel Weinig <sam@webkit.org> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 #if ENABLE(DATABASE) | 79 #if ENABLE(DATABASE) |
| 80 #include "JSSQLException.h" | 80 #include "JSSQLException.h" |
| 81 #include "SQLException.h" | 81 #include "SQLException.h" |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) | 84 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) |
| 85 #include "FileException.h" | 85 #include "FileException.h" |
| 86 #include "JSFileException.h" | 86 #include "JSFileException.h" |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 #if ENABLE(INDEXED_DATABASE) |
| 90 #include "IDBDatabaseException.h" |
| 91 #include "JSIDBDatabaseException.h" |
| 92 #endif |
| 93 |
| 89 using namespace JSC; | 94 using namespace JSC; |
| 90 | 95 |
| 91 namespace WebCore { | 96 namespace WebCore { |
| 92 | 97 |
| 93 using namespace HTMLNames; | 98 using namespace HTMLNames; |
| 94 | 99 |
| 95 typedef Document::JSWrapperCache JSWrapperCache; | 100 typedef Document::JSWrapperCache JSWrapperCache; |
| 96 typedef Document::JSWrapperCacheMap JSWrapperCacheMap; | 101 typedef Document::JSWrapperCacheMap JSWrapperCacheMap; |
| 97 | 102 |
| 98 class JSGlobalDataWorldIterator { | 103 class JSGlobalDataWorldIterator { |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 #if ENABLE(DATABASE) | 648 #if ENABLE(DATABASE) |
| 644 case SQLExceptionType: | 649 case SQLExceptionType: |
| 645 errorObject = toJS(exec, globalObject, SQLException::create(descript
ion)); | 650 errorObject = toJS(exec, globalObject, SQLException::create(descript
ion)); |
| 646 break; | 651 break; |
| 647 #endif | 652 #endif |
| 648 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) | 653 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) |
| 649 case FileExceptionType: | 654 case FileExceptionType: |
| 650 errorObject = toJS(exec, globalObject, FileException::create(descrip
tion)); | 655 errorObject = toJS(exec, globalObject, FileException::create(descrip
tion)); |
| 651 break; | 656 break; |
| 652 #endif | 657 #endif |
| 658 #if ENABLE(INDEXED_DATABASE) |
| 659 case IDBDatabaseExceptionType: |
| 660 errorObject = toJS(exec, globalObject, IDBDatabaseException::create(
description)); |
| 661 break; |
| 662 #endif |
| 653 } | 663 } |
| 654 | 664 |
| 655 ASSERT(errorObject); | 665 ASSERT(errorObject); |
| 656 throwError(exec, errorObject); | 666 throwError(exec, errorObject); |
| 657 } | 667 } |
| 658 | 668 |
| 659 bool checkNodeSecurity(ExecState* exec, Node* node) | 669 bool checkNodeSecurity(ExecState* exec, Node* node) |
| 660 { | 670 { |
| 661 return node && allowsAccessFromFrame(exec, node->document()->frame()); | 671 return node && allowsAccessFromFrame(exec, node->document()->frame()); |
| 662 } | 672 } |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 } | 798 } |
| 789 | 799 |
| 790 length = lengthValue.toUInt32(exec); | 800 length = lengthValue.toUInt32(exec); |
| 791 if (exec->hadException()) | 801 if (exec->hadException()) |
| 792 return 0; | 802 return 0; |
| 793 | 803 |
| 794 return object; | 804 return object; |
| 795 } | 805 } |
| 796 | 806 |
| 797 } // namespace WebCore | 807 } // namespace WebCore |
| OLD | NEW |