Skip to content

Commit

Permalink
Merge r224671 - [GTK][WPE] CoordinatedGraphicsLayer::setNeedsDisplayI…
Browse files Browse the repository at this point in the history
…nRect() converts FloatRect to IntRect erroneously

https://bugs.webkit.org/show_bug.cgi?id=179476

Reviewed by Žan Doberšek.

Convert the passed FloatRect into an IntRect using enclosingIntRect(), so we are guaranteed that
the rectangle to paint fits into the buffer that the backingStore will allocate.

No behaviour change.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setNeedsDisplayInRect):
  • Loading branch information
magomez authored and carlosgcampos committed Dec 19, 2017
1 parent 3ff9ebf commit 3b54132
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,18 @@
2017-11-10 Miguel Gomez <magomez@igalia.com>

[GTK][WPE] CoordinatedGraphicsLayer::setNeedsDisplayInRect() converts FloatRect to IntRect erroneously
https://bugs.webkit.org/show_bug.cgi?id=179476

Reviewed by Žan Doberšek.

Convert the passed FloatRect into an IntRect using enclosingIntRect(), so we are guaranteed that
the rectangle to paint fits into the buffer that the backingStore will allocate.

No behaviour change.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::setNeedsDisplayInRect):

2017-12-18 Zalan Bujtas <zalan@apple.com>

[SVG] Detach list wrappers before resetting the base value.
Expand Down
Expand Up @@ -532,7 +532,7 @@ void CoordinatedGraphicsLayer::setNeedsDisplay()
void CoordinatedGraphicsLayer::setNeedsDisplayInRect(const FloatRect& rect, ShouldClipToLayer)
{
if (m_mainBackingStore)
m_mainBackingStore->invalidate(IntRect(rect));
m_mainBackingStore->invalidate(enclosingIntRect(rect));

didChangeLayerState();

Expand Down

0 comments on commit 3b54132

Please sign in to comment.