Changeset 61531 in webkit
- Timestamp:
- Jun 21, 2010 12:10:05 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r61530 r61531 1 2010-06-20 Dumitru Daniliuc <dumi@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Adding the SQLException class which will be used to report sync DB errors. 6 https://bugs.webkit.org/show_bug.cgi?id=40607 7 8 * fast/dom/Window/window-properties-expected.txt: 9 * fast/dom/Window/window-property-descriptors-expected.txt: 10 * fast/dom/prototype-inheritance-expected.txt: 11 * fast/js/global-constructors-expected.txt: 12 * platform/chromium/fast/dom/prototype-inheritance-expected.txt: 13 * platform/gtk/fast/dom/Window/window-properties-expected.txt: 14 * platform/gtk/fast/dom/prototype-inheritance-expected.txt: 15 * platform/qt/fast/dom/Window/window-properties-expected.txt: 16 * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt: 17 * platform/qt/fast/dom/prototype-inheritance-expected.txt: 18 * platform/qt/fast/js/global-constructors-expected.txt: 19 * platform/win/fast/dom/Window/window-property-descriptors-expected.txt: 20 * platform/win/fast/js/global-constructors-expected.txt: 21 1 22 2010-06-20 Hayato Ito <hayato@chromium.org> 2 23 -
trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt
r61136 r61531 1293 1293 window.Rect.prototype [object RectPrototype] 1294 1294 window.ReferenceError [function] 1295 window.SQLException [object SQLExceptionConstructor] 1296 window.SQLException.CONSTRAINT_ERR [number] 1297 window.SQLException.DATABASE_ERR [number] 1298 window.SQLException.QUOTA_ERR [number] 1299 window.SQLException.SYNTAX_ERR [number] 1300 window.SQLException.TIMEOUT_ERR [number] 1301 window.SQLException.TOO_LARGE_ERR [number] 1302 window.SQLException.UNKNOWN_ERR [number] 1303 window.SQLException.VERSION_ERR [number] 1304 window.SQLException.prototype [object SQLExceptionPrototype] 1305 window.SQLException.prototype.CONSTRAINT_ERR [number] 1306 window.SQLException.prototype.DATABASE_ERR [number] 1307 window.SQLException.prototype.QUOTA_ERR [number] 1308 window.SQLException.prototype.SYNTAX_ERR [number] 1309 window.SQLException.prototype.TIMEOUT_ERR [number] 1310 window.SQLException.prototype.TOO_LARGE_ERR [number] 1311 window.SQLException.prototype.UNKNOWN_ERR [number] 1312 window.SQLException.prototype.VERSION_ERR [number] 1295 1313 window.SVGAElement [object SVGAElementConstructor] 1296 1314 window.SVGAElement.prototype [printed above as window.Element.prototype] -
trunk/LayoutTests/fast/dom/Window/window-property-descriptors-expected.txt
r61071 r61531 157 157 PASS typeof Object.getOwnPropertyDescriptor(window, 'ReferenceError') is 'object' 158 158 PASS typeof Object.getOwnPropertyDescriptor(window, 'RegExp') is 'object' 159 PASS typeof Object.getOwnPropertyDescriptor(window, 'SQLException') is 'object' 159 160 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGAElement') is 'object' 160 161 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGAltGlyphElement') is 'object' -
trunk/LayoutTests/fast/dom/prototype-inheritance-expected.txt
r61071 r61531 286 286 PASS inner.ReferenceError.isInner is true 287 287 PASS inner.ReferenceError.constructor.isInner is true 288 PASS inner.SQLException.isInner is true 289 PASS inner.SQLException.constructor.isInner is true 288 290 PASS inner.SVGAElement.isInner is true 289 291 PASS inner.SVGAElement.constructor.isInner is true -
trunk/LayoutTests/fast/js/global-constructors-expected.txt
r61136 r61531 142 142 PASS RangeException.toString() is '[object RangeExceptionConstructor]' 143 143 PASS Rect.toString() is '[object RectConstructor]' 144 PASS SQLException.toString() is '[object SQLExceptionConstructor]' 144 145 PASS SVGAElement.toString() is '[object SVGAElementConstructor]' 145 146 PASS SVGAltGlyphElement.toString() is '[object SVGAltGlyphElementConstructor]' -
trunk/LayoutTests/platform/chromium/fast/dom/prototype-inheritance-expected.txt
r61479 r61531 280 280 PASS inner.Rect.isInner is true 281 281 PASS inner.Rect.constructor.isInner is true 282 PASS inner.SQLException.isInner is true 283 PASS inner.SQLException.constructor.isInner is true 282 284 PASS inner.SVGAElement.isInner is true 283 285 PASS inner.SVGAElement.constructor.isInner is true -
trunk/LayoutTests/platform/gtk/fast/dom/Window/window-properties-expected.txt
r61071 r61531 1253 1253 window.Rect.prototype [object RectPrototype] 1254 1254 window.ReferenceError [function] 1255 window.SQLException [object SQLExceptionConstructor] 1256 window.SQLException.CONSTRAINT_ERR [number] 1257 window.SQLException.DATABASE_ERR [number] 1258 window.SQLException.QUOTA_ERR [number] 1259 window.SQLException.SYNTAX_ERR [number] 1260 window.SQLException.TIMEOUT_ERR [number] 1261 window.SQLException.TOO_LARGE_ERR [number] 1262 window.SQLException.UNKNOWN_ERR [number] 1263 window.SQLException.VERSION_ERR [number] 1264 window.SQLException.prototype [object SQLExceptionPrototype] 1265 window.SQLException.prototype.CONSTRAINT_ERR [number] 1266 window.SQLException.prototype.DATABASE_ERR [number] 1267 window.SQLException.prototype.QUOTA_ERR [number] 1268 window.SQLException.prototype.SYNTAX_ERR [number] 1269 window.SQLException.prototype.TIMEOUT_ERR [number] 1270 window.SQLException.prototype.TOO_LARGE_ERR [number] 1271 window.SQLException.prototype.UNKNOWN_ERR [number] 1272 window.SQLException.prototype.VERSION_ERR [number] 1255 1273 window.SVGAngle [object SVGAngleConstructor] 1256 1274 window.SVGAngle.SVG_ANGLETYPE_DEG [number] -
trunk/LayoutTests/platform/gtk/fast/dom/prototype-inheritance-expected.txt
r61071 r61531 282 282 PASS inner.ReferenceError.isInner is true 283 283 PASS inner.ReferenceError.constructor.isInner is true 284 PASS inner.SQLException.isInner is true 285 PASS inner.SQLException.constructor.isInner is true 284 286 PASS inner.SVGAElement.isInner is true 285 287 PASS inner.SVGAElement.constructor.isInner is true -
trunk/LayoutTests/platform/qt/fast/dom/Window/window-properties-expected.txt
r61142 r61531 1293 1293 window.Rect.prototype [object RectPrototype] 1294 1294 window.ReferenceError [function] 1295 window.SQLException [object SQLExceptionConstructor] 1296 window.SQLException.CONSTRAINT_ERR [number] 1297 window.SQLException.DATABASE_ERR [number] 1298 window.SQLException.QUOTA_ERR [number] 1299 window.SQLException.SYNTAX_ERR [number] 1300 window.SQLException.TIMEOUT_ERR [number] 1301 window.SQLException.TOO_LARGE_ERR [number] 1302 window.SQLException.UNKNOWN_ERR [number] 1303 window.SQLException.VERSION_ERR [number] 1304 window.SQLException.prototype [object SQLExceptionPrototype] 1305 window.SQLException.prototype.CONSTRAINT_ERR [number] 1306 window.SQLException.prototype.DATABASE_ERR [number] 1307 window.SQLException.prototype.QUOTA_ERR [number] 1308 window.SQLException.prototype.SYNTAX_ERR [number] 1309 window.SQLException.prototype.TIMEOUT_ERR [number] 1310 window.SQLException.prototype.TOO_LARGE_ERR [number] 1311 window.SQLException.prototype.UNKNOWN_ERR [number] 1312 window.SQLException.prototype.VERSION_ERR [number] 1295 1313 window.SVGAElement [object SVGAElementConstructor] 1296 1314 window.SVGAElement.prototype [printed above as window.Element.prototype] -
trunk/LayoutTests/platform/qt/fast/dom/Window/window-property-descriptors-expected.txt
r61071 r61531 157 157 PASS typeof Object.getOwnPropertyDescriptor(window, 'ReferenceError') is 'object' 158 158 PASS typeof Object.getOwnPropertyDescriptor(window, 'RegExp') is 'object' 159 PASS typeof Object.getOwnPropertyDescriptor(window, 'SQLException') is 'object' 159 160 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGAElement') is 'object' 160 161 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGAngle') is 'object' -
trunk/LayoutTests/platform/qt/fast/dom/prototype-inheritance-expected.txt
r61071 r61531 286 286 PASS inner.ReferenceError.isInner is true 287 287 PASS inner.ReferenceError.constructor.isInner is true 288 PASS inner.SQLException.isInner is true 289 PASS inner.SQLException.constructor.isInner is true 288 290 PASS inner.SVGAElement.isInner is true 289 291 PASS inner.SVGAElement.constructor.isInner is true -
trunk/LayoutTests/platform/qt/fast/js/global-constructors-expected.txt
r61142 r61531 142 142 PASS RangeException.toString() is '[object RangeExceptionConstructor]' 143 143 PASS Rect.toString() is '[object RectConstructor]' 144 PASS SQLException.toString() is '[object SQLExceptionConstructor]' 144 145 PASS SVGAElement.toString() is '[object SVGAElementConstructor]' 145 146 PASS SVGAngle.toString() is '[object SVGAngleConstructor]' -
trunk/LayoutTests/platform/win/fast/dom/Window/window-property-descriptors-expected.txt
r61096 r61531 155 155 PASS typeof Object.getOwnPropertyDescriptor(window, 'ReferenceError') is 'object' 156 156 PASS typeof Object.getOwnPropertyDescriptor(window, 'RegExp') is 'object' 157 PASS typeof Object.getOwnPropertyDescriptor(window, 'SQLException') is 'object' 157 158 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGAElement') is 'object' 158 159 PASS typeof Object.getOwnPropertyDescriptor(window, 'SVGAltGlyphElement') is 'object' -
trunk/LayoutTests/platform/win/fast/js/global-constructors-expected.txt
r61261 r61531 140 140 PASS RangeException.toString() is '[object RangeExceptionConstructor]' 141 141 PASS Rect.toString() is '[object RectConstructor]' 142 PASS SQLException.toString() is '[object SQLExceptionConstructor]' 142 143 PASS SVGAElement.toString() is '[object SVGAElementConstructor]' 143 144 PASS SVGAltGlyphElement.toString() is '[object SVGAltGlyphElementConstructor]' -
trunk/WebCore/Android.derived.jscbindings.mk
r61120 r61531 328 328 $(intermediates)/storage/JSDatabase.h \ 329 329 $(intermediates)/storage/JSSQLError.h \ 330 $(intermediates)/storage/JSSQLException.h \ 330 331 $(intermediates)/storage/JSSQLResultSet.h \ 331 332 $(intermediates)/storage/JSSQLResultSetRowList.h \ -
trunk/WebCore/Android.derived.v8bindings.mk
r61120 r61531 309 309 $(intermediates)/bindings/V8Database.h \ 310 310 $(intermediates)/bindings/V8SQLError.h \ 311 $(intermediates)/bindings/V8SQLException.h \ 311 312 $(intermediates)/bindings/V8SQLResultSet.h \ 312 313 $(intermediates)/bindings/V8SQLResultSetRowList.h \ -
trunk/WebCore/CMakeLists.txt
r61528 r61531 336 336 storage/IndexedDatabaseRequest.idl 337 337 storage/SQLError.idl 338 storage/SQLException.idl 338 339 storage/SQLResultSet.idl 339 340 storage/SQLResultSetRowList.idl -
trunk/WebCore/ChangeLog
r61529 r61531 1 2010-06-20 Dumitru Daniliuc <dumi@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Adding the SQLException class which will be used to report sync DB errors. 6 https://bugs.webkit.org/show_bug.cgi?id=40607 7 8 * Android.derived.jscbindings.mk: 9 * Android.derived.v8bindings.mk: 10 * CMakeLists.txt: 11 * DerivedSources.cpp: 12 * DerivedSources.make: 13 * GNUmakefile.am: 14 * WebCore.gypi: 15 * WebCore.pri: 16 * WebCore.vcproj/WebCore.vcproj: 17 * WebCore.xcodeproj/project.pbxproj: 18 * bindings/js/JSDOMBinding.cpp: 19 (WebCore::setDOMException): 20 * bindings/js/JSExceptionBase.cpp: 21 (WebCore::toExceptionBase): 22 * bindings/v8/V8Proxy.cpp: 23 (WebCore::V8Proxy::setDOMException): 24 * bindings/v8/V8Proxy.h: 25 * dom/ExceptionCode.cpp: 26 (WebCore::): 27 (WebCore::getExceptionCodeDescription): 28 * dom/ExceptionCode.h: 29 (WebCore::): 30 * page/DOMWindow.idl: 31 * storage/SQLException.h: Added. 32 (WebCore::SQLException::create): 33 (WebCore::SQLException::): 34 (WebCore::SQLException::SQLException): 35 * storage/SQLException.idl: Added. 36 1 37 2010-06-20 Yury Semikhatsky <yurys@chromium.org> 2 38 -
trunk/WebCore/DerivedSources.cpp
r61120 r61531 222 222 #include "JSSharedWorkerContext.cpp" 223 223 #include "JSSQLError.cpp" 224 #include "JSSQLException.cpp" 224 225 #include "JSSQLResultSet.cpp" 225 226 #include "JSSQLResultSetRowList.cpp" -
trunk/WebCore/DerivedSources.make
r61120 r61531 266 266 ScriptProfileNode \ 267 267 SQLError \ 268 SQLException \ 268 269 SQLResultSet \ 269 270 SQLResultSetRowList \ -
trunk/WebCore/GNUmakefile.am
r61511 r61531 2386 2386 WebCore/storage/DatabaseSync.idl \ 2387 2387 WebCore/storage/SQLError.idl \ 2388 WebCore/storage/SQLException.idl \ 2388 2389 WebCore/storage/SQLResultSet.idl \ 2389 2390 WebCore/storage/SQLResultSetRowList.idl \ … … 2441 2442 WebCore/storage/OriginUsageRecord.h \ 2442 2443 WebCore/storage/SQLError.h \ 2444 WebCore/storage/SQLException.h \ 2443 2445 WebCore/storage/SQLResultSet.cpp \ 2444 2446 WebCore/storage/SQLResultSet.h \ -
trunk/WebCore/WebCore.gypi
r61514 r61531 239 239 'storage/IndexedDatabaseRequest.idl', 240 240 'storage/SQLError.idl', 241 'storage/SQLException.idl', 241 242 'storage/SQLResultSet.idl', 242 243 'storage/SQLResultSetRowList.idl', … … 3421 3422 'storage/OriginUsageRecord.h', 3422 3423 'storage/SQLError.h', 3424 'storage/SQLException.h', 3423 3425 'storage/SQLResultSet.cpp', 3424 3426 'storage/SQLResultSet.h', -
trunk/WebCore/WebCore.pri
r61338 r61531 475 475 storage/StorageEvent.idl \ 476 476 storage/SQLError.idl \ 477 storage/SQLException.idl \ 477 478 storage/SQLResultSet.idl \ 478 479 storage/SQLResultSetRowList.idl \ -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r61511 r61531 46438 46438 </File> 46439 46439 <File 46440 RelativePath="..\storage\SQLException.h" 46441 > 46442 </File> 46443 <File 46440 46444 RelativePath="..\storage\SQLResultSet.cpp" 46441 46445 > -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r61511 r61531 4227 4227 B523CF0A1182675400EBB29C /* DatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B523CF031182675400EBB29C /* DatabaseSync.cpp */; }; 4228 4228 B523CF0B1182675400EBB29C /* DatabaseSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B523CF041182675400EBB29C /* DatabaseSync.h */; }; 4229 B525A96511CA2340003A23A8 /* JSSQLException.h in Headers */ = {isa = PBXBuildFile; fileRef = B525A96311CA2340003A23A8 /* JSSQLException.h */; }; 4230 B525A96611CA2340003A23A8 /* JSSQLException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B525A96411CA2340003A23A8 /* JSSQLException.cpp */; }; 4229 4231 B55D5AA4119131FC00BCC315 /* JSSQLTransactionSyncCallback.h in Headers */ = {isa = PBXBuildFile; fileRef = B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */; }; 4230 4232 B55D5AA5119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */; }; 4231 4233 B55D5AA81191325000BCC315 /* JSDatabaseSyncCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA61191325000BCC315 /* JSDatabaseSyncCustom.cpp */; }; 4232 4234 B55D5AA91191325000BCC315 /* JSSQLTransactionSyncCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B55D5AA71191325000BCC315 /* JSSQLTransactionSyncCustom.cpp */; }; 4235 B56EBA8511C9FF8100B04477 /* SQLException.h in Headers */ = {isa = PBXBuildFile; fileRef = B56EBA8311C9FF8100B04477 /* SQLException.h */; }; 4233 4236 B58CEB6911913607002A6790 /* JSDatabaseSync.h in Headers */ = {isa = PBXBuildFile; fileRef = B58CEB6711913607002A6790 /* JSDatabaseSync.h */; }; 4234 4237 B58CEB6A11913607002A6790 /* JSDatabaseSync.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */; }; … … 9715 9718 B523CF031182675400EBB29C /* DatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DatabaseSync.cpp; sourceTree = "<group>"; }; 9716 9719 B523CF041182675400EBB29C /* DatabaseSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DatabaseSync.h; sourceTree = "<group>"; }; 9720 B525A96311CA2340003A23A8 /* JSSQLException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSQLException.h; sourceTree = "<group>"; }; 9721 B525A96411CA2340003A23A8 /* JSSQLException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLException.cpp; sourceTree = "<group>"; }; 9717 9722 B55D5AA2119131FC00BCC315 /* JSSQLTransactionSyncCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSQLTransactionSyncCallback.h; sourceTree = "<group>"; }; 9718 9723 B55D5AA3119131FC00BCC315 /* JSSQLTransactionSyncCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSQLTransactionSyncCallback.cpp; sourceTree = "<group>"; }; … … 9722 9727 B55D5ABC1191327200BCC315 /* SQLTransactionSync.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLTransactionSync.idl; sourceTree = "<group>"; }; 9723 9728 B55D5ABD1191327200BCC315 /* SQLTransactionSyncCallback.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLTransactionSyncCallback.idl; sourceTree = "<group>"; }; 9729 B56EBA8311C9FF8100B04477 /* SQLException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQLException.h; sourceTree = "<group>"; }; 9730 B56EBA8411C9FF8100B04477 /* SQLException.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SQLException.idl; sourceTree = "<group>"; }; 9724 9731 B58CEB6711913607002A6790 /* JSDatabaseSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDatabaseSync.h; sourceTree = "<group>"; }; 9725 9732 B58CEB6811913607002A6790 /* JSDatabaseSync.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDatabaseSync.cpp; sourceTree = "<group>"; }; … … 11124 11131 51EC92570CE90DB400F90308 /* SQLError.h */, 11125 11132 51EC92580CE90DB400F90308 /* SQLError.idl */, 11133 B56EBA8311C9FF8100B04477 /* SQLException.h */, 11134 B56EBA8411C9FF8100B04477 /* SQLException.idl */, 11126 11135 519611670CAC56570010A80C /* SQLResultSet.cpp */, 11127 11136 519611680CAC56570010A80C /* SQLResultSet.h */, … … 14497 14506 514C76350CE9225E007EF3CD /* JSSQLError.cpp */, 14498 14507 BC8243250D0CE8A200460C8F /* JSSQLError.h */, 14508 B525A96311CA2340003A23A8 /* JSSQLException.h */, 14509 B525A96411CA2340003A23A8 /* JSSQLException.cpp */, 14499 14510 1AE82FEA0CAB07EE002237AE /* JSSQLResultSet.cpp */, 14500 14511 1AE82FEB0CAB07EE002237AE /* JSSQLResultSet.h */, … … 19458 19469 1AD8F81B11CAB9E900E93E54 /* PlatformStrategies.h in Headers */, 19459 19470 1AA8799011CBE846003C664F /* PluginStrategy.h in Headers */, 19471 B56EBA8511C9FF8100B04477 /* SQLException.h in Headers */, 19472 B525A96511CA2340003A23A8 /* JSSQLException.h in Headers */, 19460 19473 ); 19461 19474 runOnlyForDeploymentPostprocessing = 0; … … 21769 21782 200B190911C277D900DCCD3A /* ScriptBreakpoint.cpp in Sources */, 21770 21783 1AD8F81C11CAB9E900E93E54 /* PlatformStrategies.cpp in Sources */, 21784 B525A96611CA2340003A23A8 /* JSSQLException.cpp in Sources */, 21771 21785 ); 21772 21786 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/bindings/js/JSDOMBinding.cpp
r60762 r61531 70 70 #include "JSXPathException.h" 71 71 #include "XPathException.h" 72 #endif 73 74 #if ENABLE(DATABASE) 75 #include "JSSQLException.h" 76 #include "SQLException.h" 72 77 #endif 73 78 … … 601 606 break; 602 607 #endif 608 #if ENABLE(DATABASE) 609 case SQLExceptionType: 610 errorObject = toJS(exec, globalObject, SQLException::create(description)); 611 break; 612 #endif 603 613 } 604 614 -
trunk/WebCore/bindings/js/JSExceptionBase.cpp
r49723 r61531 37 37 #include "JSXPathException.h" 38 38 #endif 39 39 #if ENABLE(XPATH) 40 #include "JSSQLException.h" 41 #endif 42 40 43 namespace WebCore { 41 44 42 45 ExceptionBase* toExceptionBase(JSC::JSValue value) 43 46 { … … 58 61 return reinterpret_cast<ExceptionBase*>(pathException); 59 62 #endif 60 63 #if ENABLE(DATABASE) 64 if (SQLException* pathException = toSQLException(value)) 65 return reinterpret_cast<ExceptionBase*>(pathException); 66 #endif 67 61 68 return 0; 62 69 } -
trunk/WebCore/bindings/v8/V8Proxy.cpp
r61499 r61531 57 57 #include "V8IsolatedContext.h" 58 58 #include "V8RangeException.h" 59 #include "V8SQLException.h" 59 60 #include "V8XMLHttpRequestException.h" 60 61 #include "V8XPathException.h" … … 703 704 break; 704 705 #endif 706 #if ENABLE(DATABASE) 707 case SQLExceptionType: 708 exception = toV8(SQLException::create(description)); 709 break; 710 #endif 705 711 default: 706 712 ASSERT_NOT_REACHED(); -
trunk/WebCore/bindings/v8/V8Proxy.h
r61499 r61531 361 361 #endif 362 362 363 #if ENABLE(DATABASE) 364 static const char* sqlExceptionName(int exceptionCode); 365 #endif 366 363 367 Frame* m_frame; 364 368 -
trunk/WebCore/dom/ExceptionCode.cpp
r49723 r61531 39 39 #endif 40 40 41 #if ENABLE(DATABASE) 42 #include "SQLException.h" 43 #endif 44 41 45 namespace WebCore { 42 46 … … 146 150 #endif 147 151 152 #if ENABLE(DATABASE) 153 static const char* const sqlExceptionNames[] = { 154 "UNKNOWN_ERR", 155 "DATABASE_ERR", 156 "VERSION_ERR", 157 "TOO_LARGE_ERR", 158 "QUOTA_ERR", 159 "SYNTAX_ERR", 160 "CONSTRAINT_ERR", 161 "TIMEOUT_ERR" 162 }; 163 164 static const char* const sqlExceptionDescriptions[] = { 165 "The operation failed for reasons unrelated to the database.", 166 "The operation failed for some reason related to the database.", 167 "The actual database version did not match the expected version.", 168 "Data returned from the database is too large.", 169 "Quota was exceeded.", 170 "Invalid or unauthorized statement; or the number of arguments did not match the number of ? placeholders.", 171 "A constraint was violated.", 172 "A transaction lock could not be acquired in a reasonable time." 173 }; 174 #endif 175 148 176 void getExceptionCodeDescription(ExceptionCode ec, ExceptionCodeDescription& description) 149 177 { … … 157 185 int nameTableOffset; 158 186 ExceptionType type; 159 187 160 188 if (code >= RangeException::RangeExceptionOffset && code <= RangeException::RangeExceptionMax) { 161 189 type = RangeExceptionType; … … 204 232 nameTableOffset = SVGException::SVG_WRONG_TYPE_ERR; 205 233 #endif 234 #if ENABLE(DATABASE) 235 } else if (code >= SQLException::SQLExceptionOffset && code <= SQLException::SQLExceptionMax) { 236 type = SQLExceptionType; 237 typeName = "DOM SQL"; 238 code -= SQLException::SQLExceptionOffset; 239 nameTable = sqlExceptionNames; 240 descriptionTable = sqlExceptionDescriptions; 241 nameTableSize = sizeof(sqlExceptionNames) / sizeof(sqlExceptionNames[0]); 242 nameTableOffset = SQLException::UNKNOWN_ERR; 243 #endif 206 244 } else { 207 245 type = DOMExceptionType; -
trunk/WebCore/dom/ExceptionCode.h
r58194 r61531 79 79 , SVGExceptionType 80 80 #endif 81 }; 82 81 #if ENABLE(DATABASE) 82 , SQLExceptionType 83 #endif 84 }; 85 83 86 84 87 struct ExceptionCodeDescription { -
trunk/WebCore/page/DOMWindow.idl
r61492 r61531 730 730 #endif 731 731 732 #if defined(ENABLE_DATABASE) 733 attribute SQLExceptionConstructor SQLException; 734 #endif 735 732 736 attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent; 733 737
Note: See TracChangeset
for help on using the changeset viewer.