Reviewed by Mihai Parparita.
[chromium] fix for animated gif layout tests
https://bugs.webkit.org/show_bug.cgi?id=52008
Remove incorrect baselines.
* platform/chromium-win/fast/backgrounds/animated-gif-as-background-expected.checksum: Removed.
* platform/chromium-win/fast/backgrounds/animated-gif-as-background-expected.png: Removed.
* platform/chromium/test_expectations.txt:
2011-01-10 Tony Chang <tony@chromium.org>
Reviewed by Mihai Parparita.
[chromium] fix for animated gif layout tests
https://bugs.webkit.org/show_bug.cgi?id=52008
* DumpRenderTree/chromium/WebViewHost.cpp: Schedule a paint when we update the paint rect
to trigger gif animations.
(WebViewHostPaintTask::WebViewHostPaintTask):
(WebViewHostPaintTask::runIfValid):
(WebViewHost::updatePaintRect):
* DumpRenderTree/chromium/WebViewHost.h:
(WebViewHost::taskList):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75398
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-01-10 Tony Chang <tony@chromium.org>
+
+ Reviewed by Mihai Parparita.
+
+ [chromium] fix for animated gif layout tests
+ https://bugs.webkit.org/show_bug.cgi?id=52008
+
+ Remove incorrect baselines.
+
+ * platform/chromium-win/fast/backgrounds/animated-gif-as-background-expected.checksum: Removed.
+ * platform/chromium-win/fast/backgrounds/animated-gif-as-background-expected.png: Removed.
+ * platform/chromium/test_expectations.txt:
+
2011-01-10 Sheriff Bot <webkit.review.bot@gmail.com>
Unreviewed, rolling out r75341.
+++ /dev/null
-55386cdd10b4fda864ed14b4cd869077
\ No newline at end of file
// Regressions caused by switching to DRT.
///////////////////////////////////////////////////////////////////////////
-// DRT needs to schedule paints on invalidations like Chrome does.
-BUGCR62433 MAC LINUX : fast/backgrounds/animated-gif-as-background.html = IMAGE
-BUGCR62433 MAC LINUX : fast/images/gif-loop-count.html = IMAGE
+// These need to be rebaselined on Windows.
+BUGCR62433 WIN : fast/backgrounds/animated-gif-as-background.html = IMAGE
+BUGCR62433 WIN : fast/images/gif-loop-count.html = IMAGE
// input-speech related failures
BUG_DRT WIN MAC : fast/speech/input-appearance-numberandspeech.html = IMAGE
+2011-01-10 Tony Chang <tony@chromium.org>
+
+ Reviewed by Mihai Parparita.
+
+ [chromium] fix for animated gif layout tests
+ https://bugs.webkit.org/show_bug.cgi?id=52008
+
+ * DumpRenderTree/chromium/WebViewHost.cpp: Schedule a paint when we update the paint rect
+ to trigger gif animations.
+ (WebViewHostPaintTask::WebViewHostPaintTask):
+ (WebViewHostPaintTask::runIfValid):
+ (WebViewHost::updatePaintRect):
+ * DumpRenderTree/chromium/WebViewHost.h:
+ (WebViewHost::taskList):
+
2011-01-10 Alejandro G. Castro <alex@igalia.com>
Reviewed by Xan Lopez.
updatePaintRect(WebRect(0, 0, size.width, size.height));
}
-
-
void WebViewHost::closeWidget()
{
m_hasWindow = false;
// Painting functions ---------------------------------------------------------
+class WebViewHostPaintTask : public MethodTask<WebViewHost> {
+public:
+ WebViewHostPaintTask(WebViewHost* object)
+ : MethodTask<WebViewHost>(object) {}
+ virtual void runIfValid() { m_object->paintInvalidatedRegion(); }
+};
+
void WebViewHost::updatePaintRect(const WebRect& rect)
{
// m_paintRect = m_paintRect U rect
int right = max(m_paintRect.x + m_paintRect.width, rect.x + rect.width);
int bottom = max(m_paintRect.y + m_paintRect.height, rect.y + rect.height);
m_paintRect = WebRect(left, top, right - left, bottom - top);
+
+ postDelayedTask(new WebViewHostPaintTask(this), 0);
}
void WebViewHost::paintRect(const WebRect& rect)
#define WebViewHost_h
#include "MockSpellCheck.h"
+#include "Task.h"
#include "TestNavigationController.h"
#include "WebAccessibilityNotification.h"
#include "WebCursorInfo.h"
WebKit::WebSpeechInputControllerMock* speechInputControllerMock() { return m_speechInputControllerMock.get(); }
+ // Needed by the MethodTask template.
+ TaskList* taskList() { return &m_taskList; }
+
// NavigationHost
virtual bool navigate(const TestNavigationEntry&, bool reload);
WebKit::WebRect m_paintRect;
bool m_isPainting;
+ TaskList m_taskList;
+
OwnPtr<WebKit::WebContextMenuData> m_lastContextMenuData;
// Geolocation