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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 StyleEngine::removeSheet(this); | 100 StyleEngine::removeSheet(this); |
| 101 #if !ENABLE(OILPAN) |
101 clearRules(); | 102 clearRules(); |
| 103 #endif |
102 } | 104 } |
103 | 105 |
104 void StyleSheetContents::setHasSyntacticallyValidCSSHeader(bool isValidCss) | 106 void StyleSheetContents::setHasSyntacticallyValidCSSHeader(bool isValidCss) |
105 { | 107 { |
106 if (maybeCacheable() && !isValidCss) | 108 if (maybeCacheable() && !isValidCss) |
107 StyleEngine::removeSheet(this); | 109 StyleEngine::removeSheet(this); |
108 m_hasSyntacticallyValidCSSHeader = isValidCss; | 110 m_hasSyntacticallyValidCSSHeader = isValidCss; |
109 } | 111 } |
110 | 112 |
111 bool StyleSheetContents::maybeCacheable() const | 113 bool StyleSheetContents::maybeCacheable() const |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 } | 616 } |
615 | 617 |
616 void StyleSheetContents::trace(Visitor* visitor) | 618 void StyleSheetContents::trace(Visitor* visitor) |
617 { | 619 { |
618 visitor->trace(m_ownerRule); | 620 visitor->trace(m_ownerRule); |
619 visitor->trace(m_importRules); | 621 visitor->trace(m_importRules); |
620 visitor->trace(m_childRules); | 622 visitor->trace(m_childRules); |
621 } | 623 } |
622 | 624 |
623 } | 625 } |
OLD | NEW |