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

Issue 58373002: Whitespace only text nodes need to be reattached when their siblings are reattached (Closed)

Created:
7 years, 1 month ago by leviw_travelin_and_unemployed
Modified:
7 years, 1 month ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, mkwst+watchlist_chromium.org
Visibility:
Public.

Description

Whitespace only text nodes need to be reattached when their siblings are reattached When reversing the style loop, we changed the way whitespace only text nodes are handled by deferring their processing until later in an attempt to have consistent whitespace text renderers in our layout test expectations. I also disabled a whitespace reattach step because this change in behavior masked any bugs from showing up by doing so in our LayoutTests. Re-adding the whitespace reattachment now that we have a test that breaks without it. It also changes some random test expectations by adding whitespace renderers. BUG=313327 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161389

Patch Set 1 #

Patch Set 2 : Fixing reattach logic and killing WhitespaceChildList. Will probably need some updated mac expectat… #

Total comments: 1

Patch Set 3 : Updated to ToT #

Patch Set 4 : Fixing test expectations #

Patch Set 5 : Sigh... trybots!! #

Patch Set 6 : Updated js-test include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -349 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M LayoutTests/compositing/overflow/do-not-repaint-if-scrolling-composited-layers-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-auto-margins-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt View 1 1 chunk +3 lines, -4 lines 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-border-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-margins-auto-size-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-margins-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-orientations-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-overflow-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flex-flow-padding-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/flexbox-ignore-firstLetter-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/inline-flexbox-ignore-firstLine-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/css3/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt View 1 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/editing/execCommand/outdent-break-with-style-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/editing/selection/focus-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/editing/style/remove-underline-after-paragraph-expected.txt View 1 chunk +28 lines, -28 lines 0 comments Download
M LayoutTests/editing/style/remove-underline-after-paragraph-in-bold-expected.txt View 1 chunk +28 lines, -28 lines 0 comments Download
M LayoutTests/editing/style/typing-style-003-expected.txt View 1 chunk +18 lines, -18 lines 0 comments Download
M LayoutTests/editing/style/underline-expected.txt View 1 chunk +19 lines, -19 lines 0 comments Download
M LayoutTests/fast/block/float/intruding-float-not-removed-writing-mode-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc.html View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/collapsed-whitespace-reattach-in-style-recalc-expected.txt View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/import-style-update-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/search-shadow-host-crash-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/dynamic/inline-to-block-crash-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/events/input-element-display-none-in-dragleave-crash-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/flexbox/intrinsic-min-width-applies-with-fixed-width-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/forms/select-listbox-focus-displaynone-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/frames/repaint-display-none-crash-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/fast/inline/inline-with-empty-inline-children-expected.txt View 1 1 chunk +3 lines, -4 lines 0 comments Download
M LayoutTests/fast/inline/out-of-flow-objects-and-whitespace-after-empty-inline-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/repaint/text-in-relative-positioned-inline-expected.png View 1 Binary file 0 comments Download
M LayoutTests/fast/repaint/text-in-relative-positioned-inline-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/replaced/computed-image-width-with-percent-height-and-fixed-ancestor-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/replaced/computed-image-width-with-percent-height-and-fixed-ancestor-vertical-lr-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/replaced/percentage-height-with-dynamic-container-height-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/replaced/preferred-widths-expected.txt View 1 1 chunk +8 lines, -9 lines 0 comments Download
M LayoutTests/fast/table/min-max-width-preferred-size-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fullscreen/full-screen-fixed-pos-parent-expected.png View 1 Binary file 0 comments Download
M LayoutTests/fullscreen/full-screen-fixed-pos-parent-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/inspector/elements/edit-dom-actions-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/linux/editing/selection/vertical-rl-ltr-extend-line-backward-wrap-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/linux/editing/selection/vertical-rl-ltr-extend-line-forward-wrap-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/win/editing/deleting/delete-block-merge-contents-001-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/deleting/delete-block-merge-contents-019-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/deleting/delete-block-merge-contents-020-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/inserting/editable-html-element-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/inserting/editing-empty-divs-expected.txt View 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/pasteboard/4989774-expected.txt View 1 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/win/editing/pasteboard/copy-standalone-image-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/selection/4983858-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/selection/drag-to-contenteditable-iframe-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/editing/style/remove-underline-across-paragraph-expected.txt View 1 chunk +28 lines, -28 lines 0 comments Download
M LayoutTests/platform/win/editing/style/remove-underline-across-paragraph-in-bold-expected.txt View 1 chunk +28 lines, -28 lines 0 comments Download
M LayoutTests/platform/win/editing/style/remove-underline-expected.txt View 1 chunk +20 lines, -20 lines 0 comments Download
M LayoutTests/platform/win/editing/style/remove-underline-from-stylesheet-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/win/editing/style/remove-underline-in-bold-expected.txt View 1 chunk +20 lines, -20 lines 0 comments Download
M LayoutTests/platform/win/fast/body-propagation/background-color/004-xhtml-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/fast/body-propagation/background-image/004-xhtml-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/platform/win/fast/dynamic/move-node-with-selection-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/platform/win/fast/html/details-add-child-2-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/win/fast/html/details-remove-child-2-expected.txt View 1 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/win/fast/inline/positionedLifetime-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 2 chunks +5 lines, -12 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/WhitespaceChildList.h View 1 1 chunk +0 lines, -71 lines 0 comments Download
M Source/core/dom/shadow/ShadowRoot.cpp View 1 2 2 chunks +8 lines, -13 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
leviw_travelin_and_unemployed
The optimization to remove the whitespace node from the WhitespaceChildList when it's being reattached is ...
7 years, 1 month ago (2013-11-04 20:28:10 UTC) #1
leviw_travelin_and_unemployed
Damn, there's a legitimate repaint failure here... looking into it.
7 years, 1 month ago (2013-11-04 21:11:30 UTC) #2
esprehn
On 2013/11/04 20:28:10, Levi wrote: > The optimization to remove the whitespace node from the ...
7 years, 1 month ago (2013-11-04 21:12:24 UTC) #3
leviw_travelin_and_unemployed
On 2013/11/04 21:12:24, esprehn wrote: > On 2013/11/04 20:28:10, Levi wrote: > > The optimization ...
7 years, 1 month ago (2013-11-04 21:20:31 UTC) #4
leviw_travelin_and_unemployed
On 2013/11/04 21:20:31, Levi wrote: > On 2013/11/04 21:12:24, esprehn wrote: > > On 2013/11/04 ...
7 years, 1 month ago (2013-11-04 22:37:06 UTC) #5
leviw_travelin_and_unemployed
On 2013/11/04 22:37:06, Levi wrote: > On 2013/11/04 21:20:31, Levi wrote: > > On 2013/11/04 ...
7 years, 1 month ago (2013-11-04 23:32:04 UTC) #6
leviw_travelin_and_unemployed
PTAL. https://codereview.chromium.org/58373002/diff/100001/Source/core/dom/Node.cpp File Source/core/dom/Node.cpp (right): https://codereview.chromium.org/58373002/diff/100001/Source/core/dom/Node.cpp#newcode1010 Source/core/dom/Node.cpp:1010: sibling->reattach(); The previous version wouldn't reattach whitespace nodes ...
7 years, 1 month ago (2013-11-04 23:43:09 UTC) #7
esprehn
Woah, like a boss. LGTM
7 years, 1 month ago (2013-11-05 00:33:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leviw@chromium.org/58373002/430001
7 years, 1 month ago (2013-11-05 21:37:32 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-05 22:56:27 UTC) #10
Message was sent while issue was closed.
Change committed as 161389

Powered by Google App Engine
This is Rietveld 408576698