Commit 45788444 authored by Emil A Eklund's avatar Emil A Eklund Committed by Commit Bot

[LayoutNG] Remove obsolete legacy_paint_offset

Bug: 714962
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: I82a2ee42527cd7186173d476826654125bbea876
Tbr: kojii@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/1157001Reviewed-by: default avatarEmil A Eklund <eae@chromium.org>
Commit-Queue: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579505}
parent 13db9f60
......@@ -608,18 +608,6 @@ void NGBoxFragmentPainter::PaintInlineChildren(
if (child->PhysicalFragment().IsFloating())
continue;
if (child->PhysicalFragment().IsAtomicInline()) {
// legacy_paint_offset is local, so we need to remove the offset to
// lineBox.
LayoutPoint legacy_paint_offset = paint_offset;
const NGPaintFragment* parent = child->Parent();
while (parent && (parent->PhysicalFragment().IsBox() ||
parent->PhysicalFragment().IsLineBox())) {
legacy_paint_offset -= parent->Offset().ToLayoutPoint();
if (parent->PhysicalFragment().IsLineBox())
break;
parent = parent->Parent();
}
PaintAtomicInlineChild(*child, paint_info);
} else {
PaintInlineChild(*child, paint_info, paint_offset);
......
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