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

Issue 1330233003: Revert of Avoid style clobbering in setCompositionFromExistingText. (Closed)

Created:
5 years, 3 months ago by Mike West
Modified:
5 years, 3 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, Changwan Ryu, dshwang, Seigo Nonaka, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Revert of Avoid style clobbering in setCompositionFromExistingText. (patchset #8 id:140001 of https://codereview.chromium.org/1325563002/ ) Reason for revert: This patch caused repeatable failures on WebKit Linux Leaks (starting at https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak/builds/14049). Verified locally by adding `--enable-leak-detection` to the test runner on my linux machine. Reverting this patch locally fixed the leaks. Original issue's description: > Avoid style clobbering in setCompositionFromExistingText. > > This patch extends compositions to be able to span multiple nodes. This involves > two main changes: first, compositions are switched to being stored as a Range, not > a Node plus two offsets. Second, the underline painting now uses DocumentMarkerController > (which is already multi-node) instead of a custom composition-specific path. > > As a result, we can remove the hack in setCompositionFromExistingText that clobbered > the text to shoehorn it into a single node, which would cause style loss. This > is now able to span the existing text regardless of how complicated it is. > > TEST=webkit_unit_tests --gtest_filter=DocumentMarkerControllerTest.UpdateRenderedRectsForComposition > TEST=webkit_unit_tests --gtest_filter=WebViewTest.SetCompositionFromExistingTextInRichText > BUG=488628 > > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201994 TBR=pdr@chromium.org,yosin@chromium.org,aelias@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=488628 Committed: https://crrev.com/5209cf506681777157fbcc4a980109e9ef246f1a git-svn-id: svn://svn.chromium.org/blink/trunk@202042 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -254 lines) Patch
M Source/core/core.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
A Source/core/editing/CompositionUnderlineRangeFilter.h View 1 chunk +82 lines, -0 lines 0 comments Download
A Source/core/editing/CompositionUnderlineRangeFilter.cpp View 1 chunk +39 lines, -0 lines 0 comments Download
A Source/core/editing/CompositionUnderlineRangeFilterTest.cpp View 1 chunk +88 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/editing/InputMethodController.h View 3 chunks +14 lines, -4 lines 0 comments Download
M Source/core/editing/InputMethodController.cpp View 12 chunks +73 lines, -87 lines 0 comments Download
M Source/core/editing/markers/DocumentMarker.h View 7 chunks +2 lines, -11 lines 0 comments Download
M Source/core/editing/markers/DocumentMarker.cpp View 6 chunks +4 lines, -69 lines 0 comments Download
M Source/core/editing/markers/DocumentMarkerController.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/editing/markers/DocumentMarkerController.cpp View 2 chunks +0 lines, -8 lines 0 comments Download
M Source/core/editing/markers/DocumentMarkerControllerTest.cpp View 3 chunks +0 lines, -28 lines 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 10 chunks +44 lines, -25 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 5 chunks +7 lines, -16 lines 0 comments Download
D Source/web/tests/data/content_editable_rich_text.html View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Mike West
Created Revert of Avoid style clobbering in setCompositionFromExistingText.
5 years, 3 months ago (2015-09-10 09:01:31 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1330233003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1330233003/1
5 years, 3 months ago (2015-09-10 09:01:38 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=202042
5 years, 3 months ago (2015-09-10 09:02:14 UTC) #3
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:08:57 UTC) #4
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5209cf506681777157fbcc4a980109e9ef246f1a

Powered by Google App Engine
This is Rietveld 408576698