| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the XSL implementation. | 2 * This file is part of the XSL implementation. |
| 3 * | 3 * |
| 4 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 XSLStyleSheet::XSLStyleSheet(Node* parentNode, const String& originalURL, const
KURL& finalURL, bool embedded) | 55 XSLStyleSheet::XSLStyleSheet(Node* parentNode, const String& originalURL, const
KURL& finalURL, bool embedded) |
| 56 : m_ownerNode(parentNode) | 56 : m_ownerNode(parentNode) |
| 57 , m_originalURL(originalURL) | 57 , m_originalURL(originalURL) |
| 58 , m_finalURL(finalURL) | 58 , m_finalURL(finalURL) |
| 59 , m_isDisabled(false) | 59 , m_isDisabled(false) |
| 60 , m_embedded(embedded) | 60 , m_embedded(embedded) |
| 61 , m_processed(true) // The root sheet starts off processed. | 61 , m_processed(true) // The root sheet starts off processed. |
| 62 , m_stylesheetDoc(0) | 62 , m_stylesheetDoc(0) |
| 63 , m_stylesheetDocTaken(false) | 63 , m_stylesheetDocTaken(false) |
| 64 , m_compilationFailed(false) | 64 , m_compilationFailed(false) |
| 65 , m_parentStyleSheet(0) | 65 , m_parentStyleSheet(nullptr) |
| 66 { | 66 { |
| 67 } | 67 } |
| 68 | 68 |
| 69 XSLStyleSheet::~XSLStyleSheet() | 69 XSLStyleSheet::~XSLStyleSheet() |
| 70 { | 70 { |
| 71 if (!m_stylesheetDocTaken) | 71 if (!m_stylesheetDocTaken) |
| 72 xmlFreeDoc(m_stylesheetDoc); | 72 xmlFreeDoc(m_stylesheetDoc); |
| 73 | 73 |
| 74 for (unsigned i = 0; i < m_children.size(); ++i) { | 74 for (unsigned i = 0; i < m_children.size(); ++i) { |
| 75 ASSERT(m_children.at(i)->parentStyleSheet() == this); | 75 ASSERT(m_children.at(i)->parentStyleSheet() == this); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 } | 296 } |
| 297 | 297 |
| 298 void XSLStyleSheet::markAsProcessed() | 298 void XSLStyleSheet::markAsProcessed() |
| 299 { | 299 { |
| 300 ASSERT(!m_processed); | 300 ASSERT(!m_processed); |
| 301 ASSERT(!m_stylesheetDocTaken); | 301 ASSERT(!m_stylesheetDocTaken); |
| 302 m_processed = true; | 302 m_processed = true; |
| 303 m_stylesheetDocTaken = true; | 303 m_stylesheetDocTaken = true; |
| 304 } | 304 } |
| 305 | 305 |
| 306 void XSLStyleSheet::trace(Visitor*) | 306 void XSLStyleSheet::trace(Visitor* visitor) |
| 307 { | 307 { |
| 308 visitor->trace(m_parentStyleSheet); |
| 308 } | 309 } |
| 309 | 310 |
| 310 } // namespace WebCore | 311 } // namespace WebCore |
| OLD | NEW |