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

Issue 853903002: Render string sequences of more than 64k characters. (Closed)

Created:
5 years, 11 months ago by Daniel Bratell
Modified:
5 years, 11 months ago
Reviewers:
eae
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, leviw+bidiwatch_chromium.org, Dominik Röttsches, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Render string sequences of more than 64k characters. InlineBox can only handle sequences of text that fits in an unsigned short and while that is normally not a problem, it can be a problem for someone trying to upload a long chunk of data in an <input> field. <input> uses normal text layout to render the text so it gets the same limitations as document text. The symptoms of this overflow is typically missing text. This fixes the problem by splitting BidiRun objects that would have referred to too-long sequences of characters into multiple BidiRun objects. BUG=155241, 448424, 448425 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188548

Patch Set 1 #

Patch Set 2 : Fixed tests. #

Total comments: 4

Patch Set 3 : Documentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -6 lines) Patch
A LayoutTests/fast/forms/long-text-in-input.html View 1 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/long-text-in-input-expected.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/long-word.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/long-word-expected.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/wide-preformatted.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/wide-preformatted-expected.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/rendering/InlineIterator.h View 1 2 1 chunk +18 lines, -4 lines 0 comments Download
M Source/platform/text/BidiResolver.h View 1 2 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Daniel Bratell
eae, can you take a look at this? The main motivation is to fix the ...
5 years, 11 months ago (2015-01-15 16:48:26 UTC) #2
eae
https://codereview.chromium.org/853903002/diff/20001/Source/core/rendering/InlineIterator.h File Source/core/rendering/InlineIterator.h (right): https://codereview.chromium.org/853903002/diff/20001/Source/core/rendering/InlineIterator.h#newcode627 Source/core/rendering/InlineIterator.h:627: bool addEmptyRun = (end == start); The general approach ...
5 years, 11 months ago (2015-01-15 20:07:07 UTC) #3
Daniel Bratell
Added some documentation. Please take a new look! https://codereview.chromium.org/853903002/diff/20001/Source/core/rendering/InlineIterator.h File Source/core/rendering/InlineIterator.h (right): https://codereview.chromium.org/853903002/diff/20001/Source/core/rendering/InlineIterator.h#newcode627 Source/core/rendering/InlineIterator.h:627: bool ...
5 years, 11 months ago (2015-01-16 13:47:32 UTC) #4
eae
LGTM
5 years, 11 months ago (2015-01-16 16:08:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/853903002/40001
5 years, 11 months ago (2015-01-16 16:13:31 UTC) #7
commit-bot: I haz the power
5 years, 11 months ago (2015-01-16 21:59:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188548

Powered by Google App Engine
This is Rietveld 408576698