Consider merging https://chromium.googlesource.com/chromium/blink/+/051f9e94c22419b5282383d6e37629d77c728ac5 We can simplify SVGTRefElement by using modern Shadow DOM abstractions like userAgentShadowRoot() and utility functions like replaceChildrenWithText.
This one looks pretty similar to Blink patch modification and it seems that it was not modified: https://github.com/WebKit/WebKit/blob/a8766e9cb3f1d5446226413afe0de6b0a64dc996/Source/WebCore/svg/SVGTRefElement.cpp#L139 This one looks changed compared to Blink: https://github.com/WebKit/WebKit/blob/8afe31a018b11741abdf9b4d5bb973d7c1d9ff05/Source/WebCore/svg/SVGTRefElement.h#L48 _____ rniwa@webkit.org - It is going to be "RESOLVED LATER" or it is something can be landed with slightly changes or web-specs are changed due to SVG2 and it is not relevant? Thanks!
The old code is still there.
I tried to did this change here - https://github.com/WebKit/WebKit/pull/5005 But later realised that Chrome / Blink removed this <TREF> support later in September in below commit: https://src.chromium.org/viewvc/blink?revision=157630&view=revision I think we are failing WPT tests because of that as well and any modernisation would be fool's errand. I am going to mark this as "RESOLVED WONTFIX". Thanks!