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

Issue 9008054: Merge 102392 - Line breaks are lost when pasted into textarea text starting with a blank line set... (Closed)

Created:
8 years, 11 months ago by rniwa-cr
Modified:
8 years, 11 months ago
Reviewers:
rniwa-cr
CC:
chromium-reviews
Base URL:
http://svn.webkit.org/repository/webkit/branches/chromium/912/
Visibility:
Public.

Description

Merge 102392 - Line breaks are lost when pasted into textarea text starting with a blank line set while textarea is hidden https://bugs.webkit.org/show_bug.cgi?id=74126 Reviewed by Tony Chang. The bug was caused by the code that generated text out of pre-rendered text was generating div's inside the fragment pasted into textarea even though serialization algorithm in textarea doesn't handle block elements. Fixed the bug by special-casing this in createFragmentFromText. In the long run, we should really get rid of this whole pre-rendering trick. * editing/markup.cpp: (WebCore::createFragmentFromText): Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103989

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
A + LayoutTests/editing/input/paste-linebreak-into-initially-hidden-textarea.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/editing/input/paste-linebreak-into-initially-hidden-textarea-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/WebCore/editing/markup.cpp View 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
rniwa-cr
8 years, 11 months ago (2012-01-04 00:44:30 UTC) #1

          

Powered by Google App Engine
This is Rietveld 408576698