Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[LayoutNG] Fix incorrect rounding in ShapingLineBreaker" #19041

Merged
merged 1 commit into from Sep 13, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

This reverts commit a4d21f7f7faa39ce99f96b81996b6ece702f501e.

Reason for revert: This is likely breaking

  • external/wpt/css/css-multicol/multicol-width-ch-001.xht
  • css2.1/t1602-c546-txt-align-00-b.html
  • external/wpt/css/css-text/white-space/trailing-space-align-start.tentative.html

Original change's description:

[LayoutNG] Fix incorrect rounding in ShapingLineBreaker

This patch fixes the rounding the end position to the same
direction as the rounding the start position. Before this
change, the end position was rounded to the line-end
direction. This may have resulted in slightly larger
available space than the given one.

Although the error is slight, such an error can cause a large
visual differences because of an optimization. |NGLineBreaker|
determines the overflow by comparing the result width to the
available width, and if overflow occurs, it assumes that it
cannot break the result further when it tries to rewind.

Bug: 1002442
Change-Id: Iebee80117c9930eade029c45c561236b8916981a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797954
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696262}

TBR=eae@chromium.org,kojii@chromium.org,drott@chromium.org

Change-Id: Ie9255f9bfc01427550d58d92135b4ce25db27583
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1002442
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1801769
Reviewed-by: Ioana Pandele <ioanap@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696316}

This reverts commit a4d21f7f7faa39ce99f96b81996b6ece702f501e.

Reason for revert: This is likely breaking
- external/wpt/css/css-multicol/multicol-width-ch-001.xht
- css2.1/t1602-c546-txt-align-00-b.html
- external/wpt/css/css-text/white-space/trailing-space-align-start.tentative.html

Original change's description:
> [LayoutNG] Fix incorrect rounding in ShapingLineBreaker
>
> This patch fixes the rounding the end position to the same
> direction as the rounding the start position. Before this
> change, the end position was rounded to the line-end
> direction. This may have resulted in slightly larger
> available space than the given one.
>
> Although the error is slight, such an error can cause a large
> visual differences because of an optimization. |NGLineBreaker|
> determines the overflow by comparing the result width to the
> available width, and if overflow occurs, it assumes that it
> cannot break the result further when it tries to rewind.
>
> Bug: 1002442
> Change-Id: Iebee80117c9930eade029c45c561236b8916981a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797954
> Reviewed-by: Emil A Eklund <eae@chromium.org>
> Commit-Queue: Koji Ishii <kojii@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#696262}

TBR=eae@chromium.org,kojii@chromium.org,drott@chromium.org

Change-Id: Ie9255f9bfc01427550d58d92135b4ce25db27583
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1002442
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1801769
Reviewed-by: Ioana Pandele <ioanap@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696316}
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit b4a87fc into master Sep 13, 2019
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-bd28672f65 branch September 13, 2019 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants