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

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

Issue 2554873002: Mark correct tree-scope dirty removing link in shadow. (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) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2008, 2009 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 process(href, charset); 262 process(href, charset);
263 return InsertionDone; 263 return InsertionDone;
264 } 264 }
265 265
266 void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint) { 266 void ProcessingInstruction::removedFrom(ContainerNode* insertionPoint) {
267 CharacterData::removedFrom(insertionPoint); 267 CharacterData::removedFrom(insertionPoint);
268 if (!insertionPoint->isConnected()) 268 if (!insertionPoint->isConnected())
269 return; 269 return;
270 270
271 // No need to remove XSLStyleSheet from StyleEngine. 271 // No need to remove XSLStyleSheet from StyleEngine.
272 if (!DocumentXSLT::processingInstructionRemovedFromDocument(document(), this)) 272 if (!DocumentXSLT::processingInstructionRemovedFromDocument(document(),
273 document().styleEngine().removeStyleSheetCandidateNode(*this); 273 this)) {
274 document().styleEngine().removeStyleSheetCandidateNode(*this,
275 *insertionPoint);
276 }
274 277
275 StyleSheet* removedSheet = m_sheet; 278 StyleSheet* removedSheet = m_sheet;
276 if (m_sheet) { 279 if (m_sheet) {
277 DCHECK_EQ(m_sheet->ownerNode(), this); 280 DCHECK_EQ(m_sheet->ownerNode(), this);
278 clearSheet(); 281 clearSheet();
279 } 282 }
280 283
281 // No need to remove pending sheets. 284 // No need to remove pending sheets.
282 clearResource(); 285 clearResource();
283 286
(...skipping 12 matching lines...) Expand all
296 } 299 }
297 300
298 DEFINE_TRACE(ProcessingInstruction) { 301 DEFINE_TRACE(ProcessingInstruction) {
299 visitor->trace(m_sheet); 302 visitor->trace(m_sheet);
300 visitor->trace(m_listenerForXSLT); 303 visitor->trace(m_listenerForXSLT);
301 CharacterData::trace(visitor); 304 CharacterData::trace(visitor);
302 ResourceOwner<StyleSheetResource>::trace(visitor); 305 ResourceOwner<StyleSheetResource>::trace(visitor);
303 } 306 }
304 307
305 } // namespace blink 308 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/host-link-style.html ('k') | third_party/WebKit/Source/core/dom/StyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698