OLD | NEW |
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(CSSFontSelector* fontSelector) | 356 void StyleResolver::fontsNeedUpdate(CSSFontSelector* fontSelector) |
357 { | 357 { |
358 invalidateMatchedPropertiesCache(); | 358 invalidateMatchedPropertiesCache(); |
359 m_document.setNeedsStyleRecalc(); | 359 m_document.setNeedsStyleRecalc(SubtreeStyleChange); |
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 |
367 // style recalc in the middle of tree building. We may also be invoked from
somewhere within the tree. | 367 // style recalc in the middle of tree building. We may also be invoked from
somewhere within the tree. |
368 // Reset the stack in this case, or if we see a new root element. | 368 // Reset the stack in this case, or if we see a new root element. |
369 // Otherwise just push the new parent. | 369 // Otherwise just push the new parent. |
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 bool StyleResolver::mediaQueryAffectedByViewportChange() const | 1507 bool StyleResolver::mediaQueryAffectedByViewportChange() const |
1508 { | 1508 { |
1509 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { | 1509 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { |
1510 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio
n) != m_viewportDependentMediaQueryResults[i]->m_result) | 1510 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio
n) != m_viewportDependentMediaQueryResults[i]->m_result) |
1511 return true; | 1511 return true; |
1512 } | 1512 } |
1513 return false; | 1513 return false; |
1514 } | 1514 } |
1515 | 1515 |
1516 } // namespace WebCore | 1516 } // namespace WebCore |
OLD | NEW |