Commit 13205fef authored by ksakamoto's avatar ksakamoto Committed by Commit bot

Add a missing null check for FontFaceSet::document()

FontFaceSet::document() gets Document from getExecutionContext(),
so the returned value should be checked after r419951.

BUG=610176,649272
NOTRY=true

Review-Url: https://codereview.chromium.org/2364693005
Cr-Commit-Position: refs/heads/master@{#420591}
parent 73e5d0ee
......@@ -348,11 +348,13 @@ void FontFaceSet::fireDoneEventIfPossible()
return;
if (!shouldSignalReady())
return;
Document* d = document();
if (!d)
return;
// If the layout was invalidated in between when we thought layout
// was updated and when we're ready to fire the event, just wait
// until after the next layout before firing events.
Document* d = document();
if (!d->view() || d->view()->needsLayout())
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment