Bug 1674753 [wpt PR 26358] - Fix a null pointer dereference in TextAreaIntrinsicBlockSize(), a=testonly

Automatic update from web-platform-tests
Fix a null pointer dereference in TextAreaIntrinsicBlockSize()

crrev.com/814173 accidentally changed a runtime
|inner_editor->GetLayoutBox()| check to a DCHECK though it can be
nullptr if content-visibility:auto is specified.

Bug: 1143620
Change-Id: I26a7f6cad906ef629ef0353bc0538cabbc1be620
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2513849
Auto-Submit: Kent Tamura <tkent@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823089}

--

wpt-commits: 9429cf82a611bcd563df2f672ac4362b518bb47f
wpt-pr: 26358
This commit is contained in:
Kent Tamura 2020-11-05 14:17:58 +00:00 коммит произвёл moz-wptsync-bot
Родитель 30edf8aca7
Коммит 62c403c4bb
1 изменённых файлов: 34 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,34 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<link rel="help" href="https://crbug.com/1143620">
<style>
input, select, textarea {
content-visibility: auto;
}
</style>
<input type="button">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="datetime">
<input type="datetime-local">
<input type="email">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="radio">
<input type="range">
<input type="reset">
<input type="search">
<input type="submit">
<input type="tel">
<input type="text">
<input type="time">
<input type="url">
<input type="week">
<select><option>Option1</option></select>
<select multiple><option>Option1</option></select>
<textarea></textarea>