Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Issue 214053003: Don't use stale compositing state in LocalFrame::nodeImage (Closed)

Created:
6 years, 9 months ago by pdr.
Modified:
6 years, 9 months ago
Reviewers:
ojan, abarth-chromium
CC:
blink-reviews
Visibility:
Public.

Description

Don't use stale compositing state in LocalFrame::nodeImage This patch fixes a compositor chicken and egg bug in LocalFrame::nodeImage where stale compositor state was read through setBaseBackgroundColor. An updateLayoutAndStyleForPainting call has been moved before setBaseBackgroundColor in nodeImage. Additionally, two unnecessary protector RefPtrs have been removed because the callers already ref'ed the objects. The Node RefPtr is ref'ed by Clipboard, the nodeImage() caller. The LocalFrame RefPtr is ref'ed by DragController::doSystemDrag. As a cleanup, LocalFrame::nodeImage has been changed to take a reference since the node cannot be null. BUG=354373 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170135

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -14 lines) Patch
A LayoutTests/compositing/drag-opacity-crash.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/compositing/drag-opacity-crash-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/clipboard/Clipboard.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/frame/LocalFrame.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 chunk +7 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
pdr.
6 years, 9 months ago (2014-03-27 03:55:10 UTC) #1
abarth-chromium
lgtm
6 years, 9 months ago (2014-03-27 04:11:58 UTC) #2
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 9 months ago (2014-03-27 04:12:53 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/214053003/1
6 years, 9 months ago (2014-03-27 04:12:56 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 04:42:30 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 9 months ago (2014-03-27 04:42:31 UTC) #6
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 9 months ago (2014-03-27 04:44:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/214053003/1
6 years, 9 months ago (2014-03-27 04:44:39 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 05:17:13 UTC) #9
Message was sent while issue was closed.
Change committed as 170135

Powered by Google App Engine
This is Rietveld 408576698