| Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| index b7cccd69a0808c85471a3698915ce9c4f613368e..77ec1e4392ac0003df9dd3e0c55d6ca2ab2aaa32 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| @@ -527,6 +527,8 @@ CSSStyleSheet* StyleEngine::createSheet(Element* e, const String& text, TextPosi
|
|
|
| DCHECK(styleSheet);
|
| styleSheet->setTitle(e->title());
|
| + if (!e->isInShadowTree())
|
| + setPreferredStylesheetSetNameIfNotSet(e->title());
|
| return styleSheet;
|
| }
|
|
|
|
|