Changeset 34954 in webkit
- Timestamp:
- Jul 2, 2008 4:28:43 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34950 r34954 1 2008-07-02 Simon Hausmann <hausmann@webkit.org> 2 3 Build fix. Implemented missing functions for single-threaded build. 4 5 * kjs/JSLock.cpp: 6 (KJS::JSLock::JSLock): 7 (KJS::JSLock::lock): 8 (KJS::JSLock::unlock): 9 (KJS::JSLock::DropAllLocks::DropAllLocks): 10 1 11 2008-07-02 Alexey Proskuryakov <ap@webkit.org> 2 12 -
trunk/JavaScriptCore/kjs/JSLock.cpp
r34947 r34954 159 159 #else 160 160 161 JSLock::JSLock(ExecState* exec) 162 : m_lockingForReal(false) 163 { 164 } 165 161 166 // If threading support is off, set the lock count to a constant value of 1 so assertions 162 167 // that the lock is held don't fail … … 171 176 } 172 177 173 void JSLock::lock() 174 { 175 } 176 177 void JSLock::unlock() 178 void JSLock::lock(bool) 179 { 180 } 181 182 void JSLock::unlock(bool) 183 { 184 } 185 186 void JSLock::lock(ExecState*) 187 { 188 } 189 190 void JSLock::unlock(ExecState*) 178 191 { 179 192 } … … 183 196 } 184 197 185 JSLock::DropAllLocks::DropAllLocks() 198 JSLock::DropAllLocks::DropAllLocks(ExecState*) 199 { 200 } 201 202 JSLock::DropAllLocks::DropAllLocks(bool) 186 203 { 187 204 } -
trunk/WebCore/ChangeLog
r34951 r34954 1 2008-07-02 Simon Hausmann <hausmann@webkit.org> 2 3 Build fixes. 4 5 * WebCore.pro: Added plugins/PluginMainThreadScheduler.cpp to the 6 build. 7 * bridge/qt/qt_instance.cpp: Adjust to JSLock API change. 8 * bridge/qt/qt_runtime.cpp: Ditto. 9 (KJS::Bindings::convertValueToQVariant): 10 (KJS::Bindings::convertQVariantToValue): 11 (KJS::Bindings::QtRuntimeMetaMethod::call): 12 (KJS::Bindings::QtRuntimeConnectionMethod::call): 13 (KJS::Bindings::QtConnectionObject::execute): 14 * page/JavaScriptProfileNode.cpp: Inlude kjs/JSValue.h instead of 15 JavaScriptCore/JSValue.h. 16 * plugins/qt/PluginViewQt.cpp: Adjust to JSLock API changes. 17 (WebCore::PluginView::setNPWindowRect): Ditto. 18 (WebCore::PluginView::stop): Ditto. 19 (WebCore::PluginView::init): Ditto. 20 1 21 2008-07-02 Alexey Proskuryakov <ap@webkit.org> 2 22 -
trunk/WebCore/WebCore.pro
r34806 r34954 1043 1043 contains(DEFINES, ENABLE_NETSCAPE_PLUGIN_API=1) { 1044 1044 1045 SOURCES += plugins/npapi.cpp 1045 SOURCES += plugins/npapi.cpp \ 1046 plugins/PluginMainThreadScheduler.cpp 1046 1047 1047 1048 unix:!mac { -
trunk/WebCore/bridge/qt/qt_instance.cpp
r34854 r34954 22 22 23 23 #include "JSGlobalObject.h" 24 #include "JSLock.h" 24 25 #include "list.h" 25 26 #include "qt_class.h" … … 84 85 void QtRuntimeObjectImp::removeFromCache() 85 86 { 86 JSLock lock ;87 JSLock lock(false); 87 88 QtInstance* key = cachedObjects.key(this); 88 89 if (key) … … 135 136 QtInstance::~QtInstance() 136 137 { 137 JSLock lock ;138 JSLock lock(false); 138 139 139 140 cachedObjects.remove(this); … … 151 152 PassRefPtr<QtInstance> QtInstance::getQtInstance(QObject* o, PassRefPtr<RootObject> rootObject) 152 153 { 153 JSLock lock ;154 JSLock lock(false); 154 155 155 156 foreach(QtInstance* instance, cachedInstances.values(o)) { … … 166 167 RuntimeObjectImp* QtInstance::getRuntimeObject(ExecState* exec, PassRefPtr<QtInstance> instance) 167 168 { 168 JSLock lock ;169 JSLock lock(false); 169 170 RuntimeObjectImp* ret = static_cast<RuntimeObjectImp*>(cachedObjects.value(instance.get())); 170 171 if (!ret) { -
trunk/WebCore/bridge/qt/qt_runtime.cpp
r34908 r34954 22 22 #include "qt_instance.h" 23 23 #include "JSGlobalObject.h" 24 #include "JSLock.h" 24 25 #include "JSObject.h" 25 26 #include "JSArray.h" … … 151 152 } 152 153 153 JSLock lock ;154 JSLock lock(false); 154 155 JSRealType type = valueRealType(exec, value); 155 156 if (hint == QMetaType::Void) { … … 718 719 } 719 720 720 JSLock lock ;721 JSLock lock(false); 721 722 722 723 if (type == QMetaType::Bool) … … 1295 1296 1296 1297 // We have to pick a method that matches.. 1297 JSLock lock ;1298 JSLock lock(false); 1298 1299 1299 1300 QObject *obj = d->m_instance->getObject(); … … 1388 1389 QtRuntimeConnectionMethodData* d = static_cast<QtRuntimeConnectionMethod *>(functionObject)->d_func(); 1389 1390 1390 JSLock lock ;1391 JSLock lock(false); 1391 1392 1392 1393 QObject* sender = d->m_instance->getObject(); … … 1618 1619 int argc = parameterTypes.count(); 1619 1620 1620 JSLock lock ;1621 JSLock lock(false); 1621 1622 1622 1623 // ### Should the Interpreter/ExecState come from somewhere else? -
trunk/WebCore/page/JavaScriptProfileNode.cpp
r34947 r34954 35 35 #include <JavaScriptCore/JSRetainPtr.h> 36 36 #include <JavaScriptCore/JSStringRef.h> 37 #include < JavaScriptCore/JSValue.h>37 #include <kjs/JSValue.h> 38 38 39 39 using namespace KJS; -
trunk/WebCore/plugins/qt/PluginViewQt.cpp
r34581 r34954 188 188 if (m_plugin->pluginFuncs()->setwindow) { 189 189 PluginView::setCurrentPluginView(this); 190 KJS::JSLock::DropAllLocks dropAllLocks ;190 KJS::JSLock::DropAllLocks dropAllLocks(false); 191 191 setCallingPlugin(true); 192 192 m_plugin->pluginFuncs()->setwindow(m_instance, &m_npWindow); … … 237 237 m_isStarted = false; 238 238 239 KJS::JSLock::DropAllLocks dropAllLocks ;239 KJS::JSLock::DropAllLocks dropAllLocks(false); 240 240 241 241 // Clear the window … … 447 447 if (m_plugin->pluginFuncs()->getvalue) { 448 448 PluginView::setCurrentPluginView(this); 449 KJS::JSLock::DropAllLocks dropAllLocks ;449 KJS::JSLock::DropAllLocks dropAllLocks(false); 450 450 setCallingPlugin(true); 451 451 m_plugin->pluginFuncs()->getvalue(m_instance, NPPVpluginNeedsXEmbed, &m_needsXEmbed); -
trunk/WebKit/qt/Api/qwebpage.cpp
r34738 r34954 1365 1365 1366 1366 case SetTextDirectionDefault: 1367 editor->setBaseWritingDirection( "inherit");1367 editor->setBaseWritingDirection(NaturalWritingDirection); 1368 1368 break; 1369 1369 case SetTextDirectionLeftToRight: 1370 editor->setBaseWritingDirection( "ltr");1370 editor->setBaseWritingDirection(LeftToRightWritingDirection); 1371 1371 break; 1372 1372 case SetTextDirectionRightToLeft: 1373 editor->setBaseWritingDirection( "rtl");1373 editor->setBaseWritingDirection(RightToLeftWritingDirection); 1374 1374 break; 1375 1375 -
trunk/WebKit/qt/ChangeLog
r34947 r34954 1 2008-07-02 Simon Hausmann <hausmann@webkit.org> 2 3 Build fix. 4 5 * Api/qwebpage.cpp: 6 (QWebPage::triggerAction): The signature of setBaseWritingDirection 7 changed to take an enum instead of a string. 8 1 9 2008-07-01 Alexey Proskuryakov <ap@webkit.org> 2 10
Note: See TracChangeset
for help on using the changeset viewer.