Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Dispel the myth that enclosingLayer can return zero
According from the commit messages of previous commit, enclosingLayer() cannot be nullptr, but it removed a check for container() returning nullptr actually. We need to check nullptr before using it in LayoutObject::ComputeLayerHitTestRects(). This patch is re-organizing the existing conditions to remove potential risk factors. Original patch = https://codereview.chromium.org/215843002 BUG=752371 Change-Id: I29a1d2d98f7daa200bf3f001e430d8e3aa9f38f3 Reviewed-on: https://chromium-review.googlesource.com/587691 Reviewed-by: Stephen Chenney <[email protected]> Commit-Queue: Stephen Chenney <[email protected]> Cr-Commit-Position: refs/heads/master@{#495222}
- Loading branch information