| Index: third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp b/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| index e516a87a5cdcc0ab50cb3daff4e1d4bf7e888b69..35d8a64d2aeab7f9b0db99d622653ff9824b9d94 100644
|
| --- a/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/FieldsetPainter.cpp
|
| @@ -87,7 +87,12 @@ void FieldsetPainter::PaintBoxDecorationBackground(
|
| clip_width, legend->Size().Height()));
|
| }
|
|
|
| - BoxPainter::PaintBorder(layout_fieldset_, paint_info, paint_rect,
|
| + Node* node = nullptr;
|
| + const LayoutObject* layout_object = &layout_fieldset_;
|
| + for (; layout_object && !node; layout_object = layout_object->Parent())
|
| + node = layout_object->GeneratingNode();
|
| + BoxPainter::PaintBorder(layout_fieldset_, layout_fieldset_.GetDocument(),
|
| + node, paint_info, paint_rect,
|
| layout_fieldset_.StyleRef());
|
| }
|
|
|
|
|