diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-24 17:03:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-24 17:03:20 +0200 |
commit | 08d4a74d56ca431877819fc4566e27eafe150342 (patch) | |
tree | ebd8530838ab390c015c6b7e659a22852c1663ae /Source/WebCore/dom/ShadowRoot.cpp | |
parent | 1de6cd4794bbd5a52189384189a2b8df1848b39b (diff) | |
download | qtwebkit-08d4a74d56ca431877819fc4566e27eafe150342.tar.gz |
Imported WebKit commit 0fbd41c4e13f5a190faf160bf993eee614e6e18e (http://svn.webkit.org/repository/webkit/trunk@123477)
New snapshot that adapts to latest Qt API changes
Diffstat (limited to 'Source/WebCore/dom/ShadowRoot.cpp')
-rw-r--r-- | Source/WebCore/dom/ShadowRoot.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/dom/ShadowRoot.cpp b/Source/WebCore/dom/ShadowRoot.cpp index b586687c1..67bb8618e 100644 --- a/Source/WebCore/dom/ShadowRoot.cpp +++ b/Source/WebCore/dom/ShadowRoot.cpp @@ -46,7 +46,7 @@ namespace WebCore { ShadowRoot::ShadowRoot(Document* document) : DocumentFragment(document, CreateShadowRoot) - , TreeScope(this, document) + , TreeScope(this) , m_prev(0) , m_next(0) , m_applyAuthorStyles(false) @@ -55,9 +55,11 @@ ShadowRoot::ShadowRoot(Document* document) { ASSERT(document); + // Assume document as parent scope. + setParentTreeScope(document); // Shadow tree scopes have the scope pointer point to themselves. // This way, direct children will receive the correct scope pointer. - setTreeScope(this); + ensureRareData()->setTreeScope(this); } ShadowRoot::~ShadowRoot() |