Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(3)

Issue 1200263004: Should not crash when background image a display:none presents on the root (Closed)

Created:
4 years, 10 months ago by trchen
Modified:
4 years, 10 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Should not crash when background image a display:none presents on the root Since my previous background refactoring CL, BoxPainter:: calculateBackgroundImageGeometry() assumes that when it is called on the LayoutView, the root element must have a box. However the background obscuration code in LayoutBox::computeBackgroundIsKnownToBeObscured() was not updated at the same time. This CL corrects the early out condition to make sure calculateBackgroundImageGeometry() is only called with a valid box. BUG=501560 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197789

Patch Set 1 #

Total comments: 2

Patch Set 2 : revise test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
A LayoutTests/fast/backgrounds/root-background-display-none-no-crash.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/layout/LayoutBox.cpp View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
trchen
One-line fix for a top crasher. PTAL, thanks! :)
4 years, 10 months ago (2015-06-24 01:59:21 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200263004/1
4 years, 10 months ago (2015-06-24 01:59:22 UTC) #4
pdr.
https://codereview.chromium.org/1200263004/diff/1/LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt File LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt (right): https://codereview.chromium.org/1200263004/diff/1/LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt#newcode2 LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt:2: html { This doesn't seem quite right. Did you ...
4 years, 10 months ago (2015-06-24 02:31:40 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/60484)
4 years, 10 months ago (2015-06-24 03:12:34 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200263004/20001
4 years, 10 months ago (2015-06-24 22:03:55 UTC) #10
trchen
https://codereview.chromium.org/1200263004/diff/1/LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt File LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt (right): https://codereview.chromium.org/1200263004/diff/1/LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt#newcode2 LayoutTests/fast/backgrounds/root-background-display-none-no-crash-expected.txt:2: html { On 2015/06/24 02:31:40, pdr wrote: > This ...
4 years, 10 months ago (2015-06-24 22:05:52 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-24 23:24:13 UTC) #13
pdr.
On 2015/06/24 at 23:24:13, commit-bot wrote: > Dry run: This issue passed the CQ dry ...
4 years, 10 months ago (2015-06-25 01:11:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1200263004/20001
4 years, 10 months ago (2015-06-25 01:19:00 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2015-06-25 01:22:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197789

Powered by Google App Engine
This is Rietveld 408576698