commit | a1c0004ec1034fa715ded22620f3b7c7b3cef6d1 | [log] [tgz] |
---|---|---|
author | Stephen Chenney <schenney@chromium.org> | Tue Nov 14 03:35:08 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 14 03:35:08 2017 |
tree | 413714e6366510d3c2f6e7c3c2b1dd1b07094c81 | |
parent | 5936504bc0a644eeab1880a77199130e8c9f1a13 [diff] |
Avoid null Node pointers in theme painting code A recent change to reduce the dependence of theme code on layout objects changed painting code to take Node objects instead of LayoutObjects. However, Node can be null for anonymous layout objects, and the theme code crashes when accessing this null node in numerous places. As part of this patch, all of the uses of Node in the theme painting code were audited to identify potential null accesses. The sites affected have been changed to either check for null or take a Document as an argument to avoid the node access. R=eae@chromium.org BUG=782817,779377 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I409ea5f16f462d959cf2864b7019ca9ca0bf22c2 Reviewed-on: https://chromium-review.googlesource.com/764447 Reviewed-by: Emil A Eklund <eae@chromium.org> Commit-Queue: Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#516175}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .