diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-24 10:04:13 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-24 10:04:13 (GMT) |
commit | bc6c888a149064c43d8dd8194170e999507987e0 (patch) | |
tree | daded9069c0cb0f190b05e95bdebb2c4f30346c2 | |
parent | 4963cf12ddaf75a669c69b9e1c478ad6a3d0ae90 (diff) | |
download | Qt-bc6c888a149064c43d8dd8194170e999507987e0.zip Qt-bc6c888a149064c43d8dd8194170e999507987e0.tar.gz Qt-bc6c888a149064c43d8dd8194170e999507987e0.tar.bz2 |
Updated WebKit from /home/shausman/src/webkit/trunk to origin/qtwebkit-4.6-staging ( 6d5a2a0472a6af0b7f781da018e76bb8522d57a5 )
Changes in WebKit since the last update:
++ b/JavaScriptCore/ChangeLog
Reviewed by Maciej Stachowiak.
https://bugs.webkit.org/show_bug.cgi?id=26645
Inherits ScopeChainNode class from FastAllocBase because it has been
instantiated by 'new' in JavaScriptCore/runtime/ScopeChain.h:95.
* wtf/RefPtr.h:
2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=26648
Inherits Deque class from FastAllocBase because it has been
instantiated by 'new' with DEFINE_STATIC_LOCAL macro in
JavaScriptCore/wtf/MainThread.cpp:62.
* wtf/Deque.h:
2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=26644
Inherits RefPtr class from FastAllocBase because it has been
instantiated by 'new' in JavaScriptCore/runtime/StructureChain.cpp:41.
* wtf/RefPtr.h:
2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu>
++ b/LayoutTests/ChangeLog
Reviewed by NOBODY (Disabling failing test!).
* media/video-canvas.html-disabled: Renamed from LayoutTests/media/video-canvas.html.
2009-06-24 Eric Seidel <eric@webkit.org>
Reviewed by Mark Rowe.
Add new drag tests to the Skipped lists for non-mac platforms.
Skipped tests:
fast/events/drag-to-navigate.html
fast/events/prevent-drag-to-navigate.html
* platform/gtk/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:
2009-06-24 Oliver Hunt <oliver@apple.com>
++ b/WebCore/ChangeLog
2009-06-24 Simon Hausmann <simon.hausmann@nokia.com>
Reviewed by Tor Arne Vestbø.
Fix the build without ENABLE_VIDEO.
* html/CanvasRenderingContext2D.cpp: Add #if ENABLE guards.
* html/CanvasRenderingContext2D.h: Ditto.
2009-06-24 Siddhartha Chattopadhyay <sidchat@google.com>
Reviewed by Eric Seidel.
Fix for https://bugs.webkit.org/show_bug.cgi?id=26200 which I introduced earlier. I had
the smartReplace set TRUE initially, which was wrong since the purpose of this call is
to just replace the selection, and place the caret at the end of the selection it replaced.
* editing/Editor.cpp:
(WebCore::Editor::markMisspellingsAfterTypingToPosition):
* manual-tests/textarea-caret-position-after-auto-spell-correct.html: Added.
++ b/WebKit/mac/ChangeLog
2009-06-24 Jeff Johnson <opendarwin@lapcatsoftware.com>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=26638 WebKitErrors.m: _initWithPluginErrorCode: does not set localizedDescription
Add localized descriptions for plugin errors.
The localized strings already existed but were unused; now NSLocalizedDescriptionKey is added to the NSError userInfo.
* Misc/WebKitErrors.m:
(-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]):
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/ChangeLog | 34 | ||||
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/runtime/ScopeChain.h | 4 | ||||
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/wtf/Deque.h | 2 | ||||
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/wtf/RefPtr.h | 3 | ||||
-rw-r--r-- | src/3rdparty/webkit/VERSION | 2 | ||||
-rw-r--r-- | src/3rdparty/webkit/WebCore/ChangeLog | 21 | ||||
-rw-r--r-- | src/3rdparty/webkit/WebCore/editing/Editor.cpp | 2 | ||||
-rw-r--r-- | src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.cpp | 6 | ||||
-rw-r--r-- | src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.h | 2 | ||||
-rw-r--r-- | src/3rdparty/webkit/WebCore/plugins/win/PluginViewWin.cpp | 17 |
10 files changed, 70 insertions, 23 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/ChangeLog b/src/3rdparty/webkit/JavaScriptCore/ChangeLog index 2e06ee2..55518f5 100644 --- a/src/3rdparty/webkit/JavaScriptCore/ChangeLog +++ b/src/3rdparty/webkit/JavaScriptCore/ChangeLog @@ -1,5 +1,39 @@ 2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu> + Reviewed by Maciej Stachowiak. + + https://bugs.webkit.org/show_bug.cgi?id=26645 + + Inherits ScopeChainNode class from FastAllocBase because it has been + instantiated by 'new' in JavaScriptCore/runtime/ScopeChain.h:95. + + * wtf/RefPtr.h: + +2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu> + + Reviewed by Darin Adler. + + https://bugs.webkit.org/show_bug.cgi?id=26648 + + Inherits Deque class from FastAllocBase because it has been + instantiated by 'new' with DEFINE_STATIC_LOCAL macro in + JavaScriptCore/wtf/MainThread.cpp:62. + + * wtf/Deque.h: + +2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu> + + Reviewed by Darin Adler. + + https://bugs.webkit.org/show_bug.cgi?id=26644 + + Inherits RefPtr class from FastAllocBase because it has been + instantiated by 'new' in JavaScriptCore/runtime/StructureChain.cpp:41. + + * wtf/RefPtr.h: + +2009-06-24 Zoltan Horvath <hzoltan@inf.u-szeged.hu> + Reviewed by Darin Adler. Inherits HashSet class from FastAllocBase, because it has been diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/ScopeChain.h b/src/3rdparty/webkit/JavaScriptCore/runtime/ScopeChain.h index 6f1560a..3b10d32 100644 --- a/src/3rdparty/webkit/JavaScriptCore/runtime/ScopeChain.h +++ b/src/3rdparty/webkit/JavaScriptCore/runtime/ScopeChain.h @@ -21,7 +21,7 @@ #ifndef ScopeChain_h #define ScopeChain_h -#include <wtf/Assertions.h> +#include "FastAllocBase.h" namespace JSC { @@ -30,7 +30,7 @@ namespace JSC { class JSObject; class ScopeChainIterator; - class ScopeChainNode { + class ScopeChainNode : public WTF::FastAllocBase { public: ScopeChainNode(ScopeChainNode* next, JSObject* object, JSGlobalData* globalData, JSObject* globalThis) : next(next) diff --git a/src/3rdparty/webkit/JavaScriptCore/wtf/Deque.h b/src/3rdparty/webkit/JavaScriptCore/wtf/Deque.h index c371d38..3c3d378 100644 --- a/src/3rdparty/webkit/JavaScriptCore/wtf/Deque.h +++ b/src/3rdparty/webkit/JavaScriptCore/wtf/Deque.h @@ -44,7 +44,7 @@ namespace WTF { template<typename T> class DequeConstReverseIterator; template<typename T> - class Deque { + class Deque : public FastAllocBase { public: typedef DequeIterator<T> iterator; typedef DequeConstIterator<T> const_iterator; diff --git a/src/3rdparty/webkit/JavaScriptCore/wtf/RefPtr.h b/src/3rdparty/webkit/JavaScriptCore/wtf/RefPtr.h index 929e745..74cd0ea 100644 --- a/src/3rdparty/webkit/JavaScriptCore/wtf/RefPtr.h +++ b/src/3rdparty/webkit/JavaScriptCore/wtf/RefPtr.h @@ -23,6 +23,7 @@ #include <algorithm> #include "AlwaysInline.h" +#include "FastAllocBase.h" namespace WTF { @@ -32,7 +33,7 @@ namespace WTF { enum HashTableDeletedValueType { HashTableDeletedValue }; - template <typename T> class RefPtr { + template <typename T> class RefPtr : public FastAllocBase { public: RefPtr() : m_ptr(0) { } RefPtr(T* ptr) : m_ptr(ptr) { if (ptr) ptr->ref(); } diff --git a/src/3rdparty/webkit/VERSION b/src/3rdparty/webkit/VERSION index 9742db4..ec2aa17 100644 --- a/src/3rdparty/webkit/VERSION +++ b/src/3rdparty/webkit/VERSION @@ -8,4 +8,4 @@ The commit imported was from the and has the sha1 checksum - 9508ee9559a81a3401e2cd7e06ab74c590c84523 + 6d5a2a0472a6af0b7f781da018e76bb8522d57a5 diff --git a/src/3rdparty/webkit/WebCore/ChangeLog b/src/3rdparty/webkit/WebCore/ChangeLog index ff319b0..25427bc 100644 --- a/src/3rdparty/webkit/WebCore/ChangeLog +++ b/src/3rdparty/webkit/WebCore/ChangeLog @@ -1,3 +1,24 @@ +2009-06-24 Simon Hausmann <simon.hausmann@nokia.com> + + Reviewed by Tor Arne Vestbø. + + Fix the build without ENABLE_VIDEO. + + * html/CanvasRenderingContext2D.cpp: Add #if ENABLE guards. + * html/CanvasRenderingContext2D.h: Ditto. + +2009-06-24 Siddhartha Chattopadhyay <sidchat@google.com> + + Reviewed by Eric Seidel. + + Fix for https://bugs.webkit.org/show_bug.cgi?id=26200 which I introduced earlier. I had + the smartReplace set TRUE initially, which was wrong since the purpose of this call is + to just replace the selection, and place the caret at the end of the selection it replaced. + + * editing/Editor.cpp: + (WebCore::Editor::markMisspellingsAfterTypingToPosition): + * manual-tests/textarea-caret-position-after-auto-spell-correct.html: Added. + 2009-06-24 Kevin Watters <kevinwatters@gmail.com> Reviewed by Kevin Ollivier. diff --git a/src/3rdparty/webkit/WebCore/editing/Editor.cpp b/src/3rdparty/webkit/WebCore/editing/Editor.cpp index a113d96..2ad5cce 100644 --- a/src/3rdparty/webkit/WebCore/editing/Editor.cpp +++ b/src/3rdparty/webkit/WebCore/editing/Editor.cpp @@ -2206,7 +2206,7 @@ void Editor::markMisspellingsAfterTypingToPosition(const VisiblePosition &p) if (!frame()->editor()->shouldInsertText(autocorrectedString, misspellingRange.get(), EditorInsertActionTyped)) return; - frame()->editor()->replaceSelectionWithText(autocorrectedString, false, true); + frame()->editor()->replaceSelectionWithText(autocorrectedString, false, false); // Reset the charet one character further. frame()->selection()->moveTo(frame()->selection()->end()); diff --git a/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.cpp b/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.cpp index e5118e1..7ab0da5 100644 --- a/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.cpp +++ b/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.cpp @@ -912,13 +912,15 @@ static IntSize size(HTMLImageElement* image) return cachedImage->imageSize(1.0f); // FIXME: Not sure about this. return IntSize(); } - + +#if ENABLE(VIDEO) static IntSize size(HTMLVideoElement* video) { if (MediaPlayer* player = video->player()) return player->naturalSize(); return IntSize(); } +#endif static inline FloatRect normalizeRect(const FloatRect& rect) { @@ -1041,6 +1043,7 @@ void CanvasRenderingContext2D::drawImage(HTMLCanvasElement* canvas, const FloatR // FIXME: Arguably willDraw should become didDraw and occur after drawing calls and not before them to avoid problems like this. } +#if ENABLE(VIDEO) void CanvasRenderingContext2D::drawImage(HTMLVideoElement* video, float x, float y) { ASSERT(video); @@ -1096,6 +1099,7 @@ void CanvasRenderingContext2D::drawImage(HTMLVideoElement* video, const FloatRec video->paint(c, IntRect(IntPoint(), size(video))); c->restore(); } +#endif // FIXME: Why isn't this just another overload of drawImage? Why have a different name? void CanvasRenderingContext2D::drawImageFromRect(HTMLImageElement* image, diff --git a/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.h b/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.h index be8c1cc..0b000a3 100644 --- a/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.h +++ b/src/3rdparty/webkit/WebCore/html/CanvasRenderingContext2D.h @@ -160,9 +160,11 @@ namespace WebCore { void drawImage(HTMLCanvasElement*, float x, float y); void drawImage(HTMLCanvasElement*, float x, float y, float width, float height, ExceptionCode&); void drawImage(HTMLCanvasElement*, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCode&); +#if ENABLE(VIDEO) void drawImage(HTMLVideoElement*, float x, float y); void drawImage(HTMLVideoElement*, float x, float y, float width, float height, ExceptionCode&); void drawImage(HTMLVideoElement*, const FloatRect& srcRect, const FloatRect& dstRect, ExceptionCode&); +#endif void drawImageFromRect(HTMLImageElement*, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh, const String& compositeOperation); diff --git a/src/3rdparty/webkit/WebCore/plugins/win/PluginViewWin.cpp b/src/3rdparty/webkit/WebCore/plugins/win/PluginViewWin.cpp index e477965..67c34eb 100644 --- a/src/3rdparty/webkit/WebCore/plugins/win/PluginViewWin.cpp +++ b/src/3rdparty/webkit/WebCore/plugins/win/PluginViewWin.cpp @@ -110,11 +110,6 @@ static BYTE* endPaint; HDC WINAPI PluginView::hookedBeginPaint(HWND hWnd, PAINTSTRUCT* lpPaint) { -#if (COMPILER(MINGW)) - Q_UNUSED(hWnd) - Q_UNUSED(lpPaint) - return 0; -#else PluginView* pluginView = reinterpret_cast<PluginView*>(GetProp(hWnd, kWebPluginViewProperty)); if (pluginView && pluginView->m_wmPrintHDC) { // We're secretly handling WM_PRINTCLIENT, so set up the PAINTSTRUCT so @@ -130,16 +125,10 @@ HDC WINAPI PluginView::hookedBeginPaint(HWND hWnd, PAINTSTRUCT* lpPaint) __asm push lpPaint __asm push hWnd __asm call beginPaint -#endif } BOOL WINAPI PluginView::hookedEndPaint(HWND hWnd, const PAINTSTRUCT* lpPaint) { -#if (COMPILER(MINGW)) - Q_UNUSED(hWnd) - Q_UNUSED(lpPaint) - return FALSE; -#else PluginView* pluginView = reinterpret_cast<PluginView*>(GetProp(hWnd, kWebPluginViewProperty)); if (pluginView && pluginView->m_wmPrintHDC) { // We're secretly handling WM_PRINTCLIENT, so we don't have to do any @@ -152,10 +141,8 @@ BOOL WINAPI PluginView::hookedEndPaint(HWND hWnd, const PAINTSTRUCT* lpPaint) __asm push lpPaint __asm push hWnd __asm call endPaint -#endif } -#if (!COMPILER(MINGW)) static void hook(const char* module, const char* proc, unsigned& sysCallID, BYTE*& pProc, const void* pNewProc) { // See <http://www.fengyuan.com/article/wmprint.html> for an explanation of @@ -196,7 +183,6 @@ static void setUpOffscreenPaintingHooks(HDC (WINAPI*hookedBeginPaint)(HWND, PAIN hook("user32.dll", "BeginPaint", beginPaintSysCall, beginPaint, hookedBeginPaint); hook("user32.dll", "EndPaint", endPaintSysCall, endPaint, hookedEndPaint); } -#endif static bool registerPluginView() { @@ -940,9 +926,8 @@ void PluginView::init() if (m_isWindowed) { registerPluginView(); -#if (!COMPILER(MINGW)) setUpOffscreenPaintingHooks(hookedBeginPaint, hookedEndPaint); -#endif + DWORD flags = WS_CHILD; if (isSelfVisible()) flags |= WS_VISIBLE; |