diff options
| author | Ben Murdoch <benm@google.com> | 2009-05-13 17:58:43 +0100 | 
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2009-05-15 11:38:01 +0100 | 
| commit | 8ccf722629b08f2a06b2cadbdc3d0c9dc885e25d (patch) | |
| tree | ad83ccc3e517a60955ebedbfc855a4a97558f508 /WebCore/bindings | |
| parent | 8fe05189c51b0ae29ba6f8c9d4c86fa288110707 (diff) | |
| download | external_webkit-8ccf722629b08f2a06b2cadbdc3d0c9dc885e25d.zip external_webkit-8ccf722629b08f2a06b2cadbdc3d0c9dc885e25d.tar.gz external_webkit-8ccf722629b08f2a06b2cadbdc3d0c9dc885e25d.tar.bz2 | |
Apply fixes for webkit bugs 24776 and 25616 to add ENABLE(DATABASE) guards. This makes the macro work, so ENABLE_DATABASE can be toggled in config.h and the JavaScriptCore.derived.mk or V8Bindings.derived.mk.
Diffstat (limited to 'WebCore/bindings')
22 files changed, 96 insertions, 0 deletions
| diff --git a/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp b/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp index 8733696..4b9ff8a 100644 --- a/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp +++ b/WebCore/bindings/js/JSCustomSQLStatementCallback.cpp @@ -28,6 +28,7 @@  #include "config.h"  #include "JSCustomSQLStatementCallback.h" +#if ENABLE(DATABASE)  #include "Frame.h"  #include "ScriptController.h" @@ -90,3 +91,5 @@ void JSCustomSQLStatementCallback::handleEvent(SQLTransaction* transaction, SQLR  }  } + +#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/js/JSCustomSQLStatementCallback.h b/WebCore/bindings/js/JSCustomSQLStatementCallback.h index 3a3ae21..c380670 100644 --- a/WebCore/bindings/js/JSCustomSQLStatementCallback.h +++ b/WebCore/bindings/js/JSCustomSQLStatementCallback.h @@ -29,6 +29,8 @@  #ifndef JSCustomSQLStatementCallback_h  #define JSCustomSQLStatementCallback_h +#if ENABLE(DATABASE) +  #include "SQLStatementCallback.h"  #include <runtime/JSObject.h> @@ -59,4 +61,6 @@ private:  } +#endif // ENABLE(DATABASE) +  #endif // JSCustomSQLStatementCallback_h diff --git a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp index dd23889..2932919 100644 --- a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp +++ b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.cpp @@ -29,6 +29,8 @@  #include "config.h"  #include "JSCustomSQLStatementErrorCallback.h" +#if ENABLE(DATABASE) +  #include "Frame.h"  #include "ScriptController.h"  #include "JSSQLError.h" @@ -102,3 +104,5 @@ bool JSCustomSQLStatementErrorCallback::handleEvent(SQLTransaction* transaction,  }  } + +#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h index 2847114..e563393 100644 --- a/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h +++ b/WebCore/bindings/js/JSCustomSQLStatementErrorCallback.h @@ -29,6 +29,8 @@  #ifndef JSCustomSQLStatementErrorCallback_h  #define JSCustomSQLStatementErrorCallback_h +#if ENABLE(DATABASE) +  #include "SQLStatementErrorCallback.h"  #include <runtime/JSObject.h> @@ -59,5 +61,7 @@ private:  } +#endif // ENABLE(DATABASE) +  #endif // JSCustomSQLStatementErrorCallback_h diff --git a/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp b/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp index 9960a0e..9918e71 100644 --- a/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp +++ b/WebCore/bindings/js/JSCustomSQLTransactionCallback.cpp @@ -29,6 +29,8 @@  #include "config.h"  #include "JSCustomSQLTransactionCallback.h" +#if ENABLE(DATABASE) +  #include "Frame.h"  #include "ScriptController.h"  #include "JSSQLTransaction.h" @@ -134,3 +136,5 @@ void JSCustomSQLTransactionCallback::handleEvent(SQLTransaction* transaction, bo  }  } + +#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/js/JSCustomSQLTransactionCallback.h b/WebCore/bindings/js/JSCustomSQLTransactionCallback.h index 0a21c1a..22c367c 100644 --- a/WebCore/bindings/js/JSCustomSQLTransactionCallback.h +++ b/WebCore/bindings/js/JSCustomSQLTransactionCallback.h @@ -29,6 +29,8 @@  #ifndef JSCustomSQLTransactionCallback_h  #define JSCustomSQLTransactionCallback_h +#if ENABLE(DATABASE) +  #include "SQLTransactionCallback.h"  #include <wtf/PassRefPtr.h> @@ -60,4 +62,6 @@ private:  } +#endif // ENABLE(DATABASE) +  #endif // JSCustomSQLTransactionCallback_h diff --git a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp index 2324d04..f6e59f6 100644 --- a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp +++ b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.cpp @@ -29,6 +29,8 @@  #include "config.h"  #include "JSCustomSQLTransactionErrorCallback.h" +#if ENABLE(DATABASE) +  #include "Frame.h"  #include "ScriptController.h"  #include "JSSQLError.h" @@ -88,3 +90,5 @@ bool JSCustomSQLTransactionErrorCallback::handleEvent(SQLError* error)  }  } + +#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h index 122224f..5f3d727 100644 --- a/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h +++ b/WebCore/bindings/js/JSCustomSQLTransactionErrorCallback.h @@ -29,6 +29,8 @@  #ifndef JSCustomSQLTransactionErrorCallback_h  #define JSCustomSQLTransactionErrorCallback_h +#if ENABLE(DATABASE) +  #include "SQLTransactionErrorCallback.h"  #include <runtime/JSObject.h> @@ -58,5 +60,6 @@ private:  };  } +#endif // ENABLE(DATABASE)  #endif // JSCustomSQLTransactionErrorCallback_h diff --git a/WebCore/bindings/js/JSDatabaseCustom.cpp b/WebCore/bindings/js/JSDatabaseCustom.cpp index 9ee61a5..f0f2b69 100644 --- a/WebCore/bindings/js/JSDatabaseCustom.cpp +++ b/WebCore/bindings/js/JSDatabaseCustom.cpp @@ -29,6 +29,8 @@  #include "config.h"  #include "JSDatabase.h" +#if ENABLE(DATABASE) +  #include "DOMWindow.h"  #include "Database.h"  #include "Document.h" @@ -126,3 +128,4 @@ JSValuePtr JSDatabase::transaction(ExecState* exec, const ArgList& args)  }  } +#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp b/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp index fc643ad..53696d4 100644 --- a/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp +++ b/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp @@ -29,6 +29,8 @@  #include "config.h"  #include "JSSQLResultSetRowList.h" +#if ENABLE(DATABASE) +  #include "ExceptionCode.h"  #include "SQLValue.h"  #include "SQLResultSetRowList.h" @@ -79,3 +81,5 @@ JSValuePtr JSSQLResultSetRowList::item(ExecState* exec, const ArgList& args)  }  } + +#endif diff --git a/WebCore/bindings/js/JSSQLTransactionCustom.cpp b/WebCore/bindings/js/JSSQLTransactionCustom.cpp index a0f173f..064ab15 100644 --- a/WebCore/bindings/js/JSSQLTransactionCustom.cpp +++ b/WebCore/bindings/js/JSSQLTransactionCustom.cpp @@ -29,6 +29,8 @@  #include "config.h"  #include "JSSQLTransaction.h" +#if ENABLE(DATABASE) +  #include "DOMWindow.h"  #include "ExceptionCode.h"  #include "JSCustomSQLStatementCallback.h" @@ -112,3 +114,5 @@ JSValuePtr JSSQLTransaction::executeSql(ExecState* exec, const ArgList& args)  }  } + +#endif // ENABLE(DATABASE) diff --git a/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.cpp b/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.cpp index bf07416..a277027 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.cpp +++ b/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.cpp @@ -29,6 +29,9 @@   */  #include "config.h" + +#if ENABLE(DATABASE) +  #include "V8CustomSQLStatementCallback.h"  #include "Frame.h" @@ -70,3 +73,6 @@ void V8CustomSQLStatementCallback::handleEvent(SQLTransaction* transaction, SQLR  }  } // namespace WebCore + +#endif + diff --git a/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.h b/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.h index 5c4b368..58ee943 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.h +++ b/WebCore/bindings/v8/custom/V8CustomSQLStatementCallback.h @@ -31,6 +31,8 @@  #ifndef V8CustomSQLStatementCallback_h  #define V8CustomSQLStatementCallback_h +#if ENABLE(DATABASE) +  #include "SQLStatementCallback.h"  #include <v8.h>  #include <wtf/PassRefPtr.h> @@ -59,4 +61,6 @@ private:  } // namespace WebCore +#endif +  #endif // V8CustomSQLStatementCallback_h diff --git a/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp b/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp index 908d21c..2f4401f 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp +++ b/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp @@ -29,6 +29,9 @@   */  #include "config.h" + +#if ENABLE(DATABASE) +  #include "V8CustomSQLStatementErrorCallback.h"  #include "Frame.h" @@ -74,3 +77,6 @@ bool V8CustomSQLStatementErrorCallback::handleEvent(SQLTransaction* transaction,  }  } // namespace WebCore + +#endif + diff --git a/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.h b/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.h index 7dc8114..685efc6 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.h +++ b/WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.h @@ -31,6 +31,8 @@  #ifndef V8CustomSQLStatementErrorCallback_h  #define V8CustomSQLStatementErrorCallback_h +#if ENABLE(DATABASE) +  #include "SQLStatementErrorCallback.h"  #include "SQLStatementErrorCallback.h" @@ -61,4 +63,6 @@ private:  } // namespace WebCore +#endif +  #endif // V8CustomSQLStatementErrorCallback_h diff --git a/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.cpp b/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.cpp index a45f3c9..a175df5 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.cpp +++ b/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.cpp @@ -29,6 +29,9 @@   */  #include "config.h" + +#if ENABLE(DATABASE) +  #include "V8CustomSQLTransactionCallback.h"  #include "Frame.h" @@ -73,3 +76,6 @@ void V8CustomSQLTransactionCallback::handleEvent(SQLTransaction* transaction, bo  }  } // namespace WebCore + +#endif + diff --git a/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.h b/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.h index 35497e0..665404d 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.h +++ b/WebCore/bindings/v8/custom/V8CustomSQLTransactionCallback.h @@ -31,6 +31,8 @@  #ifndef V8CustomSQLTransactionCallback_h  #define V8CustomSQLTransactionCallback_h +#if ENABLE(DATABASE) +  #include "SQLTransactionCallback.h"  #include <v8.h>  #include <wtf/PassRefPtr.h> @@ -59,4 +61,6 @@ private:  } // namespace WebCore +#endif +  #endif // V8CustomSQLTransactionCallback_h diff --git a/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp b/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp index f1ad740..5333006 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp +++ b/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp @@ -29,6 +29,9 @@   */  #include "config.h" + +#if ENABLE(DATABASE) +  #include "V8CustomSQLTransactionErrorCallback.h"  #include "Frame.h" @@ -73,3 +76,6 @@ bool V8CustomSQLTransactionErrorCallback::handleEvent(SQLError* error)  }  } // namespace WebCore + +#endif + diff --git a/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h b/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h index bbf5a749..13e8178 100644 --- a/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h +++ b/WebCore/bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h @@ -31,6 +31,8 @@  #ifndef V8CustomSQLTransactionErrorCallback_h  #define V8CustomSQLTransactionErrorCallback_h +#if ENABLE(DATABASE) +  #include "SQLTransactionErrorCallback.h"  #include <v8.h>  #include <wtf/PassRefPtr.h> @@ -60,4 +62,6 @@ private:  } // namespace WebCore +#endif +  #endif // V8CustomSQLTransactionErrorCallback_h diff --git a/WebCore/bindings/v8/custom/V8DatabaseCustom.cpp b/WebCore/bindings/v8/custom/V8DatabaseCustom.cpp index 5962ea3..2581d46 100644 --- a/WebCore/bindings/v8/custom/V8DatabaseCustom.cpp +++ b/WebCore/bindings/v8/custom/V8DatabaseCustom.cpp @@ -30,6 +30,8 @@  #include "config.h" +#if ENABLE(DATABASE) +  #include "v8_binding.h"  #include "v8_custom.h"  #include "v8_proxy.h" @@ -91,3 +93,6 @@ CALLBACK_FUNC_DECL(DatabaseTransaction)  }  } // namespace WebCore + +#endif + diff --git a/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp b/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp index 66585be..2481a4f 100644 --- a/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp +++ b/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp @@ -30,6 +30,8 @@  #include "config.h" +#if ENABLE(DATABASE) +  #include "v8_binding.h"  #include "v8_custom.h"  #include "v8_proxy.h" @@ -88,3 +90,6 @@ CALLBACK_FUNC_DECL(SQLResultSetRowListItem)  }  } // namespace WebCore + +#endif + diff --git a/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp b/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp index 3ca797c..fca60a0 100644 --- a/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp +++ b/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp @@ -30,6 +30,8 @@  #include "config.h" +#if ENABLE(DATABASE) +  #include "v8_binding.h"  #include "v8_custom.h"  #include "v8_proxy.h" @@ -112,3 +114,6 @@ CALLBACK_FUNC_DECL(SQLTransactionExecuteSql)  }  } // namespace WebCore + +#endif + | 
