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

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

Issue 1102003002: Missing m_registeredAsCandidate = false. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed asserts Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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) 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 void StyleElement::clearDocumentData(Document& document, Element* element) 113 void StyleElement::clearDocumentData(Document& document, Element* element)
114 { 114 {
115 if (m_sheet) 115 if (m_sheet)
116 m_sheet->clearOwnerNode(); 116 m_sheet->clearOwnerNode();
117 117
118 if (m_registeredAsCandidate) { 118 if (m_registeredAsCandidate) {
119 ASSERT(element->inDocument()); 119 ASSERT(element->inDocument());
120 document.styleEngine().removeStyleSheetCandidateNode(element, element->t reeScope()); 120 document.styleEngine().removeStyleSheetCandidateNode(element, element->t reeScope());
121 m_registeredAsCandidate = false;
121 } 122 }
122 } 123 }
123 124
124 StyleElement::ProcessingResult StyleElement::childrenChanged(Element* element) 125 StyleElement::ProcessingResult StyleElement::childrenChanged(Element* element)
125 { 126 {
126 ASSERT(element); 127 ASSERT(element);
127 if (m_createdByParser) 128 if (m_createdByParser)
128 return ProcessingSuccessful; 129 return ProcessingSuccessful;
129 130
130 return process(element); 131 return process(element);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 { 227 {
227 document.styleEngine().addPendingSheet(); 228 document.styleEngine().addPendingSheet();
228 } 229 }
229 230
230 DEFINE_TRACE(StyleElement) 231 DEFINE_TRACE(StyleElement)
231 { 232 {
232 visitor->trace(m_sheet); 233 visitor->trace(m_sheet);
233 } 234 }
234 235
235 } 236 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698