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

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

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 6 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
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 public: 226 public:
227 bool useSVGZoomRules(); 227 bool useSVGZoomRules();
228 228
229 static bool colorFromPrimitiveValueIsDerivedFromElement(CSSPrimitiveValue*); 229 static bool colorFromPrimitiveValueIsDerivedFromElement(CSSPrimitiveValue*);
230 230
231 bool hasSelectorForId(const AtomicString&) const; 231 bool hasSelectorForId(const AtomicString&) const;
232 bool hasSelectorForClass(const AtomicString&) const; 232 bool hasSelectorForClass(const AtomicString&) const;
233 bool hasSelectorForAttribute(const AtomicString&) const; 233 bool hasSelectorForAttribute(const AtomicString&) const;
234 234
235 CSSFontSelector* fontSelector() const { return m_fontSelector.get(); } 235 CSSFontSelector* fontSelector() const { return m_fontSelector.get(); }
236 #if ENABLE(CSS_DEVICE_ADAPTATION)
237 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol ver.get(); } 236 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol ver.get(); }
238 #endif
239 237
240 void addViewportDependentMediaQueryResult(const MediaQueryExp*, bool result) ; 238 void addViewportDependentMediaQueryResult(const MediaQueryExp*, bool result) ;
241 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM ediaQueryResults.isEmpty(); } 239 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM ediaQueryResults.isEmpty(); }
242 bool affectedByViewportChange() const; 240 bool affectedByViewportChange() const;
243 241
244 void addKeyframeStyle(PassRefPtr<StyleRuleKeyframes>); 242 void addKeyframeStyle(PassRefPtr<StyleRuleKeyframes>);
245 243
246 bool checkRegionStyle(Element* regionElement); 244 bool checkRegionStyle(Element* regionElement);
247 245
248 bool usesSiblingRules() const { return !m_features.siblingRules.isEmpty(); } 246 bool usesSiblingRules() const { return !m_features.siblingRules.isEmpty(); }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 RefPtr<RenderStyle> m_rootDefaultStyle; 418 RefPtr<RenderStyle> m_rootDefaultStyle;
421 419
422 Document* m_document; 420 Document* m_document;
423 SelectorFilter m_selectorFilter; 421 SelectorFilter m_selectorFilter;
424 422
425 bool m_matchAuthorAndUserStyles; 423 bool m_matchAuthorAndUserStyles;
426 424
427 RefPtr<CSSFontSelector> m_fontSelector; 425 RefPtr<CSSFontSelector> m_fontSelector;
428 Vector<OwnPtr<MediaQueryResult> > m_viewportDependentMediaQueryResults; 426 Vector<OwnPtr<MediaQueryResult> > m_viewportDependentMediaQueryResults;
429 427
430 #if ENABLE(CSS_DEVICE_ADAPTATION)
431 RefPtr<ViewportStyleResolver> m_viewportStyleResolver; 428 RefPtr<ViewportStyleResolver> m_viewportStyleResolver;
432 #endif
433 429
434 const DeprecatedStyleBuilder& m_styleBuilder; 430 const DeprecatedStyleBuilder& m_styleBuilder;
435 ScopedStyleTree m_styleTree; 431 ScopedStyleTree m_styleTree;
436 432
437 RuleFeatureSet m_features; 433 RuleFeatureSet m_features;
438 OwnPtr<RuleSet> m_siblingRuleSet; 434 OwnPtr<RuleSet> m_siblingRuleSet;
439 OwnPtr<RuleSet> m_uncommonAttributeRuleSet; 435 OwnPtr<RuleSet> m_uncommonAttributeRuleSet;
440 436
441 CSSToStyleMap m_styleMap; 437 CSSToStyleMap m_styleMap;
442 InspectorCSSOMWrappers m_inspectorCSSOMWrappers; 438 InspectorCSSOMWrappers m_inspectorCSSOMWrappers;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 PseudoId ignoreDynamicPseudo = NOPSEUDO; 477 PseudoId ignoreDynamicPseudo = NOPSEUDO;
482 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 478 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
483 return true; 479 return true;
484 } 480 }
485 return false; 481 return false;
486 } 482 }
487 483
488 } // namespace WebCore 484 } // namespace WebCore
489 485
490 #endif // StyleResolver_h 486 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698