Commit f33caabf authored by Aleks Totic's avatar Aleks Totic Committed by Chromium LUCI CQ

[TablesNG] Fix baseline caching

Makes two tests pass
external/wpt/css/css-tables/tentative/baseline-td.html
fast/table/vertical-align-baseline-readjust.html

Change-Id: Idacd72be865474ca01fa3807e8e20a63f485d52a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2613551
Commit-Queue: Aleks Totic <atotic@chromium.org>
Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
Auto-Submit: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840851}
parent 3563e39f
......@@ -641,7 +641,11 @@ class CORE_EXPORT NGConstraintSpace final {
return bitfields_.AreInlineSizeConstraintsEqual(other.bitfields_);
}
bool AreBlockSizeConstraintsEqual(const NGConstraintSpace& other) const {
return bitfields_.AreBlockSizeConstraintsEqual(other.bitfields_);
if (!bitfields_.AreBlockSizeConstraintsEqual(other.bitfields_))
return false;
if (!HasRareData() && !other.HasRareData())
return true;
return TableCellAlignmentBaseline() == other.TableCellAlignmentBaseline();
}
bool AreSizesEqual(const NGConstraintSpace& other) const {
......
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