Add null-check to CSSParserContext::ReportLayoutAnimationsViolationIfNeeded
Previously Document was an instance of ExecutionContext. |document_| not null is equivalent to ExecutionContext not null. However, after recent migration of ExecutionContext to DomWindow, this assumption no longer holds. This CL adds null-check on |document_->GetExecutionContext()| to avoid deref nullptr. Bug: 1069848 Change-Id: Ifadc47b889bf5cd5fc3975b511c92d1dda7d4205 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2149317Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Commit-Queue: Charlie Hu <chenleihu@google.com> Cr-Commit-Position: refs/heads/master@{#759247}
Showing
Please register or sign in to comment