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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLStyleElement.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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 StyleElement::finishParsingChildren(*this); 75 StyleElement::finishParsingChildren(*this);
76 HTMLElement::finishParsingChildren(); 76 HTMLElement::finishParsingChildren();
77 if (result == StyleElement::ProcessingFatalError) 77 if (result == StyleElement::ProcessingFatalError)
78 notifyLoadedSheetAndAllCriticalSubresources( 78 notifyLoadedSheetAndAllCriticalSubresources(
79 ErrorOccurredLoadingSubresource); 79 ErrorOccurredLoadingSubresource);
80 } 80 }
81 81
82 Node::InsertionNotificationRequest HTMLStyleElement::insertedInto( 82 Node::InsertionNotificationRequest HTMLStyleElement::insertedInto(
83 ContainerNode* insertionPoint) { 83 ContainerNode* insertionPoint) {
84 HTMLElement::insertedInto(insertionPoint); 84 HTMLElement::insertedInto(insertionPoint);
85 StyleElement::insertedInto(*this, insertionPoint);
86 return InsertionShouldCallDidNotifySubtreeInsertions; 85 return InsertionShouldCallDidNotifySubtreeInsertions;
87 } 86 }
88 87
89 void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint) { 88 void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint) {
90 HTMLElement::removedFrom(insertionPoint); 89 HTMLElement::removedFrom(insertionPoint);
91 StyleElement::removedFrom(*this, insertionPoint); 90 StyleElement::removedFrom(*this, insertionPoint);
92 } 91 }
93 92
94 void HTMLStyleElement::didNotifySubtreeInsertionsToDocument() { 93 void HTMLStyleElement::didNotifySubtreeInsertionsToDocument() {
95 if (StyleElement::processStyleSheet(document(), *this) == 94 if (StyleElement::processStyleSheet(document(), *this) ==
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 if (CSSStyleSheet* styleSheet = sheet()) 144 if (CSSStyleSheet* styleSheet = sheet())
146 styleSheet->setDisabled(setDisabled); 145 styleSheet->setDisabled(setDisabled);
147 } 146 }
148 147
149 DEFINE_TRACE(HTMLStyleElement) { 148 DEFINE_TRACE(HTMLStyleElement) {
150 StyleElement::trace(visitor); 149 StyleElement::trace(visitor);
151 HTMLElement::trace(visitor); 150 HTMLElement::trace(visitor);
152 } 151 }
153 152
154 } // namespace blink 153 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp ('k') | third_party/WebKit/Source/core/svg/SVGStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698