Commit 96846c0c authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Null check for CSSGlobalRuleSet.

Presumably fixes UBSAN crasher. Seemingly so running locally with fuzzer
test case.

Bug: 904037
Change-Id: Ie5804e28835528e65caadbf43308260b961a92b7
Reviewed-on: https://chromium-review.googlesource.com/c/1358446Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613155}
parent b4144637
......@@ -529,7 +529,8 @@ void StyleEngine::ResetAuthorStyle(TreeScope& tree_scope) {
if (!scoped_resolver)
return;
global_rule_set_->MarkDirty();
if (global_rule_set_)
global_rule_set_->MarkDirty();
if (tree_scope.RootNode().IsDocumentNode()) {
scoped_resolver->ResetAuthorStyle();
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