OLD | NEW |
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #endif | 61 #endif |
62 } | 62 } |
63 | 63 |
64 StyleElement::ProcessingResult StyleElement::processStyleSheet(Document& documen
t, Element* element) | 64 StyleElement::ProcessingResult StyleElement::processStyleSheet(Document& documen
t, Element* element) |
65 { | 65 { |
66 TRACE_EVENT0("blink", "StyleElement::processStyleSheet"); | 66 TRACE_EVENT0("blink", "StyleElement::processStyleSheet"); |
67 ASSERT(element); | 67 ASSERT(element); |
68 ASSERT(element->inDocument()); | 68 ASSERT(element->inDocument()); |
69 | 69 |
70 m_registeredAsCandidate = true; | 70 m_registeredAsCandidate = true; |
71 document.styleEngine().addStyleSheetCandidateNode(element, m_createdByParser
); | 71 document.styleEngine().addStyleSheetCandidateNode(element); |
72 if (m_createdByParser) | 72 if (m_createdByParser) |
73 return ProcessingSuccessful; | 73 return ProcessingSuccessful; |
74 | 74 |
75 return process(element); | 75 return process(element); |
76 } | 76 } |
77 | 77 |
78 void StyleElement::insertedInto(Element* element, ContainerNode* insertionPoint) | 78 void StyleElement::insertedInto(Element* element, ContainerNode* insertionPoint) |
79 { | 79 { |
80 if (!insertionPoint->inDocument() || !element->isInShadowTree()) | 80 if (!insertionPoint->inDocument() || !element->isInShadowTree()) |
81 return; | 81 return; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 { | 231 { |
232 document.styleEngine().addPendingSheet(); | 232 document.styleEngine().addPendingSheet(); |
233 } | 233 } |
234 | 234 |
235 DEFINE_TRACE(StyleElement) | 235 DEFINE_TRACE(StyleElement) |
236 { | 236 { |
237 visitor->trace(m_sheet); | 237 visitor->trace(m_sheet); |
238 } | 238 } |
239 | 239 |
240 } // namespace blink | 240 } // namespace blink |
OLD | NEW |