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

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

Issue 196513007: Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix assertion for global persistents Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/StyleElement.h ('k') | Source/core/dom/StyleEngine.h » ('j') | 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void StyleElement::removedFromDocument(Document& document, Element* element) 69 void StyleElement::removedFromDocument(Document& document, Element* element)
70 { 70 {
71 removedFromDocument(document, element, 0, document); 71 removedFromDocument(document, element, 0, document);
72 } 72 }
73 73
74 void StyleElement::removedFromDocument(Document& document, Element* element, Con tainerNode* scopingNode, TreeScope& treeScope) 74 void StyleElement::removedFromDocument(Document& document, Element* element, Con tainerNode* scopingNode, TreeScope& treeScope)
75 { 75 {
76 ASSERT(element); 76 ASSERT(element);
77 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNode, treeScope); 77 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNode, treeScope);
78 78
79 RefPtr<StyleSheet> removedSheet = m_sheet; 79 RefPtrWillBeRawPtr<StyleSheet> removedSheet = m_sheet.get();
80 80
81 if (m_sheet) 81 if (m_sheet)
82 clearSheet(element); 82 clearSheet(element);
83 83
84 document.removedStyleSheet(removedSheet.get(), RecalcStyleDeferred, Analyzed StyleUpdate); 84 document.removedStyleSheet(removedSheet.get(), RecalcStyleDeferred, Analyzed StyleUpdate);
85 } 85 }
86 86
87 void StyleElement::clearDocumentData(Document& document, Element* element) 87 void StyleElement::clearDocumentData(Document& document, Element* element)
88 { 88 {
89 if (m_sheet) 89 if (m_sheet)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 document.styleEngine()->removePendingSheet(m_sheet->ownerNode()); 173 document.styleEngine()->removePendingSheet(m_sheet->ownerNode());
174 return true; 174 return true;
175 } 175 }
176 176
177 void StyleElement::startLoadingDynamicSheet(Document& document) 177 void StyleElement::startLoadingDynamicSheet(Document& document)
178 { 178 {
179 document.styleEngine()->addPendingSheet(); 179 document.styleEngine()->addPendingSheet();
180 } 180 }
181 181
182 } 182 }
OLDNEW
« no previous file with comments | « Source/core/dom/StyleElement.h ('k') | Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698