DescriptionMerge 145954 "TextIterator emits LF for a br element inside an e..."
> TextIterator emits LF for a br element inside an empty input element
> https://bugs.webkit.org/show_bug.cgi?id=112275
>
> Patch by Aurimas Liutikas <aurimas@chromium.org> on 2013-03-15
> Reviewed by Ryosuke Niwa.
>
> Source/WebCore:
>
> Adding a check to avoid emiting LF for br elements inside a shadow tree
> of an input element.
>
> Test: editing/text-iterator/basic-iteration.html
> editing/text-iterator/basic-iteration-shadowdom.html
>
> * editing/TextIterator.cpp:
> (WebCore::shouldEmitNewlineForNode):
> (WebCore::TextIterator::handleNonTextNode):
> (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
> (WebCore::SimplifiedBackwardsTextIterator::handleNonTextNode):
> (WebCore::SimplifiedBackwardsTextIterator::exitNode):
> * editing/TextIterator.h:
> (SimplifiedBackwardsTextIterator):
>
> LayoutTests:
>
> * editing/text-iterator/basic-iteration-expected.txt: Extended to add two more cases.
> * editing/text-iterator/basic-iteration-shadowdom-expected.txt: Added.
> * editing/text-iterator/basic-iteration-shadowdom.html: Added.
> * editing/text-iterator/script-tests/basic-iteration.js: Extended to add two mroe cases.
> * platform/mac/TestExpectations:
TBR=commit-queue@webkit.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146099
Patch Set 1 #
Created: 7 years, 9 months ago
(Patch set is too large to download)
Messages
Total messages: 2 (0 generated)
|