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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 StyleSheetContents::StyleSheetContents(StyleRuleImport* ownerRule, | 59 StyleSheetContents::StyleSheetContents(StyleRuleImport* ownerRule, |
60 const String& originalURL, | 60 const String& originalURL, |
61 const CSSParserContext& context) | 61 const CSSParserContext& context) |
62 : m_ownerRule(ownerRule), | 62 : m_ownerRule(ownerRule), |
63 m_originalURL(originalURL), | 63 m_originalURL(originalURL), |
64 m_defaultNamespace(starAtom), | 64 m_defaultNamespace(starAtom), |
65 m_hasSyntacticallyValidCSSHeader(true), | 65 m_hasSyntacticallyValidCSSHeader(true), |
66 m_didLoadErrorOccur(false), | 66 m_didLoadErrorOccur(false), |
67 m_isMutable(false), | 67 m_isMutable(false), |
68 m_hasFontFaceRule(false), | 68 m_hasFontFaceRule(false), |
| 69 m_hasViewportRule(false), |
69 m_hasMediaQueries(false), | 70 m_hasMediaQueries(false), |
70 m_hasSingleOwnerDocument(true), | 71 m_hasSingleOwnerDocument(true), |
71 m_isUsedFromTextCache(false), | 72 m_isUsedFromTextCache(false), |
72 m_parserContext(context) {} | 73 m_parserContext(context) {} |
73 | 74 |
74 StyleSheetContents::StyleSheetContents(const StyleSheetContents& o) | 75 StyleSheetContents::StyleSheetContents(const StyleSheetContents& o) |
75 : m_ownerRule(nullptr), | 76 : m_ownerRule(nullptr), |
76 m_originalURL(o.m_originalURL), | 77 m_originalURL(o.m_originalURL), |
77 m_importRules(o.m_importRules.size()), | 78 m_importRules(o.m_importRules.size()), |
78 m_namespaceRules(o.m_namespaceRules.size()), | 79 m_namespaceRules(o.m_namespaceRules.size()), |
79 m_childRules(o.m_childRules.size()), | 80 m_childRules(o.m_childRules.size()), |
80 m_namespaces(o.m_namespaces), | 81 m_namespaces(o.m_namespaces), |
81 m_defaultNamespace(o.m_defaultNamespace), | 82 m_defaultNamespace(o.m_defaultNamespace), |
82 m_hasSyntacticallyValidCSSHeader(o.m_hasSyntacticallyValidCSSHeader), | 83 m_hasSyntacticallyValidCSSHeader(o.m_hasSyntacticallyValidCSSHeader), |
83 m_didLoadErrorOccur(false), | 84 m_didLoadErrorOccur(false), |
84 m_isMutable(false), | 85 m_isMutable(false), |
85 m_hasFontFaceRule(o.m_hasFontFaceRule), | 86 m_hasFontFaceRule(o.m_hasFontFaceRule), |
| 87 m_hasViewportRule(o.m_hasViewportRule), |
86 m_hasMediaQueries(o.m_hasMediaQueries), | 88 m_hasMediaQueries(o.m_hasMediaQueries), |
87 m_hasSingleOwnerDocument(true), | 89 m_hasSingleOwnerDocument(true), |
88 m_isUsedFromTextCache(false), | 90 m_isUsedFromTextCache(false), |
89 m_parserContext(o.m_parserContext) { | 91 m_parserContext(o.m_parserContext) { |
90 // FIXME: Copy import rules. | 92 // FIXME: Copy import rules. |
91 ASSERT(o.m_importRules.isEmpty()); | 93 ASSERT(o.m_importRules.isEmpty()); |
92 | 94 |
93 for (unsigned i = 0; i < m_childRules.size(); ++i) | 95 for (unsigned i = 0; i < m_childRules.size(); ++i) |
94 m_childRules[i] = o.m_childRules[i]->copy(); | 96 m_childRules[i] = o.m_childRules[i]->copy(); |
95 } | 97 } |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 visitor->trace(m_importRules); | 666 visitor->trace(m_importRules); |
665 visitor->trace(m_namespaceRules); | 667 visitor->trace(m_namespaceRules); |
666 visitor->trace(m_childRules); | 668 visitor->trace(m_childRules); |
667 visitor->trace(m_loadingClients); | 669 visitor->trace(m_loadingClients); |
668 visitor->trace(m_completedClients); | 670 visitor->trace(m_completedClients); |
669 visitor->trace(m_ruleSet); | 671 visitor->trace(m_ruleSet); |
670 visitor->trace(m_referencedFromResource); | 672 visitor->trace(m_referencedFromResource); |
671 } | 673 } |
672 | 674 |
673 } // namespace blink | 675 } // namespace blink |
OLD | NEW |