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

Issue 369893006: Allow HTMLPlugInElement to host UA shadow DOM. (Closed)

Created:
6 years, 5 months ago by jbroman
Modified:
6 years, 4 months ago
CC:
aandrey+blink_chromium.org, abarth-chromium, apavlov+blink_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-rendering, caseq+blink_chromium.org, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, eustas+blink_chromium.org, jchaffraix+rendering, leviw+renderwatch, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, paulirish+reviews_chromium.org, pdr., pfeldman+blink_chromium.org, rwlbuis, rune+blink, sergeyv+blink_chromium.org, sof, vsevik+blink_chromium.org, yurys+blink_chromium.org, zoltan1
Project:
blink
Visibility:
Public.

Description

Allow HTMLPlugInElement to host UA shadow DOM. When in "use placeholder content" mode, the element will create an ordinary RenderBlockFlow as its renderer, and so will be laid out as a block or inline-block. A rule was added to StyleAdjuster to ensure that the default width/height rules for replaced elements are applied in this case. Since plugins have no intrinsic ratio, this should be equivalent to mapping 'auto' to the appropriate defaults. Finally, a hook in Internals was added to allow layout tests to trigger this mode, and two layout tests using this were added. BUG=364716 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180487

Patch Set 1 : #

Total comments: 6

Patch Set 2 : another approach #

Total comments: 6

Patch Set 3 : leviw comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -11 lines) Patch
A LayoutTests/fast/plugins/plugin-placeholder.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/plugins/plugin-placeholder-expected.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/plugins/plugin-placeholder-explicit-size.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/plugins/plugin-placeholder-explicit-size-expected.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAppletElement.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/html/HTMLPlugInElement.cpp View 1 4 chunks +14 lines, -1 line 0 comments Download
M Source/core/rendering/RenderReplaced.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderReplaced.cpp View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/rendering/RenderVideo.cpp View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jbroman
This is a little simpler than having a separate renderer, I think. This permits UA ...
6 years, 5 months ago (2014-07-04 14:05:47 UTC) #1
jbroman
+reviewers
6 years, 5 months ago (2014-07-04 14:07:41 UTC) #2
esprehn
https://codereview.chromium.org/369893006/diff/20001/Source/core/rendering/RenderEmbeddedObject.cpp File Source/core/rendering/RenderEmbeddedObject.cpp (right): https://codereview.chromium.org/369893006/diff/20001/Source/core/rendering/RenderEmbeddedObject.cpp#newcode123 Source/core/rendering/RenderEmbeddedObject.cpp:123: // (e.g. by setting 'position: relative' in its style) ...
6 years, 5 months ago (2014-07-06 09:15:35 UTC) #3
jbroman
Not quite sure what more elegant approach you had in mind; can you elaborate? https://codereview.chromium.org/369893006/diff/20001/Source/core/rendering/RenderEmbeddedObject.cpp ...
6 years, 5 months ago (2014-07-07 20:33:04 UTC) #4
esprehn
On 2014/07/07 at 20:33:04, jbroman wrote: > Not quite sure what more elegant approach you ...
6 years, 5 months ago (2014-07-14 08:50:39 UTC) #5
jbroman
On 2014/07/14 08:50:39, esprehn wrote: > Why don't we name RenderEmbeddedObject into a containing block? ...
6 years, 5 months ago (2014-07-24 18:48:25 UTC) #6
jbroman
ping
6 years, 4 months ago (2014-07-28 21:00:24 UTC) #7
leviw_travelin_and_unemployed
This seems reasonable to me, but I'll defer to esprehn for final approval. https://codereview.chromium.org/369893006/diff/40001/LayoutTests/fast/plugins/plugin-placeholder-expected.txt File ...
6 years, 4 months ago (2014-07-29 20:37:44 UTC) #8
jbroman
https://codereview.chromium.org/369893006/diff/40001/LayoutTests/fast/plugins/plugin-placeholder-expected.txt File LayoutTests/fast/plugins/plugin-placeholder-expected.txt (right): https://codereview.chromium.org/369893006/diff/40001/LayoutTests/fast/plugins/plugin-placeholder-expected.txt#newcode1 LayoutTests/fast/plugins/plugin-placeholder-expected.txt:1: layer at (0,0) size 800x600 On 2014/07/29 20:37:44, leviw ...
6 years, 4 months ago (2014-07-29 21:47:29 UTC) #9
esprehn
I'll make sure to take a look at this on Monday.
6 years, 4 months ago (2014-08-01 14:01:26 UTC) #10
jbroman
On 2014/08/01 14:01:26, esprehn wrote: > I'll make sure to take a look at this ...
6 years, 4 months ago (2014-08-12 14:16:42 UTC) #11
jbroman
On 2014/08/12 14:16:42, jbroman wrote: > On 2014/08/01 14:01:26, esprehn wrote: > > I'll make ...
6 years, 4 months ago (2014-08-18 13:19:26 UTC) #12
esprehn
lgtm
6 years, 4 months ago (2014-08-18 16:00:50 UTC) #13
jbroman
The CQ bit was checked by jbroman@chromium.org
6 years, 4 months ago (2014-08-18 16:51:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/369893006/60001
6 years, 4 months ago (2014-08-18 16:51:27 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-18 16:51:38 UTC) #16
commit-bot: I haz the power
Failed to apply patch for Source/core/testing/Internals.idl: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 4 months ago (2014-08-18 16:51:40 UTC) #17
jbroman
The CQ bit was checked by jbroman@chromium.org
6 years, 4 months ago (2014-08-18 18:29:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbroman@chromium.org/369893006/80001
6 years, 4 months ago (2014-08-18 18:29:15 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 19:36:08 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (80001) as 180487

Powered by Google App Engine
This is Rietveld 408576698