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

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

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Land patch upload resulted in python error Created 7 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 * 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 ScopedStyleResolver* ensureScopedStyleResolver(const ContainerNode* scope) 160 ScopedStyleResolver* ensureScopedStyleResolver(const ContainerNode* scope)
161 { 161 {
162 return m_styleTree.ensureScopedStyleResolver(scope ? scope : document()) ; 162 return m_styleTree.ensureScopedStyleResolver(scope ? scope : document()) ;
163 } 163 }
164 164
165 // FIXME: Used by SharingStyleFinder, but should be removed. 165 // FIXME: Used by SharingStyleFinder, but should be removed.
166 bool styleSharingCandidateMatchesRuleSet(const ElementResolveContext&, RuleS et*); 166 bool styleSharingCandidateMatchesRuleSet(const ElementResolveContext&, RuleS et*);
167 167
168 const StyleRuleKeyframes* matchScopedKeyframesRule(Element*, const AtomicStr ingImpl* animationName); 168 const StyleRuleKeyframes* matchScopedKeyframesRule(Element*, const AtomicStr ingImpl* animationName);
169
169 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle*, const StyleKeyframe*, KeyframeValue&); 170 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle*, const StyleKeyframe*, KeyframeValue&);
170 171
171 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element). 172 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element).
172 enum CSSRuleFilter { 173 enum CSSRuleFilter {
173 UAAndUserCSSRules = 1 << 1, 174 UAAndUserCSSRules = 1 << 1,
174 AuthorCSSRules = 1 << 2, 175 AuthorCSSRules = 1 << 2,
175 EmptyCSSRules = 1 << 3, 176 EmptyCSSRules = 1 << 3,
176 CrossOriginCSSRules = 1 << 4, 177 CrossOriginCSSRules = 1 << 4,
177 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules, 178 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules,
178 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, 179 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 PseudoId ignoreDynamicPseudo = NOPSEUDO; 309 PseudoId ignoreDynamicPseudo = NOPSEUDO;
309 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 310 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
310 return true; 311 return true;
311 } 312 }
312 return false; 313 return false;
313 } 314 }
314 315
315 } // namespace WebCore 316 } // namespace WebCore
316 317
317 #endif // StyleResolver_h 318 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698