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

Issue 15652006: Let HTMLTablePartElement::findParentTable() about come across shadow boundary. (Closed)

Created:
7 years, 6 months ago by Hajime Morrita
Modified:
7 years, 6 months ago
Reviewers:
hayato
CC:
blink-reviews, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Let HTMLTablePartElement::findParentTable() about come across shadow boundary. Things like style figuring out <td> style need some tree traversal, which is this findParentTable() is for. Without this change, Any <table border> in host world doesn' affect <td> in shadow. BUG=234040 TEST=table-border.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151826

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added distribution test cases #

Patch Set 3 : Updated to use NodeRenderingTraversal #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -2 lines) Patch
A LayoutTests/fast/dom/shadow/table-border.html View 1 2 1 chunk +31 lines, -0 lines 2 comments Download
A LayoutTests/fast/dom/shadow/table-border-expected.html View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/dom/NodeRenderingTraversal.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTablePartElement.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Hajime Morrita
Hi, could you take a look?
7 years, 6 months ago (2013-06-03 07:04:58 UTC) #1
hayato
https://codereview.chromium.org/15652006/diff/1/Source/core/html/HTMLTablePartElement.cpp File Source/core/html/HTMLTablePartElement.cpp (right): https://codereview.chromium.org/15652006/diff/1/Source/core/html/HTMLTablePartElement.cpp#newcode87 Source/core/html/HTMLTablePartElement.cpp:87: ContainerNode* parent = parentOrShadowHostElement(); What about a node which ...
7 years, 6 months ago (2013-06-03 07:17:06 UTC) #2
Hajime Morrita
Good point. it won't get any style. Should we use the worker here? I'm not ...
7 years, 6 months ago (2013-06-03 08:24:37 UTC) #3
hayato
On 2013/06/03 08:24:37, morrita1 wrote: > Good point. it won't get any style. Should we ...
7 years, 6 months ago (2013-06-03 08:40:47 UTC) #4
Hajime Morrita
Turns out it works without the walker. I added tests for covering distribution cases.
7 years, 6 months ago (2013-06-03 08:57:06 UTC) #5
Hajime Morrita
No, these tests are too naive. Umm.
7 years, 6 months ago (2013-06-03 08:58:31 UTC) #6
Hajime Morrita
Revised to use NodeRenderingTraversal. I don't think this one has significant performance implication. It is ...
7 years, 6 months ago (2013-06-05 07:17:13 UTC) #7
hayato
lgtm https://codereview.chromium.org/15652006/diff/10001/LayoutTests/fast/dom/shadow/table-border.html File LayoutTests/fast/dom/shadow/table-border.html (right): https://codereview.chromium.org/15652006/diff/10001/LayoutTests/fast/dom/shadow/table-border.html#newcode16 LayoutTests/fast/dom/shadow/table-border.html:16: <div id="host4"> Could you include '<td>M</td>' here declaratively? ...
7 years, 6 months ago (2013-06-05 09:28:57 UTC) #8
Hajime Morrita
On 2013/06/05 09:28:57, hayato wrote: > lgtm > > https://codereview.chromium.org/15652006/diff/10001/LayoutTests/fast/dom/shadow/table-border.html > File LayoutTests/fast/dom/shadow/table-border.html (right): > ...
7 years, 6 months ago (2013-06-05 09:32:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/morrita@chromium.org/15652006/10001
7 years, 6 months ago (2013-06-05 09:32:55 UTC) #10
hayato
On 2013/06/05 09:32:45, morrita1 wrote: > On 2013/06/05 09:28:57, hayato wrote: > > lgtm > ...
7 years, 6 months ago (2013-06-05 10:46:55 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-05 11:09:04 UTC) #12
Message was sent while issue was closed.
Change committed as 151826

Powered by Google App Engine
This is Rietveld 408576698