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

Issue 596773002: Re-attach plugin renderers in the standard way. (Closed)

Created:
6 years, 3 months ago by rune
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Re-attach plugin renderers in the standard way. When embedded content changes its source or type, it potential needs to change its renderer. That was done by reattaching the renderer using a combination of SubtreeStyleChange plus an explicit reattach in a custom willRecalcStyle callback. This CL uses a standard lazy reattach instead. Three svg tests changed their expected repaint rectangles due to the following reason: The reattach in willRecalcStyle did not re-attach any whitespace siblings like the standard reattach does (certainly wrong, but I don't know if it actually is observable as a display property change is necessary to affect the whitespace renderers afaik). Moving to standard reattach makes reattachment of a whitespace sibling do paint invalidation for the closest block ancestor. It's possible that we can improve whitespace re-attachment by: 1. Not invalidate block containers for whitespace renderers (will they ever render anything?) 2. Detect if we need to reattach whitespace siblings before we do the actual reattachment. R=esprehn@chromim.org,leviw@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182868

Patch Set 1 #

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -15 lines) Patch
M LayoutTests/svg/as-object/embedded-svg-size-changes-no-layout-triggers-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/as-object/nested-embedded-svg-size-changes-no-layout-triggers-1-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/as-object/nested-embedded-svg-size-changes-no-layout-triggers-2-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLObjectElement.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.h View 2 chunks +1 line, -1 line 0 comments Download
M Source/core/html/HTMLPlugInElement.cpp View 1 4 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
rune
PTAL
6 years, 3 months ago (2014-09-23 12:09:33 UTC) #1
rune
6 years, 2 months ago (2014-09-26 11:35:43 UTC) #2
rune
pling
6 years, 2 months ago (2014-09-29 17:25:05 UTC) #3
leviw_travelin_and_unemployed
Great. LGTM.
6 years, 2 months ago (2014-09-29 18:55:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596773002/1
6 years, 2 months ago (2014-09-29 19:36:44 UTC) #6
commit-bot: I haz the power
Failed to apply patch for Source/core/html/HTMLObjectElement.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-09-29 19:37:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596773002/20001
6 years, 2 months ago (2014-09-29 19:48:03 UTC) #10
esprehn
lgtm This is how I feel about this patch: http://i.imgur.com/EWNQmzd.gif
6 years, 2 months ago (2014-09-29 20:48:46 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 22:07:14 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 182868

Powered by Google App Engine
This is Rietveld 408576698