diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-11-18 12:29:03 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-11-18 12:29:03 +0100 |
commit | cf6684e9732ed2d262dd22ceaed1940c03be5d75 (patch) | |
tree | fb1172a942290714701aa79dcb34dd79db70139c /Source | |
parent | 92e8d60fbd4bf8f710a460565db4662d4f259a2d (diff) | |
parent | bf8e1a56d5a7997ac8723e86789bdfde8414f53b (diff) |
Merge remote-tracking branch 'origin/release' into stable
Change-Id: I66176b416e672de84bf9df7e96346c3bea0c4dca
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WTF/wtf/MathExtras.h | 4 | ||||
-rw-r--r-- | Source/WebCore/bindings/js/ScriptController.h | 2 | ||||
-rw-r--r-- | Source/WebCore/bridge/qt/qt_runtime.cpp | 3 | ||||
-rw-r--r-- | Source/WebCore/html/HTMLPlugInElement.h | 4 | ||||
-rw-r--r-- | Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp | 3 | ||||
-rw-r--r-- | Source/widgetsapi.pri | 2 |
6 files changed, 10 insertions, 8 deletions
diff --git a/Source/WTF/wtf/MathExtras.h b/Source/WTF/wtf/MathExtras.h index f07bce6a3..4ff78df9f 100644 --- a/Source/WTF/wtf/MathExtras.h +++ b/Source/WTF/wtf/MathExtras.h @@ -123,6 +123,7 @@ inline bool signbit(double x) { struct ieee_double *p = (struct ieee_double *)&x #if COMPILER(MSVC) +#if _MSC_VER < 1800 // We must not do 'num + 0.5' or 'num - 0.5' because they can cause precision loss. static double round(double num) { @@ -138,6 +139,7 @@ static float roundf(float num) return integer - num > 0.5f ? integer - 1.0f : integer; return integer - num >= 0.5f ? integer - 1.0f : integer; } +#endif inline long long llround(double num) { return static_cast<long long>(round(num)); } inline long long llroundf(float num) { return static_cast<long long>(roundf(num)); } inline long lround(double num) { return static_cast<long>(round(num)); } @@ -177,7 +179,9 @@ namespace std { inline bool isinf(double num) { return !_finite(num) && !_isnan(num); } inline bool isnan(double num) { return !!_isnan(num); } inline bool isfinite(double x) { return _finite(x); } +#if _MSC_VER < 1800 inline bool signbit(double num) { return _copysign(1.0, num) < 0; } +#endif } // namespace std diff --git a/Source/WebCore/bindings/js/ScriptController.h b/Source/WebCore/bindings/js/ScriptController.h index 786cf0184..fb40262a6 100644 --- a/Source/WebCore/bindings/js/ScriptController.h +++ b/Source/WebCore/bindings/js/ScriptController.h @@ -178,9 +178,7 @@ private: // This ensures they are still available when the page is restored. RefPtr<JSC::Bindings::RootObject> m_cacheableBindingRootObject; RootObjectMap m_rootObjects; -#if ENABLE(NETSCAPE_PLUGIN_API) NPObject* m_windowScriptNPObject; -#endif #if PLATFORM(MAC) RetainPtr<WebScriptObject> m_windowScriptObject; #endif diff --git a/Source/WebCore/bridge/qt/qt_runtime.cpp b/Source/WebCore/bridge/qt/qt_runtime.cpp index d382462ac..e6a3e6b9f 100644 --- a/Source/WebCore/bridge/qt/qt_runtime.cpp +++ b/Source/WebCore/bridge/qt/qt_runtime.cpp @@ -805,10 +805,11 @@ JSValueRef convertQVariantToValue(JSContextRef context, PassRefPtr<RootObject> r } else if (type == static_cast<QMetaType::Type>(qMetaTypeId<QObjectList>())) { QObjectList ol = variant.value<QObjectList>(); JSObjectRef array = JSObjectMakeArray(context, 0, 0, exception); + RefPtr<RootObject> rootRef(root); // We need a real reference, since PassRefPtr may only be passed on to one call. ExecState* exec = toJS(context); APIEntryShim entryShim(exec); for (int i = 0; i < ol.count(); ++i) { - JSValueRef jsObject = toRef(exec, QtInstance::getQtInstance(ol.at(i), root, QtInstance::QtOwnership)->createRuntimeObject(exec)); + JSValueRef jsObject = toRef(exec, QtInstance::getQtInstance(ol.at(i), rootRef, QtInstance::QtOwnership)->createRuntimeObject(exec)); JSObjectSetPropertyAtIndex(context, array, i, jsObject, /*ignored exception*/0); } return array; diff --git a/Source/WebCore/html/HTMLPlugInElement.h b/Source/WebCore/html/HTMLPlugInElement.h index 83b9e6cf3..b5ccbb887 100644 --- a/Source/WebCore/html/HTMLPlugInElement.h +++ b/Source/WebCore/html/HTMLPlugInElement.h @@ -26,9 +26,7 @@ #include "HTMLFrameOwnerElement.h" #include "Image.h" -#if ENABLE(NETSCAPE_PLUGIN_API) struct NPObject; -#endif namespace JSC { namespace Bindings { @@ -109,9 +107,7 @@ private: virtual bool isPluginElement() const OVERRIDE; RefPtr<JSC::Bindings::Instance> m_instance; -#if ENABLE(NETSCAPE_PLUGIN_API) NPObject* m_NPObject; -#endif bool m_isCapturingMouseEvents; DisplayState m_displayState; diff --git a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp index 8b7552023..5385b05d9 100644 --- a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp +++ b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp @@ -971,6 +971,9 @@ void QWebFrameAdapter::setViewportSize(const QSize& size) ASSERT(view); view->resize(size); view->adjustViewSize(); + + if (view->needsLayout()) + view->layout(); } diff --git a/Source/widgetsapi.pri b/Source/widgetsapi.pri index caed98d23..7bdc0e138 100644 --- a/Source/widgetsapi.pri +++ b/Source/widgetsapi.pri @@ -27,7 +27,7 @@ INCLUDEPATH += \ have?(qtsensors):if(enable?(DEVICE_ORIENTATION)|enable?(ORIENTATION_EVENTS)): QT += sensors -have?(qtlocation):enable?(GEOLOCATION): QT += location +have?(qtpositioning):enable?(GEOLOCATION): QT += positioning use?(QT_MULTIMEDIA): QT *= multimediawidgets |