Fix compile warning when enable tiled backing store
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Aug 2012 09:38:50 +0000 (09:38 +0000)
committerKrzysztof Wolanski <k.wolanski@samsung.com>
Fri, 5 Apr 2013 12:22:54 +0000 (14:22 +0200)
commitb51d3303524f92cbc020e10f55e685bd7d891c62
treecb6f350dab4b7defd002880ddf17675d64b91264
parent857d53850a34e5304ac42165e7a3d6da0808231e
Fix compile warning when enable tiled backing store
https://bugs.webkit.org/show_bug.cgi?id=95422

Patch by Kangil Han <kangil.han@samsung.com> on 2012-08-30
Reviewed by Kentaro Hara.

Fixed compile warning messages when enabled tiled backing store.
In case of TiledBackingStore, it was first thought about static_cast<unsigned>.
However, if minus value is assigned to the comparison, it would be critical.
So, it was modified as using int value in tiled coordinate calculation.

* page/Frame.cpp:
(WebCore::Frame::tiledBackingStorePaintEnd): comparison between signed and unsigned integer expressions [-Wsign-compare]
* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::invalidate): comparison between signed and unsigned integer expressions [-Wsign-compare]
(WebCore::TiledBackingStore::paint): comparison between signed and unsigned integer expressions [-Wsign-compare]
(WebCore::TiledBackingStore::coverageRatio): comparison between signed and unsigned integer expressions [-Wsign-compare]
(WebCore::TiledBackingStore::createTiles): comparison between signed and unsigned integer expressions [-Wsign-compare]
* platform/graphics/cairo/GLContext.cpp:
(WebCore::GLContext::createOffscreenContext): no return statement in function returning non-void [-Wreturn-type]

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127118 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

Source/WebCore/platform/graphics/TiledBackingStore.cpp

Change-Id: If860f2190a7b231303c4c58e56bf0a7b9f954243
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/TiledBackingStore.cpp
Source/WebCore/platform/graphics/cairo/GLContext.cpp