Don't initiate a style recall while drawing text
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 01:26:39 +0000 (01:26 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 01:26:39 +0000 (01:26 +0000)
commit29cdc363c8077fec114fde1aa2bad842b6138389
tree779bb077e146ab6c16f5914134dc3e28a6b09ae1
parent83b1ffb7485130bff8606b360a6db7b5e8fd8798
Don't initiate a style recall while drawing text
https://bugs.webkit.org/show_bug.cgi?id=155618

Patch by Zalan Bujtas <zalan@apple.com> on 2016-03-17
Reviewed by Simon Fraser.

This patch ensures that we don't initiate a style recalc while in the middle of text drawing.

Source/WebCore:

Test: fast/canvas/crash-while-resizing-canvas.html

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::drawTextInternal):

LayoutTests:

* fast/canvas/crash-while-resizing-canvas-expected.txt: Added.
* fast/canvas/crash-while-resizing-canvas.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/crash-while-resizing-canvas-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/crash-while-resizing-canvas.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp