diff options
author | Jani Heikkinen <jani.heikkinen@digia.com> | 2014-04-24 18:37:51 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-24 20:57:25 +0200 |
commit | 3a99a54ccb7de14646234b2235c7b68a2be73902 (patch) | |
tree | 3e0615047ed18e02766ff8b10dbbe4aed1e94d26 | |
parent | 34a0cc44e9b0d5a8c9c3ea7302d9ebc89270de94 (diff) | |
parent | dfd7a4f985248e85d0ddfe0ee81b9b30a92a9c9d (diff) |
Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable
-rw-r--r-- | Source/WTF/wtf/Atomics.h | 3 | ||||
-rw-r--r-- | Source/WebCore/platform/qt/PasteboardQt.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/platform/text/LineEnding.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/rendering/RenderLayer.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/rendering/RenderLayerCompositor.cpp | 3 | ||||
-rw-r--r-- | Tools/qmake/mkspecs/features/features.prf | 4 |
6 files changed, 8 insertions, 7 deletions
diff --git a/Source/WTF/wtf/Atomics.h b/Source/WTF/wtf/Atomics.h index ea4f55f95..4b3eb4b88 100644 --- a/Source/WTF/wtf/Atomics.h +++ b/Source/WTF/wtf/Atomics.h @@ -104,9 +104,6 @@ inline int atomicDecrement(int volatile* addend) { return static_cast<int>(atomi inline int atomicIncrement(int volatile* addend) { return __atomic_inc(addend) + 1; } inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend) - 1; } -inline int64_t atomicIncrement(int64_t volatile* addend) { return __sync_add_and_fetch(addend, 1); } -inline int64_t atomicDecrement(int64_t volatile* addend) { return __sync_sub_and_fetch(addend, 1); } - #elif COMPILER(GCC) #define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1 diff --git a/Source/WebCore/platform/qt/PasteboardQt.cpp b/Source/WebCore/platform/qt/PasteboardQt.cpp index cf1c3a619..7639e2302 100644 --- a/Source/WebCore/platform/qt/PasteboardQt.cpp +++ b/Source/WebCore/platform/qt/PasteboardQt.cpp @@ -171,7 +171,7 @@ PassRefPtr<DocumentFragment> Pasteboard::documentFragment(Frame* frame, PassRefP if (!title.isEmpty()) title = QStringLiteral(" title=\"") + title + QStringLiteral("\""); if (urls.count() == 1) { - QString html = QStringLiteral("<img src=\"") + urls.first().toEncoded() + QStringLiteral("\"") + title + QStringLiteral(">"); + QString html = QStringLiteral("<img src=\"") + urls.first().toString(QUrl::FullyEncoded) + QStringLiteral("\"") + title + QStringLiteral(">"); RefPtr<DocumentFragment> fragment = createFragmentFromMarkup(frame->document(), html, "", DisallowScriptingAndPluginContent); if (fragment) return fragment.release(); diff --git a/Source/WebCore/platform/text/LineEnding.cpp b/Source/WebCore/platform/text/LineEnding.cpp index ff5707988..243e08962 100644 --- a/Source/WebCore/platform/text/LineEnding.cpp +++ b/Source/WebCore/platform/text/LineEnding.cpp @@ -96,6 +96,8 @@ private: void internalNormalizeLineEndingsToCRLF(const CString& from, OutputBuffer& buffer) { + if (!from.length()) + return; // Compute the new length. size_t newLen = 0; const char* p = from.data(); diff --git a/Source/WebCore/rendering/RenderLayer.cpp b/Source/WebCore/rendering/RenderLayer.cpp index c378f18e6..2d0b56e79 100644 --- a/Source/WebCore/rendering/RenderLayer.cpp +++ b/Source/WebCore/rendering/RenderLayer.cpp @@ -3619,6 +3619,7 @@ void RenderLayer::paintLayer(GraphicsContext* context, const LayerPaintingInfo& } else if (viewportConstrainedNotCompositedReason() == NotCompositedForBoundsOutOfView) { // Don't paint out-of-view viewport constrained layers (when doing prepainting) because they will never be visible // unless their position or viewport size is changed. + ASSERT(renderer()->style()->position() == FixedPosition); return; } #endif diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp index 6f1fd3e0b..784ebdc80 100644 --- a/Source/WebCore/rendering/RenderLayerCompositor.cpp +++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp @@ -767,7 +767,8 @@ bool RenderLayerCompositor::updateBacking(RenderLayer* layer, CompositingChangeR if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator()) scrollingCoordinator->frameViewFixedObjectsDidChange(m_renderView->frameView()); } - } + } else + layer->setViewportConstrainedNotCompositedReason(RenderLayer::NoNotCompositedReason); if (layer->backing()) layer->backing()->updateDebugIndicators(m_showDebugBorders, m_showRepaintCounter); diff --git a/Tools/qmake/mkspecs/features/features.prf b/Tools/qmake/mkspecs/features/features.prf index 866e1c41b..52227b290 100644 --- a/Tools/qmake/mkspecs/features/features.prf +++ b/Tools/qmake/mkspecs/features/features.prf @@ -121,8 +121,8 @@ defineTest(detectFeatures) { isEmpty(SQLITE3SRCDIR):isEmpty(_QMAKE_SUPER_CACHE_): error("WebKit requires SQLite. Either make it available via pkg-config, set $SQLITE3SRCDIR or build WebKit under qt5.git.") } - # Gamepad API Support (depends on udev) - linux: WEBKIT_CONFIG += gamepad + # Gamepad API Support (depends on udev and linux/joystick.h) + linux:!android: WEBKIT_CONFIG += gamepad # Support for Graphics Surface # GraphicsSurface requires GraphicsContext3D and hence use_3d_graphics |