commit | c0ee2ba26af18ceeb53bc21dca96ca548b5f185c | [log] [tgz] |
---|---|---|
author | Anders Hartvoll Ruud <andruud@chromium.org> | Fri Sep 21 09:53:03 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Sep 21 09:53:03 2018 |
tree | ca895626feb0fefbc7508ad952f6cb3ad9f0dd78 | |
parent | e2acbabcf55c13d6b97930d2f69ff7471893e732 [diff] |
Allow nullptr in Style[Non]InheritedVariables::SetVariable. This does not currently cause a crash, entirely because of luck. A value of nullptr is passed to SetVariable whenever an invalid var()-reference is used (for example), but it just so happens that needs_resolution_ is always true in this case, so it short circuits before attempting to de- reference 'value'. R=futhark@chromium.org Bug: 641877 Change-Id: I8b3776a58efb82b5deef74b50561d2ebfd57b817 Reviewed-on: https://chromium-review.googlesource.com/1235725 Commit-Queue: Anders Ruud <andruud@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#593136}
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 .