OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2007, 2012 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 // FIXME: Copy import rules. | 91 // FIXME: Copy import rules. |
92 ASSERT(o.m_importRules.isEmpty()); | 92 ASSERT(o.m_importRules.isEmpty()); |
93 | 93 |
94 for (unsigned i = 0; i < m_childRules.size(); ++i) | 94 for (unsigned i = 0; i < m_childRules.size(); ++i) |
95 m_childRules[i] = o.m_childRules[i]->copy(); | 95 m_childRules[i] = o.m_childRules[i]->copy(); |
96 } | 96 } |
97 | 97 |
98 StyleSheetContents::~StyleSheetContents() | 98 StyleSheetContents::~StyleSheetContents() |
99 { | 99 { |
| 100 #if !ENABLE(OILPAN) |
100 StyleEngine::removeSheet(this); | 101 StyleEngine::removeSheet(this); |
101 #if !ENABLE(OILPAN) | |
102 clearRules(); | 102 clearRules(); |
103 #endif | 103 #endif |
104 } | 104 } |
105 | 105 |
106 void StyleSheetContents::setHasSyntacticallyValidCSSHeader(bool isValidCss) | 106 void StyleSheetContents::setHasSyntacticallyValidCSSHeader(bool isValidCss) |
107 { | 107 { |
108 if (maybeCacheable() && !isValidCss) | 108 if (maybeCacheable() && !isValidCss) |
109 StyleEngine::removeSheet(this); | 109 StyleEngine::removeSheet(this); |
110 m_hasSyntacticallyValidCSSHeader = isValidCss; | 110 m_hasSyntacticallyValidCSSHeader = isValidCss; |
111 } | 111 } |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 } | 616 } |
617 | 617 |
618 void StyleSheetContents::trace(Visitor* visitor) | 618 void StyleSheetContents::trace(Visitor* visitor) |
619 { | 619 { |
620 visitor->trace(m_ownerRule); | 620 visitor->trace(m_ownerRule); |
621 visitor->trace(m_importRules); | 621 visitor->trace(m_importRules); |
622 visitor->trace(m_childRules); | 622 visitor->trace(m_childRules); |
623 } | 623 } |
624 | 624 |
625 } | 625 } |
OLD | NEW |