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

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

Issue 23742003: Use css-device-adapt constraining for legacy viewport tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void invalidateMatchedPropertiesCache(); 260 void invalidateMatchedPropertiesCache();
261 261
262 // Exposed for RenderStyle::isStyleAvilable(). 262 // Exposed for RenderStyle::isStyleAvilable().
263 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable; } 263 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable; }
264 264
265 // FIXME: StyleResolver should not have this member or method. 265 // FIXME: StyleResolver should not have this member or method.
266 InspectorCSSOMWrappers& inspectorCSSOMWrappers() { return m_inspectorCSSOMWr appers; } 266 InspectorCSSOMWrappers& inspectorCSSOMWrappers() { return m_inspectorCSSOMWr appers; }
267 267
268 // Exposed for ScopedStyleResolver. 268 // Exposed for ScopedStyleResolver.
269 // FIXME: Likely belongs on viewportStyleResolver. 269 // FIXME: Likely belongs on viewportStyleResolver.
270 void collectViewportRules(RuleSet*); 270 void collectViewportRules(RuleSet*, bool author);
kenneth.r.christiansen 2013/09/02 09:10:49 We try hard to avoid the boolean trap
rune 2013/09/03 08:27:10 Done.
271 271
272 const RuleFeatureSet& ruleFeatureSet() const { return m_features; } 272 const RuleFeatureSet& ruleFeatureSet() const { return m_features; }
273 273
274 #ifdef STYLE_STATS 274 #ifdef STYLE_STATS
275 ALWAYS_INLINE static StyleSharingStats& styleSharingStats() { return m_style SharingStats; } 275 ALWAYS_INLINE static StyleSharingStats& styleSharingStats() { return m_style SharingStats; }
276 #endif 276 #endif
277 private: 277 private:
278 // FIXME: This should probably go away, folded into FontBuilder. 278 // FIXME: This should probably go away, folded into FontBuilder.
279 void updateFont(StyleResolverState&); 279 void updateFont(StyleResolverState&);
280 280
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 PseudoId ignoreDynamicPseudo = NOPSEUDO; 370 PseudoId ignoreDynamicPseudo = NOPSEUDO;
371 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 371 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
372 return true; 372 return true;
373 } 373 }
374 return false; 374 return false;
375 } 375 }
376 376
377 } // namespace WebCore 377 } // namespace WebCore
378 378
379 #endif // StyleResolver_h 379 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698