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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetList.cpp

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StyleSheetList.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleSheetList.cpp b/third_party/WebKit/Source/core/css/StyleSheetList.cpp
index 947e822dae0467b58aea612f2d011ff22b72930b..3d90339003ea8e743e43349833090b8be8dde037 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetList.cpp
+++ b/third_party/WebKit/Source/core/css/StyleSheetList.cpp
@@ -48,11 +48,11 @@ StyleSheet* StyleSheetList::item(unsigned index) {
}
HTMLStyleElement* StyleSheetList::getNamedItem(const AtomicString& name) const {
- // IE also supports retrieving a stylesheet by name, using the name/id of the <style> tag
- // (this is consistent with all the other collections)
- // ### Bad implementation because returns a single element (are IDs always unique?)
- // and doesn't look for name attribute.
- // But unicity of stylesheet ids is good practice anyway ;)
+ // IE also supports retrieving a stylesheet by name, using the name/id of the
+ // <style> tag (this is consistent with all the other collections) ### Bad
+ // implementation because returns a single element (are IDs always unique?)
+ // and doesn't look for name attribute. But unicity of stylesheet ids is good
+ // practice anyway ;)
// FIXME: We should figure out if we should change this or fix the spec.
Element* element = m_treeScope->getElementById(name);
return isHTMLStyleElement(element) ? toHTMLStyleElement(element) : nullptr;
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698