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

Side by Side Diff: Source/WebCore/dom/ProcessingInstruction.cpp

Issue 10809085: Merge 123128 - Crash in WebCore::StyleResolver::collectMatchingRulesForList (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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 | « LayoutTests/fast/css/xml-stylesheet-removed-expected.txt ('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) 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 return; 305 return;
306 306
307 document()->removeStyleSheetCandidateNode(this); 307 document()->removeStyleSheetCandidateNode(this);
308 308
309 if (m_sheet) { 309 if (m_sheet) {
310 ASSERT(m_sheet->ownerNode() == this); 310 ASSERT(m_sheet->ownerNode() == this);
311 m_sheet->clearOwnerNode(); 311 m_sheet->clearOwnerNode();
312 m_sheet = 0; 312 m_sheet = 0;
313 } 313 }
314 314
315 if (m_cachedSheet) 315 // If we're in document teardown, then we don't need to do any notification of our sheet's removal.
316 if (document()->renderer())
316 document()->styleResolverChanged(DeferRecalcStyle); 317 document()->styleResolverChanged(DeferRecalcStyle);
317 } 318 }
318 319
319 void ProcessingInstruction::finishParsingChildren() 320 void ProcessingInstruction::finishParsingChildren()
320 { 321 {
321 m_createdByParser = false; 322 m_createdByParser = false;
322 Node::finishParsingChildren(); 323 Node::finishParsingChildren();
323 } 324 }
324 325
325 } // namespace 326 } // namespace
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/xml-stylesheet-removed-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698