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

Issue 2109073002: Make Text::updateLayoutTextObject() to handle first-letter pseudo element correctly (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Text::updateLayoutTextObject() to update first-letter pseudo element related layout tree correctly This patch makes |Text::updateTextLayoutObject()| to reattach layout object for |Text| node when it is part of first-letter when contents of |Text| node is changed. Before this patch, we change |LayoutTextFragment| directly and leaves original first letter part event if |Text| node no more to serve first-letter part, e.g. change to "a" (first-letter part), to " " (a space isn't first-letter part). This patch covers more cases than crrev.com/380116, which covers text change to make no first-letter pseudo element. BUG=619379 TEST=webkit_unit_tests --gtest_filter=TextTest.SetDataToChangeFirstLetterTextNode Committed: https://crrev.com/1823f9957dd146fd14cec6ec8c549364fbc4fbfd Cr-Commit-Position: refs/heads/master@{#402775}

Patch Set 1 : 2016-06-29T15:54:22 #

Total comments: 2

Patch Set 2 : 2016-06-29T17:39:07 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M third_party/WebKit/Source/core/dom/Text.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TextTest.cpp View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
yosin_UTC9
PTAL
4 years, 5 months ago (2016-06-29 07:37:59 UTC) #4
tkent
https://codereview.chromium.org/2109073002/diff/1/third_party/WebKit/Source/core/dom/Text.cpp File third_party/WebKit/Source/core/dom/Text.cpp (right): https://codereview.chromium.org/2109073002/diff/1/third_party/WebKit/Source/core/dom/Text.cpp#newcode418 third_party/WebKit/Source/core/dom/Text.cpp:418: if (!toLayoutTextFragment(textLayoutObject)->firstLetterPseudoElement()) { The new code is equivalent to ...
4 years, 5 months ago (2016-06-29 08:27:38 UTC) #5
yosin_UTC9
PTAL https://codereview.chromium.org/2109073002/diff/1/third_party/WebKit/Source/core/dom/Text.cpp File third_party/WebKit/Source/core/dom/Text.cpp (right): https://codereview.chromium.org/2109073002/diff/1/third_party/WebKit/Source/core/dom/Text.cpp#newcode418 third_party/WebKit/Source/core/dom/Text.cpp:418: if (!toLayoutTextFragment(textLayoutObject)->firstLetterPseudoElement()) { On 2016/06/29 at 08:27:38, tkent ...
4 years, 5 months ago (2016-06-29 08:41:10 UTC) #6
tkent
lgtm
4 years, 5 months ago (2016-06-29 08:44:49 UTC) #7
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/2109073002/20001
4 years, 5 months ago (2016-06-29 09:14:55 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-06-29 11:09:59 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 11:12:09 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1823f9957dd146fd14cec6ec8c549364fbc4fbfd
Cr-Commit-Position: refs/heads/master@{#402775}

Powered by Google App Engine
This is Rietveld 408576698