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

Side by Side Diff: Source/core/css/resolver/StyleResolver.h

Issue 258023004: Removed unused matching behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 class StyleRulePage; 72 class StyleRulePage;
73 class ViewportStyleResolver; 73 class ViewportStyleResolver;
74 74
75 class MatchResult; 75 class MatchResult;
76 76
77 enum StyleSharingBehavior { 77 enum StyleSharingBehavior {
78 AllowStyleSharing, 78 AllowStyleSharing,
79 DisallowStyleSharing, 79 DisallowStyleSharing,
80 }; 80 };
81 81
82 // MatchOnlyUserAgentRules is used in media queries, where relative units
83 // are interpreted according to the document root element style, and styled only
84 // from the User Agent Stylesheet rules.
85 enum RuleMatchingBehavior { 82 enum RuleMatchingBehavior {
86 MatchAllRules, 83 MatchAllRules,
87 MatchAllRulesExcludingSMIL, 84 MatchAllRulesExcludingSMIL
88 MatchOnlyUserAgentRules,
89 }; 85 };
90 86
91 const unsigned styleSharingListSize = 40; 87 const unsigned styleSharingListSize = 40;
92 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList; 88 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList;
93 89
94 struct CSSPropertyValue { 90 struct CSSPropertyValue {
95 STACK_ALLOCATED(); 91 STACK_ALLOCATED();
96 public: 92 public:
97 CSSPropertyValue(CSSPropertyID property, CSSValue* value) 93 CSSPropertyValue(CSSPropertyID property, CSSValue* value)
98 : property(property), value(value) { } 94 : property(property), value(value) { }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 327 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
332 unsigned m_styleResolverStatsSequence; 328 unsigned m_styleResolverStatsSequence;
333 329
334 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 330 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
335 unsigned m_accessCount; 331 unsigned m_accessCount;
336 }; 332 };
337 333
338 } // namespace WebCore 334 } // namespace WebCore
339 335
340 #endif // StyleResolver_h 336 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698