Commit 5101245f authored by Fernando Serboncini's avatar Fernando Serboncini Committed by Commit Bot

Make sure client exists before dispatching font invalidation

Bug: 988125
Change-Id: I989a74f5b30ccf9d9d4b5d3d00fdd56131dd5df5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1801226
Auto-Submit: Fernando Serboncini <fserb@chromium.org>
Reviewed-by: default avatarDominik Röttsches <drott@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Commit-Queue: Fernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697762}
parent 29271e84
......@@ -76,8 +76,11 @@ void CSSFontSelector::DispatchInvalidationCallbacks() {
HeapVector<Member<FontSelectorClient>> clients;
CopyToVector(clients_, clients);
for (auto& client : clients)
client->FontsNeedUpdate(this);
for (auto& client : clients) {
if (client) {
client->FontsNeedUpdate(this);
}
}
}
void CSSFontSelector::FontFaceInvalidated() {
......
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