Commit 4d0ac9c9 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Make NGFragmentItem::GetWritingMode() to work other than text

This patch changes |NGFragmentItem::GetWritingMode()| to work other than text
because it is independent from text and value of CSS property.

Note: This patch fixes 17 web_test crashes.

Bug: 982194
Change-Id: I9f5fdaddb12f3d88b50a1f6c87b026b505ce8ea7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943497
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720139}
parent 9d9ced36
...@@ -246,7 +246,6 @@ class CORE_EXPORT NGFragmentItem : public DisplayItemClient { ...@@ -246,7 +246,6 @@ class CORE_EXPORT NGFragmentItem : public DisplayItemClient {
} }
WritingMode GetWritingMode() const { WritingMode GetWritingMode() const {
DCHECK(Type() == kText || Type() == kGeneratedText) << this;
return Style().GetWritingMode(); return Style().GetWritingMode();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment