iOS WebKit1: [LegacyTileLayer drawInContext:] should ensure it has web lock
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Jun 2015 19:18:30 +0000 (19:18 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Jun 2015 19:18:30 +0000 (19:18 +0000)
commit769ce2a34a4d5269561ea912e3da1311f55ced93
treeae19316c0d1ded49c2f36959ddd065034d1ac875
parent47fcee60b45992610884b3defdbbc07e1ee8f8b5
iOS WebKit1: [LegacyTileLayer drawInContext:] should ensure it has web lock
https://bugs.webkit.org/show_bug.cgi?id=146072
rdar://problem/21149759

Reviewed by Simon Fraser

There are some scenarios where we end up drawing without web lock due to client or system issues.
This can cause crashes.

* platform/ios/LegacyTileLayer.mm:
(-[LegacyTileLayer setNeedsDisplayInRect:]):
(-[LegacyTileLayer drawInContext:]):

    Ensure we have the web lock when called in main thread (even though we should have it already).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/ios/LegacyTileLayer.mm