-
rafaelw@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=113630 Source/WebCore: HTMLLinkElement was resolving its URL when the href attribute was processed and caching it without ever invalidating the cached URL. This patch removes the cached URL and adds getURL() which resolve the URL dynamically. Reviewed by Eric Seidel. Test: fast/dom/HTMLLinkElement/resolve-url-on-insertion.html * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::getURL): (WebCore): (WebCore::HTMLLinkElement::parseAttribute): (WebCore::HTMLLinkElement::shouldLoadLink): (WebCore::HTMLLinkElement::process): * html/HTMLLinkElement.h: (HTMLLinkElement): LayoutTests: Reviewed by Eric Seidel. * fast/dom/HTMLLinkElement/resolve-url-on-insertion-expected.txt: Added. * fast/dom/HTMLLinkElement/resolve-url-on-insertion.html: Added. * fast/dom/HTMLLinkElement/resources/stylesheet2.css: Added. (#test2): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
cc2132a3