Chromium Code Reviews| Index: Source/core/dom/TreeScope.cpp |
| diff --git a/Source/core/dom/TreeScope.cpp b/Source/core/dom/TreeScope.cpp |
| index 6bf5ba49941bc47fd422dbe5b1fa525ca4cc5305..92c3629fe783ec26fdc7e4cc10c98bccf0a9a8af 100644 |
| --- a/Source/core/dom/TreeScope.cpp |
| +++ b/Source/core/dom/TreeScope.cpp |
| @@ -495,6 +495,13 @@ void TreeScope::setNeedsStyleRecalcForViewportUnits() |
| } |
| } |
| +const KURL& TreeScope::baseURL() const |
| +{ |
| + if (!m_baseURL.isEmpty() || document() == this) |
|
esprehn
2014/01/14 00:36:36
Why not just make this virtual and let document ov
|
| + return m_baseURL; |
| + return document().baseURL(); |
| +} |
| + |
| KURL TreeScope::completeURL(const String& url) const |
| { |
| return document().completeURLWithOverride(url, baseURL()); |