REGRESSION (r177656): Text in find-in-page yellow bouncy rectangle is not crisp
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jan 2015 23:57:17 +0000 (23:57 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jan 2015 23:57:17 +0000 (23:57 +0000)
commit3f57b5a5a7726f68f9de7573d5bd23f13baa30b1
tree1825d0f9c4500fae7c6ee1209a6e958b59e60cb0
parentbce518d17ccc191b128bec075b2de55c9997ffb5
REGRESSION (r177656): Text in find-in-page yellow bouncy rectangle is not crisp
https://bugs.webkit.org/show_bug.cgi?id=140373
<rdar://problem/19447156>

Reviewed by Simon Fraser.

* page/mac/TextIndicatorWindow.mm:
(WebCore::TextIndicatorWindow::setTextIndicator):
Expand the window margin to the nearest integer.
The window was already being pixel-snapped, but then we'd translate by
the non-integral margin when building up the layer tree.
It's OK to do this on 2x because it's fine to have the margin be bigger
than needed.

* platform/spi/cg/CoreGraphicsSPI.h:
Add a CGCeiling to match CGFloor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/page/mac/TextIndicatorWindow.mm
Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h