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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleElement.cpp

Issue 2559613002: Removed resolverChanged(). (Closed)
Patch Set: Rebased Created 4 years 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) 2006, 2007 Rob Buis 2 * Copyright (C) 2006, 2007 Rob Buis
3 * Copyright (C) 2008 Apple, Inc. All rights reserved. 3 * Copyright (C) 2008 Apple, Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 if (!insertionPoint->isConnected()) 75 if (!insertionPoint->isConnected())
76 return; 76 return;
77 77
78 Document& document = element.document(); 78 Document& document = element.document();
79 if (m_registeredAsCandidate) { 79 if (m_registeredAsCandidate) {
80 document.styleEngine().removeStyleSheetCandidateNode(element, 80 document.styleEngine().removeStyleSheetCandidateNode(element,
81 *insertionPoint); 81 *insertionPoint);
82 m_registeredAsCandidate = false; 82 m_registeredAsCandidate = false;
83 } 83 }
84 84
85 if (m_sheet) { 85 if (m_sheet)
86 clearSheet(element); 86 clearSheet(element);
87 if (element.isConnected()) {
88 // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet
89 // updates are async. https://crbug.com/567021
90 document.styleEngine().resolverChanged(AnalyzedStyleUpdate);
91 }
92 }
93 } 87 }
94 88
95 StyleElement::ProcessingResult StyleElement::childrenChanged(Element& element) { 89 StyleElement::ProcessingResult StyleElement::childrenChanged(Element& element) {
96 if (m_createdByParser) 90 if (m_createdByParser)
97 return ProcessingSuccessful; 91 return ProcessingSuccessful;
98 92
99 return process(element); 93 return process(element);
100 } 94 }
101 95
102 StyleElement::ProcessingResult StyleElement::finishParsingChildren( 96 StyleElement::ProcessingResult StyleElement::finishParsingChildren(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 195
202 void StyleElement::startLoadingDynamicSheet(Document& document) { 196 void StyleElement::startLoadingDynamicSheet(Document& document) {
203 document.styleEngine().addPendingSheet(m_styleEngineContext); 197 document.styleEngine().addPendingSheet(m_styleEngineContext);
204 } 198 }
205 199
206 DEFINE_TRACE(StyleElement) { 200 DEFINE_TRACE(StyleElement) {
207 visitor->trace(m_sheet); 201 visitor->trace(m_sheet);
208 } 202 }
209 203
210 } // namespace blink 204 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698