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

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

Issue 16425002: Moved StyleElement::insertedIntoDocument into didNotifySubtreeInsertions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/html/HTMLStyleElement.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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 if (createdByParser && document && document->scriptableDocumentParser() && ! document->isInDocumentWrite()) 54 if (createdByParser && document && document->scriptableDocumentParser() && ! document->isInDocumentWrite())
55 m_startPosition = document->scriptableDocumentParser()->textPosition(); 55 m_startPosition = document->scriptableDocumentParser()->textPosition();
56 } 56 }
57 57
58 StyleElement::~StyleElement() 58 StyleElement::~StyleElement()
59 { 59 {
60 if (m_sheet) 60 if (m_sheet)
61 clearSheet(); 61 clearSheet();
62 } 62 }
63 63
64 void StyleElement::insertedIntoDocument(Document* document, Element* element) 64 void StyleElement::processStyleSheet(Document* document, Element* element)
65 { 65 {
66 ASSERT(document); 66 ASSERT(document);
67 ASSERT(element); 67 ASSERT(element);
68 document->styleSheetCollection()->addStyleSheetCandidateNode(element, m_crea tedByParser); 68 document->styleSheetCollection()->addStyleSheetCandidateNode(element, m_crea tedByParser);
69 if (m_createdByParser) 69 if (m_createdByParser)
70 return; 70 return;
71 71
72 process(element); 72 process(element);
73 } 73 }
74 74
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 return true; 199 return true;
200 } 200 }
201 201
202 void StyleElement::startLoadingDynamicSheet(Document* document) 202 void StyleElement::startLoadingDynamicSheet(Document* document)
203 { 203 {
204 ASSERT(document); 204 ASSERT(document);
205 document->styleSheetCollection()->addPendingSheet(); 205 document->styleSheetCollection()->addPendingSheet();
206 } 206 }
207 207
208 } 208 }
OLDNEW
« no previous file with comments | « Source/core/dom/StyleElement.h ('k') | Source/core/html/HTMLStyleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698