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

Side by Side Diff: Source/core/html/HTMLStyleElement.cpp

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLShadowElement.cpp ('k') | Source/core/html/HTMLSummaryElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved.
6 * (C) 2007 Rob Buis (buis@kde.org) 6 * (C) 2007 Rob Buis (buis@kde.org)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 const AtomicString& HTMLStyleElement::type() const 128 const AtomicString& HTMLStyleElement::type() const
129 { 129 {
130 return getAttribute(typeAttr); 130 return getAttribute(typeAttr);
131 } 131 }
132 132
133 ContainerNode* HTMLStyleElement::scopingNode() 133 ContainerNode* HTMLStyleElement::scopingNode()
134 { 134 {
135 if (!inDocument()) 135 if (!inDocument())
136 return 0; 136 return nullptr;
137 137
138 if (isInShadowTree()) 138 if (isInShadowTree())
139 return containingShadowRoot(); 139 return containingShadowRoot();
140 140
141 return &document(); 141 return &document();
142 } 142 }
143 143
144 void HTMLStyleElement::dispatchPendingLoadEvents() 144 void HTMLStyleElement::dispatchPendingLoadEvents()
145 { 145 {
146 styleLoadEventSender().dispatchPendingEvents(); 146 styleLoadEventSender().dispatchPendingEvents();
(...skipping 28 matching lines...) Expand all
175 styleSheet->setDisabled(setDisabled); 175 styleSheet->setDisabled(setDisabled);
176 } 176 }
177 177
178 void HTMLStyleElement::trace(Visitor* visitor) 178 void HTMLStyleElement::trace(Visitor* visitor)
179 { 179 {
180 StyleElement::trace(visitor); 180 StyleElement::trace(visitor);
181 HTMLElement::trace(visitor); 181 HTMLElement::trace(visitor);
182 } 182 }
183 183
184 } 184 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLShadowElement.cpp ('k') | Source/core/html/HTMLSummaryElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698