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

Issue 2752163003: Clear pseudoElement from ElementRareData when FirstLetterPseudoElement doesn't have a LayoutObject (Closed)

Created:
3 years, 9 months ago by nainar
Modified:
3 years, 8 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear pseudoElement from ElementRareData when FirstLetterPseudoElement doesn't have a LayoutObject This patch edits Element::rebuildPseudoElementLayoutTree() to make sure it mirrors Element::updatePseudoElement() called in Element::recaclStyle() by calling Element::updateFirstLetter() in the case the PseudoElement is firstLetter as is done in Element::updateFirstLetter() to ensure we don't call Element::retachLayoutTree() uncoditionally. Adds crash test and expectation as well. BUG=700655 Review-Url: https://codereview.chromium.org/2752163003 Cr-Original-Commit-Position: refs/heads/master@{#462373} Committed: https://chromium.googlesource.com/chromium/src/+/6d202487ff823def4672599f51e9f13880e6b877 Review-Url: https://codereview.chromium.org/2752163003 Cr-Commit-Position: refs/heads/master@{#462705} Committed: https://chromium.googlesource.com/chromium/src/+/9e923986fcf79015b0ff237c06207648f8606560

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change patch per discussion with esprehn@ #

Patch Set 3 : Made changes per esprehn's comments #

Patch Set 4 : Removing erroneous test #

Patch Set 5 : Change test to be testharness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/css/crash-in-attachFirstLetterTextLayoutObjects.html View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 46 (31 generated)
nainar
Clusterfuzz hates me but here as promised. A FIX!
3 years, 9 months ago (2017-03-16 04:12:05 UTC) #4
nainar
Elliott, Logging our conversation in case I forget by the time I am back. In ...
3 years, 9 months ago (2017-03-17 23:47:40 UTC) #7
nainar
Elliott, Made the changes we discussed ages ago. PTAL? Thanks!
3 years, 8 months ago (2017-04-05 22:08:09 UTC) #10
esprehn
lgtm https://codereview.chromium.org/2752163003/diff/1/third_party/WebKit/LayoutTests/fast/css/crash-in-attachFirstLetterTextLayoutObjects.html File third_party/WebKit/LayoutTests/fast/css/crash-in-attachFirstLetterTextLayoutObjects.html (right): https://codereview.chromium.org/2752163003/diff/1/third_party/WebKit/LayoutTests/fast/css/crash-in-attachFirstLetterTextLayoutObjects.html#newcode1 third_party/WebKit/LayoutTests/fast/css/crash-in-attachFirstLetterTextLayoutObjects.html:1: <style> Can we add a <!DOCTYPE html> https://codereview.chromium.org/2752163003/diff/1/third_party/WebKit/Source/core/dom/Element.cpp ...
3 years, 8 months ago (2017-04-06 00:08:59 UTC) #14
esprehn
btw do we need to merge this to M57? Crashing on stable would be bad. ...
3 years, 8 months ago (2017-04-06 00:09:12 UTC) #15
nainar
Made the changes you asked for. Also I landed my change after the M58 cutoff ...
3 years, 8 months ago (2017-04-06 00:20:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2752163003/60001
3 years, 8 months ago (2017-04-06 01:22:15 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/423326)
3 years, 8 months ago (2017-04-06 01:27:43 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2752163003/60001
3 years, 8 months ago (2017-04-06 05:56:35 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/6d202487ff823def4672599f51e9f13880e6b877
3 years, 8 months ago (2017-04-06 06:34:31 UTC) #34
foolip
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2802993002/ by foolip@chromium.org. ...
3 years, 8 months ago (2017-04-06 10:17:48 UTC) #35
nainar
Elliott, Changed the test to use testHarness. Should fix the issue. LMK what you think.
3 years, 8 months ago (2017-04-06 19:41:07 UTC) #37
esprehn
lgtm
3 years, 8 months ago (2017-04-07 00:02:21 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2752163003/80001
3 years, 8 months ago (2017-04-07 00:04:46 UTC) #43
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 00:24:57 UTC) #46
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9e923986fcf79015b0ff237c0620...

Powered by Google App Engine
This is Rietveld 408576698