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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGStyleElement.cpp

Issue 2472613004: Remove ShadowRoot::numberOfStyles(). (Closed)
Patch Set: Rebased Created 4 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 | « third_party/WebKit/Source/core/html/HTMLStyleElement.cpp ('k') | no next file » | 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) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Apple Inc. All rights reserved. 4 * Copyright (C) 2006 Apple Inc. All rights reserved.
5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 5 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 StyleElement::finishParsingChildren(*this); 99 StyleElement::finishParsingChildren(*this);
100 SVGElement::finishParsingChildren(); 100 SVGElement::finishParsingChildren();
101 if (result == StyleElement::ProcessingFatalError) 101 if (result == StyleElement::ProcessingFatalError)
102 notifyLoadedSheetAndAllCriticalSubresources( 102 notifyLoadedSheetAndAllCriticalSubresources(
103 ErrorOccurredLoadingSubresource); 103 ErrorOccurredLoadingSubresource);
104 } 104 }
105 105
106 Node::InsertionNotificationRequest SVGStyleElement::insertedInto( 106 Node::InsertionNotificationRequest SVGStyleElement::insertedInto(
107 ContainerNode* insertionPoint) { 107 ContainerNode* insertionPoint) {
108 SVGElement::insertedInto(insertionPoint); 108 SVGElement::insertedInto(insertionPoint);
109 StyleElement::insertedInto(*this, insertionPoint);
110 return InsertionShouldCallDidNotifySubtreeInsertions; 109 return InsertionShouldCallDidNotifySubtreeInsertions;
111 } 110 }
112 111
113 void SVGStyleElement::didNotifySubtreeInsertionsToDocument() { 112 void SVGStyleElement::didNotifySubtreeInsertionsToDocument() {
114 if (StyleElement::processStyleSheet(document(), *this) == 113 if (StyleElement::processStyleSheet(document(), *this) ==
115 StyleElement::ProcessingFatalError) 114 StyleElement::ProcessingFatalError)
116 notifyLoadedSheetAndAllCriticalSubresources( 115 notifyLoadedSheetAndAllCriticalSubresources(
117 ErrorOccurredLoadingSubresource); 116 ErrorOccurredLoadingSubresource);
118 } 117 }
119 118
(...skipping 22 matching lines...) Expand all
142 void SVGStyleElement::dispatchPendingEvent() { 141 void SVGStyleElement::dispatchPendingEvent() {
143 dispatchEvent(Event::create(EventTypeNames::error)); 142 dispatchEvent(Event::create(EventTypeNames::error));
144 } 143 }
145 144
146 DEFINE_TRACE(SVGStyleElement) { 145 DEFINE_TRACE(SVGStyleElement) {
147 StyleElement::trace(visitor); 146 StyleElement::trace(visitor);
148 SVGElement::trace(visitor); 147 SVGElement::trace(visitor);
149 } 148 }
150 149
151 } // namespace blink 150 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLStyleElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698