-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruby: Secure text height even if ruby base is empty
New behavior matches to Firefox. Implementation: Layout(NG)RubyBase is always created just after a Layout(NG)RubyRun is created, by calling LayoutRubyRun::RubyBaseSafe(). Set |-internal-empty-line-height:fabricated| to keep one line height and put a ruby annotation on it. - RubyBase existence check does not make sense any longer. Code like |if (HasRubyBase())...| should be |if (RubyBase()->FirstChild()) ...|. - We need some changes in order to avoid removing empty RubyBase. Test: * ruby-base-different-size.html: It passed accidentally. It fails now due to a wrong base:annotation matching. Bug: 847274 Change-Id: I46711c1433e9e154fc75346d4c40acf4c2bcaa02 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3636540 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001906}
- Loading branch information
1 parent
e5dfc67
commit 12434db
Showing
13 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+9 Bytes
(100%)
.../web_tests/flag-specific/disable-layout-ng/fast/ruby/ruby-empty-rt-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+41 Bytes
(100%)
third_party/blink/web_tests/platform/linux/fast/ruby/ruby-empty-rt-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-10.4 KB
...ts/platform/mac-mac10.12/fast/css/bidi-override-in-anonymous-block-expected.png
Binary file not shown.
Binary file modified
BIN
+15 Bytes
(100%)
...arty/blink/web_tests/platform/mac-mac10.12/fast/ruby/ruby-empty-rt-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
...k/web_tests/platform/mac/fast/css/bidi-override-in-anonymous-block-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+45 Bytes
(100%)
third_party/blink/web_tests/platform/mac/fast/ruby/ruby-empty-rt-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+18 Bytes
(100%)
third_party/blink/web_tests/platform/win/fast/ruby/ruby-empty-rt-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.