Commit e9a7dae9 authored by Aleks Totic's avatar Aleks Totic Committed by Commit Bot

[LayoutNG] Inline background paint and visibility

Bug: 859787
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I03e64594a44c3b7d4ab2fa757f21320df58838f1
Reviewed-on: https://chromium-review.googlesource.com/1125404Reviewed-by: default avatarEmil A Eklund <eae@chromium.org>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572437}
parent 34cfe3d9
...@@ -180,7 +180,8 @@ void NGBoxFragmentPainter::PaintInlineBox(const PaintInfo& paint_info, ...@@ -180,7 +180,8 @@ void NGBoxFragmentPainter::PaintInlineBox(const PaintInfo& paint_info,
const LayoutPoint& paint_offset) { const LayoutPoint& paint_offset) {
const LayoutPoint adjusted_paint_offset = const LayoutPoint adjusted_paint_offset =
paint_offset + box_fragment_.Offset().ToLayoutPoint(); paint_offset + box_fragment_.Offset().ToLayoutPoint();
if (paint_info.phase == PaintPhase::kForeground) if (paint_info.phase == PaintPhase::kForeground &&
box_fragment_.Style().Visibility() == EVisibility::kVisible)
PaintBoxDecorationBackground(paint_info, adjusted_paint_offset); PaintBoxDecorationBackground(paint_info, adjusted_paint_offset);
PaintObject(paint_info, adjusted_paint_offset, true); PaintObject(paint_info, adjusted_paint_offset, true);
......
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