Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1386)

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2239353002: Ignored title in shadow should cause StyleSheet.title = null. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/link-title.html ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698