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

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

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 8 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 , m_loading(false) 45 , m_loading(false)
46 , m_registeredAsCandidate(false) 46 , m_registeredAsCandidate(false)
47 , m_startPosition(TextPosition::belowRangePosition()) 47 , m_startPosition(TextPosition::belowRangePosition())
48 { 48 {
49 if (createdByParser && document && document->scriptableDocumentParser() && ! document->isInDocumentWrite()) 49 if (createdByParser && document && document->scriptableDocumentParser() && ! document->isInDocumentWrite())
50 m_startPosition = document->scriptableDocumentParser()->textPosition(); 50 m_startPosition = document->scriptableDocumentParser()->textPosition();
51 } 51 }
52 52
53 StyleElement::~StyleElement() 53 StyleElement::~StyleElement()
54 { 54 {
55 #if !ENABLE(OILPAN)
55 if (m_sheet) 56 if (m_sheet)
56 clearSheet(); 57 clearSheet();
haraken 2014/04/25 05:21:42 If you don't call clearSheet(), who removes pendin
Mads Ager (chromium) 2014/04/25 10:58:25 Restored, thanks!
58 #endif
57 } 59 }
58 60
59 void StyleElement::processStyleSheet(Document& document, Element* element) 61 void StyleElement::processStyleSheet(Document& document, Element* element)
60 { 62 {
61 TRACE_EVENT0("webkit", "StyleElement::processStyleSheet"); 63 TRACE_EVENT0("webkit", "StyleElement::processStyleSheet");
62 ASSERT(element); 64 ASSERT(element);
63 ASSERT(element->inDocument()); 65 ASSERT(element->inDocument());
64 66
65 m_registeredAsCandidate = true; 67 m_registeredAsCandidate = true;
66 document.styleEngine()->addStyleSheetCandidateNode(element, m_createdByParse r); 68 document.styleEngine()->addStyleSheetCandidateNode(element, m_createdByParse r);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 document.styleEngine()->removePendingSheet(m_sheet->ownerNode()); 183 document.styleEngine()->removePendingSheet(m_sheet->ownerNode());
182 return true; 184 return true;
183 } 185 }
184 186
185 void StyleElement::startLoadingDynamicSheet(Document& document) 187 void StyleElement::startLoadingDynamicSheet(Document& document)
186 { 188 {
187 document.styleEngine()->addPendingSheet(); 189 document.styleEngine()->addPendingSheet();
188 } 190 }
189 191
190 } 192 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698