| 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 18 matching lines...) Expand all Loading... |
| 29 #include "sky/engine/core/dom/Document.h" | 29 #include "sky/engine/core/dom/Document.h" |
| 30 #include "sky/engine/core/dom/Node.h" | 30 #include "sky/engine/core/dom/Node.h" |
| 31 #include "sky/engine/core/dom/StyleEngine.h" | 31 #include "sky/engine/core/dom/StyleEngine.h" |
| 32 #include "sky/engine/core/frame/UseCounter.h" | 32 #include "sky/engine/core/frame/UseCounter.h" |
| 33 #include "sky/engine/platform/TraceEvent.h" | 33 #include "sky/engine/platform/TraceEvent.h" |
| 34 #include "sky/engine/wtf/Deque.h" | 34 #include "sky/engine/wtf/Deque.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 StyleSheetContents::StyleSheetContents(const CSSParserContext& context) | 38 StyleSheetContents::StyleSheetContents(const CSSParserContext& context) |
| 39 : m_usesRemUnits(false) | 39 : m_hasMediaQueries(false) |
| 40 , m_hasMediaQueries(false) | |
| 41 , m_parserContext(context) | 40 , m_parserContext(context) |
| 42 { | 41 { |
| 43 } | 42 } |
| 44 | 43 |
| 45 StyleSheetContents::~StyleSheetContents() | 44 StyleSheetContents::~StyleSheetContents() |
| 46 { | 45 { |
| 47 // TODO(esprehn): Why is this here? The rules will be cleared immediately | 46 // TODO(esprehn): Why is this here? The rules will be cleared immediately |
| 48 // after this destructor runs anyway. | 47 // after this destructor runs anyway. |
| 49 m_childRules.clear(); | 48 m_childRules.clear(); |
| 50 } | 49 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Clearing the ruleSet means we need to recreate the styleResolver data str
uctures. | 112 // Clearing the ruleSet means we need to recreate the styleResolver data str
uctures. |
| 114 // See the StyleResolver calls in ScopedStyleResolver::addRulesFromSheet. | 113 // See the StyleResolver calls in ScopedStyleResolver::addRulesFromSheet. |
| 115 for (RawPtr<CSSStyleSheet> client : m_clients) { | 114 for (RawPtr<CSSStyleSheet> client : m_clients) { |
| 116 if (Document* document = client->ownerDocument()) | 115 if (Document* document = client->ownerDocument()) |
| 117 document->styleEngine()->clearResolver(); | 116 document->styleEngine()->clearResolver(); |
| 118 } | 117 } |
| 119 m_ruleSet.clear(); | 118 m_ruleSet.clear(); |
| 120 } | 119 } |
| 121 | 120 |
| 122 } | 121 } |
| OLD | NEW |