[Squad] Get parent ComputedStyle from node, not from SVG layout object.
We currently don't compute style for elements being reattached in the style recalc step when the element has custom style callbacks. The reason is that some CustomStyleForLayoutObject() implementations rely on ancestor elements being attached. Here, we stop relying on SVG corresponding elements having a LayoutObject by retrieving ComputedStyle from the Node instead. If the parent element is being (re-)attached, we will get the non-attached style through Node::GetComputedStyle(). Bug: 813057 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I18b6a41087836746869071a409841692fa168537 Reviewed-on: https://chromium-review.googlesource.com/923732Reviewed-by:Fredrik Söderquist <fs@opera.com> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#537306}
Showing
Please register or sign in to comment