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

Issue 521603002: Do not use SubtreeStyleChange for reattachment of plugin renderers. (Closed)

Created:
6 years, 3 months ago by rune
Modified:
6 years, 2 months ago
Reviewers:
esprehn
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

Do not use SubtreeStyleChange for reattachment of plugin renderers. The essence of this CL is to use LocalStyleChange instead of SubtreeStyleChange to trigger style recalc of the embedded content renderer. This is done to avoid sibling subtree recalculations when the determined embedded content type changes. The setNeedsStyleRecalc calls in question are related to a hack to trigger re-attachment of embedded content renderers. To make that clear the setNeedsStyleRecalc has been wrapped in a more descriptive method. R=esprehn@chromium.org BUG=408957

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -3 lines) Patch
A LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc.html View 1 chunk +31 lines, -0 lines 1 comment Download
A LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc-expected.txt View 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/html/HTMLObjectElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.cpp View 2 chunks +29 lines, -1 line 3 comments Download

Messages

Total messages: 6 (0 generated)
rune
6 years, 3 months ago (2014-08-29 11:41:26 UTC) #1
rune
PTAL
6 years, 3 months ago (2014-09-16 18:53:18 UTC) #2
esprehn
Sigh, so many hacks. I guess this is okay, lgtm. Would be nice if we ...
6 years, 3 months ago (2014-09-19 04:15:08 UTC) #3
rune
https://codereview.chromium.org/521603002/diff/1/Source/core/html/HTMLPlugInElement.cpp File Source/core/html/HTMLPlugInElement.cpp (right): https://codereview.chromium.org/521603002/diff/1/Source/core/html/HTMLPlugInElement.cpp#newcode264 Source/core/html/HTMLPlugInElement.cpp:264: // reattachWhitespaceSiblings() will be called after a reattach that ...
6 years, 3 months ago (2014-09-19 11:22:00 UTC) #4
rune
On 2014/09/19 11:22:00, rune wrote: > I'll try remove this hack completely in a different ...
6 years, 3 months ago (2014-09-23 11:42:27 UTC) #5
rune
6 years, 2 months ago (2014-09-29 20:39:51 UTC) #6
Message was sent while issue was closed.
On 2014/09/23 11:42:27, rune wrote:
> On 2014/09/19 11:22:00, rune wrote:
> 
> > I'll try remove this hack completely in a different CL and see what you
think.
> 
> Here:
> 
> https://codereview.chromium.org/596773002/

Closed this one as the proper re-attach is about to land.

Powered by Google App Engine
This is Rietveld 408576698