Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: Source/core/css/StyleSheetContents.cpp

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT-ed again... Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) 65 , m_usesRemUnits(false)
66 , m_usesVariables(false)
66 , m_isMutable(false) 67 , m_isMutable(false)
67 , m_isInMemoryCache(false) 68 , m_isInMemoryCache(false)
68 , m_hasFontFaceRule(false) 69 , m_hasFontFaceRule(false)
69 , m_hasMediaQueries(false) 70 , m_hasMediaQueries(false)
70 , m_hasSingleOwnerDocument(true) 71 , m_hasSingleOwnerDocument(true)
71 , m_parserContext(context) 72 , m_parserContext(context)
72 { 73 {
73 } 74 }
74 75
75 StyleSheetContents::StyleSheetContents(const StyleSheetContents& o) 76 StyleSheetContents::StyleSheetContents(const StyleSheetContents& o)
76 : m_ownerRule(nullptr) 77 : m_ownerRule(nullptr)
77 , m_originalURL(o.m_originalURL) 78 , m_originalURL(o.m_originalURL)
78 , m_importRules(o.m_importRules.size()) 79 , m_importRules(o.m_importRules.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_hasSyntacticallyValidCSSHeader(o.m_hasSyntacticallyValidCSSHeader) 82 , m_hasSyntacticallyValidCSSHeader(o.m_hasSyntacticallyValidCSSHeader)
82 , m_didLoadErrorOccur(false) 83 , m_didLoadErrorOccur(false)
83 , m_usesRemUnits(o.m_usesRemUnits) 84 , m_usesRemUnits(o.m_usesRemUnits)
85 , m_usesVariables(o.m_usesVariables)
84 , m_isMutable(false) 86 , m_isMutable(false)
85 , m_isInMemoryCache(false) 87 , m_isInMemoryCache(false)
86 , m_hasFontFaceRule(o.m_hasFontFaceRule) 88 , m_hasFontFaceRule(o.m_hasFontFaceRule)
87 , m_hasMediaQueries(o.m_hasMediaQueries) 89 , m_hasMediaQueries(o.m_hasMediaQueries)
88 , m_hasSingleOwnerDocument(true) 90 , m_hasSingleOwnerDocument(true)
89 , m_parserContext(o.m_parserContext) 91 , m_parserContext(o.m_parserContext)
90 { 92 {
91 ASSERT(o.isCacheable()); 93 ASSERT(o.isCacheable());
92 94
93 // FIXME: Copy import rules. 95 // FIXME: Copy import rules.
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 visitor->trace(m_ownerRule); 629 visitor->trace(m_ownerRule);
628 visitor->trace(m_importRules); 630 visitor->trace(m_importRules);
629 visitor->trace(m_childRules); 631 visitor->trace(m_childRules);
630 visitor->trace(m_loadingClients); 632 visitor->trace(m_loadingClients);
631 visitor->trace(m_completedClients); 633 visitor->trace(m_completedClients);
632 visitor->trace(m_ruleSet); 634 visitor->trace(m_ruleSet);
633 #endif 635 #endif
634 } 636 }
635 637
636 } 638 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698