| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 size += sheet->estimatedSizeInBytes(); | 55 size += sheet->estimatedSizeInBytes(); |
| 56 } | 56 } |
| 57 return size; | 57 return size; |
| 58 } | 58 } |
| 59 | 59 |
| 60 StyleSheetContents::StyleSheetContents(StyleRuleImport* ownerRule, const String&
originalURL, const CSSParserContext& context) | 60 StyleSheetContents::StyleSheetContents(StyleRuleImport* ownerRule, const String&
originalURL, const CSSParserContext& context) |
| 61 : m_ownerRule(ownerRule) | 61 : m_ownerRule(ownerRule) |
| 62 , m_originalURL(originalURL) | 62 , m_originalURL(originalURL) |
| 63 , m_hasSyntacticallyValidCSSHeader(true) | 63 , m_hasSyntacticallyValidCSSHeader(true) |
| 64 , m_didLoadErrorOccur(false) | 64 , m_didLoadErrorOccur(false) |
| 65 , m_usesRemUnits(false) | |
| 66 , m_isMutable(false) | 65 , m_isMutable(false) |
| 67 , m_isInMemoryCache(false) | 66 , m_isInMemoryCache(false) |
| 68 , m_hasFontFaceRule(false) | 67 , m_hasFontFaceRule(false) |
| 69 , m_hasMediaQueries(false) | 68 , m_hasMediaQueries(false) |
| 70 , m_hasSingleOwnerDocument(true) | 69 , m_hasSingleOwnerDocument(true) |
| 71 , m_parserContext(context) | 70 , m_parserContext(context) |
| 72 { | 71 { |
| 73 } | 72 } |
| 74 | 73 |
| 75 StyleSheetContents::StyleSheetContents(const StyleSheetContents& o) | 74 StyleSheetContents::StyleSheetContents(const StyleSheetContents& o) |
| 76 : m_ownerRule(nullptr) | 75 : m_ownerRule(nullptr) |
| 77 , m_originalURL(o.m_originalURL) | 76 , m_originalURL(o.m_originalURL) |
| 78 , m_importRules(o.m_importRules.size()) | 77 , m_importRules(o.m_importRules.size()) |
| 79 , m_childRules(o.m_childRules.size()) | 78 , m_childRules(o.m_childRules.size()) |
| 80 , m_namespaces(o.m_namespaces) | 79 , m_namespaces(o.m_namespaces) |
| 81 , m_hasSyntacticallyValidCSSHeader(o.m_hasSyntacticallyValidCSSHeader) | 80 , m_hasSyntacticallyValidCSSHeader(o.m_hasSyntacticallyValidCSSHeader) |
| 82 , m_didLoadErrorOccur(false) | 81 , m_didLoadErrorOccur(false) |
| 83 , m_usesRemUnits(o.m_usesRemUnits) | |
| 84 , m_isMutable(false) | 82 , m_isMutable(false) |
| 85 , m_isInMemoryCache(false) | 83 , m_isInMemoryCache(false) |
| 86 , m_hasFontFaceRule(o.m_hasFontFaceRule) | 84 , m_hasFontFaceRule(o.m_hasFontFaceRule) |
| 87 , m_hasMediaQueries(o.m_hasMediaQueries) | 85 , m_hasMediaQueries(o.m_hasMediaQueries) |
| 88 , m_hasSingleOwnerDocument(true) | 86 , m_hasSingleOwnerDocument(true) |
| 89 , m_parserContext(o.m_parserContext) | 87 , m_parserContext(o.m_parserContext) |
| 90 { | 88 { |
| 91 ASSERT(o.isCacheable()); | 89 ASSERT(o.isCacheable()); |
| 92 | 90 |
| 93 // FIXME: Copy import rules. | 91 // FIXME: Copy import rules. |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 visitor->trace(m_ownerRule); | 625 visitor->trace(m_ownerRule); |
| 628 visitor->trace(m_importRules); | 626 visitor->trace(m_importRules); |
| 629 visitor->trace(m_childRules); | 627 visitor->trace(m_childRules); |
| 630 visitor->trace(m_loadingClients); | 628 visitor->trace(m_loadingClients); |
| 631 visitor->trace(m_completedClients); | 629 visitor->trace(m_completedClients); |
| 632 visitor->trace(m_ruleSet); | 630 visitor->trace(m_ruleSet); |
| 633 #endif | 631 #endif |
| 634 } | 632 } |
| 635 | 633 |
| 636 } | 634 } |
| OLD | NEW |