| 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 cb6e0a484dca8cb6ede5d7fc00fe094a186f6884..31be81f80be062b3cf2a93751192602d3d4190d3 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| @@ -529,9 +529,10 @@ CSSStyleSheet* StyleEngine::createSheet(Element* e, const String& text, TextPosi
|
| }
|
|
|
| DCHECK(styleSheet);
|
| - styleSheet->setTitle(e->title());
|
| - if (!e->isInShadowTree())
|
| + if (!e->isInShadowTree()) {
|
| + styleSheet->setTitle(e->title());
|
| setPreferredStylesheetSetNameIfNotSet(e->title());
|
| + }
|
| return styleSheet;
|
| }
|
|
|
|
|