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

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

Issue 140913011: Trim FontSelector interface a bit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 if (m_styleSharingList.size() >= styleSharingListSize) 346 if (m_styleSharingList.size() >= styleSharingListSize)
347 m_styleSharingList.remove(--m_styleSharingList.end()); 347 m_styleSharingList.remove(--m_styleSharingList.end());
348 m_styleSharingList.prepend(&element); 348 m_styleSharingList.prepend(&element);
349 } 349 }
350 350
351 void StyleResolver::clearStyleSharingList() 351 void StyleResolver::clearStyleSharingList()
352 { 352 {
353 m_styleSharingList.clear(); 353 m_styleSharingList.clear();
354 } 354 }
355 355
356 void StyleResolver::fontsNeedUpdate(FontSelector* fontSelector) 356 void StyleResolver::fontsNeedUpdate(CSSFontSelector* fontSelector)
357 { 357 {
358 invalidateMatchedPropertiesCache(); 358 invalidateMatchedPropertiesCache();
359 m_document.setNeedsStyleRecalc(); 359 m_document.setNeedsStyleRecalc();
360 } 360 }
361 361
362 void StyleResolver::pushParentElement(Element& parent) 362 void StyleResolver::pushParentElement(Element& parent)
363 { 363 {
364 const ContainerNode* parentsParent = parent.parentOrShadowHostElement(); 364 const ContainerNode* parentsParent = parent.parentOrShadowHostElement();
365 365
366 // We are not always invoked consistently. For example, script execution can cause us to enter 366 // We are not always invoked consistently. For example, script execution can cause us to enter
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 bool StyleResolver::mediaQueryAffectedByViewportChange() const 1514 bool StyleResolver::mediaQueryAffectedByViewportChange() const
1515 { 1515 {
1516 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { 1516 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) {
1517 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio n) != m_viewportDependentMediaQueryResults[i]->m_result) 1517 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio n) != m_viewportDependentMediaQueryResults[i]->m_result)
1518 return true; 1518 return true;
1519 } 1519 }
1520 return false; 1520 return false;
1521 } 1521 }
1522 1522
1523 } // namespace WebCore 1523 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698