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 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 StyleResolverState state(document(), nullptr, style); | 1517 StyleResolverState state(document(), nullptr, style); |
1518 state.setStyle(style); | 1518 state.setStyle(style); |
1519 | 1519 |
1520 for (CSSPropertyID property : properties) { | 1520 for (CSSPropertyID property : properties) { |
1521 if (property == CSSPropertyLineHeight) | 1521 if (property == CSSPropertyLineHeight) |
1522 updateFont(state); | 1522 updateFont(state); |
1523 StyleBuilder::applyProperty(property, state, propertySet.getPropertyCSSV
alue(property).get()); | 1523 StyleBuilder::applyProperty(property, state, propertySet.getPropertyCSSV
alue(property).get()); |
1524 } | 1524 } |
1525 } | 1525 } |
1526 | 1526 |
| 1527 ViewportStyleResolver* StyleResolver::viewportStyleResolver() const |
| 1528 { |
| 1529 return m_viewportStyleResolver.get(); |
| 1530 } |
| 1531 |
1527 void StyleResolver::addMediaQueryResults(const MediaQueryResultList& list) | 1532 void StyleResolver::addMediaQueryResults(const MediaQueryResultList& list) |
1528 { | 1533 { |
1529 for (size_t i = 0; i < list.size(); ++i) | 1534 for (size_t i = 0; i < list.size(); ++i) |
1530 m_viewportDependentMediaQueryResults.append(list[i]); | 1535 m_viewportDependentMediaQueryResults.append(list[i]); |
1531 } | 1536 } |
1532 | 1537 |
1533 bool StyleResolver::mediaQueryAffectedByViewportChange() const | 1538 bool StyleResolver::mediaQueryAffectedByViewportChange() const |
1534 { | 1539 { |
1535 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { | 1540 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { |
1536 if (m_medium->eval(m_viewportDependentMediaQueryResults[i]->expression()
) != m_viewportDependentMediaQueryResults[i]->result()) | 1541 if (m_medium->eval(m_viewportDependentMediaQueryResults[i]->expression()
) != m_viewportDependentMediaQueryResults[i]->result()) |
(...skipping 15 matching lines...) Expand all Loading... |
1552 visitor->trace(m_watchedSelectorsRules); | 1557 visitor->trace(m_watchedSelectorsRules); |
1553 visitor->trace(m_treeBoundaryCrossingScopes); | 1558 visitor->trace(m_treeBoundaryCrossingScopes); |
1554 visitor->trace(m_styleResourceLoader); | 1559 visitor->trace(m_styleResourceLoader); |
1555 visitor->trace(m_styleSharingLists); | 1560 visitor->trace(m_styleSharingLists); |
1556 visitor->trace(m_pendingStyleSheets); | 1561 visitor->trace(m_pendingStyleSheets); |
1557 visitor->trace(m_document); | 1562 visitor->trace(m_document); |
1558 #endif | 1563 #endif |
1559 } | 1564 } |
1560 | 1565 |
1561 } // namespace blink | 1566 } // namespace blink |
OLD | NEW |