Clear ScratchBuffer::m_lastLayerSize when clearing the scratch buffer.
authorryumiel@company100.net <ryumiel@company100.net@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Dec 2013 21:39:23 +0000 (21:39 +0000)
committerryumiel@company100.net <ryumiel@company100.net@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Dec 2013 21:39:23 +0000 (21:39 +0000)
commitca598d2ca9bb6aa99b265eb411205ec0051d9213
tree00d7a1be4cb4e70f3b11ee7420f478dabc421e78
parenteb81fccb9239a0e8bbb978ac822cbf3547b7e433
Clear ScratchBuffer::m_lastLayerSize when clearing the scratch buffer.
https://bugs.webkit.org/show_bug.cgi?id=126150

Reviewed by Simon Fraser.

Since ScratchBuffer::clearScratchBuffer only clears m_lastRadius,
ShadowBlur doesn't draw shadow into the re-created scratch buffer if it
tries to draw shadow without blurRadius.

Clear m_lastLayerSize to empty is enought to ensure that there is no
drawn contents in the scratch buffer.

No new tests due to the flaky nature of reproducing the issue.

* platform/graphics/ShadowBlur.cpp:
(WebCore::ScratchBuffer::clearScratchBuffer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ShadowBlur.cpp