| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 while (Node* ancestor = root->parentOrShadowHostNode()) | 1622 while (Node* ancestor = root->parentOrShadowHostNode()) |
| 1623 root = ancestor; | 1623 root = ancestor; |
| 1624 if (root->childNeedsDistributionRecalc()) | 1624 if (root->childNeedsDistributionRecalc()) |
| 1625 root->recalcDistribution(); | 1625 root->recalcDistribution(); |
| 1626 } | 1626 } |
| 1627 | 1627 |
| 1628 void Document::setupFontBuilder(RenderStyle* documentStyle) | 1628 void Document::setupFontBuilder(RenderStyle* documentStyle) |
| 1629 { | 1629 { |
| 1630 FontBuilder fontBuilder; | 1630 FontBuilder fontBuilder; |
| 1631 fontBuilder.initForStyleResolve(*this, documentStyle, isSVGDocument()); | 1631 fontBuilder.initForStyleResolve(*this, documentStyle, isSVGDocument()); |
| 1632 RefPtrWillBeRawPtr<CSSFontSelector> selector = m_styleEngine->fontSelector()
; | 1632 RefPtr<CSSFontSelector> selector = m_styleEngine->fontSelector(); |
| 1633 fontBuilder.createFontForDocument(selector, documentStyle); | 1633 fontBuilder.createFontForDocument(selector, documentStyle); |
| 1634 } | 1634 } |
| 1635 | 1635 |
| 1636 void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) | 1636 void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) |
| 1637 { | 1637 { |
| 1638 ASSERT(inStyleRecalc()); | 1638 ASSERT(inStyleRecalc()); |
| 1639 ASSERT(documentElement()); | 1639 ASSERT(documentElement()); |
| 1640 | 1640 |
| 1641 RefPtr<RenderStyle> documentElementStyle = documentElement()->renderStyle(); | 1641 RefPtr<RenderStyle> documentElementStyle = documentElement()->renderStyle(); |
| 1642 if (!documentElementStyle || documentElement()->needsStyleRecalc() || change
== Force) | 1642 if (!documentElementStyle || documentElement()->needsStyleRecalc() || change
== Force) |
| (...skipping 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5521 } | 5521 } |
| 5522 | 5522 |
| 5523 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5523 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
| 5524 { | 5524 { |
| 5525 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5525 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
| 5526 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5526 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
| 5527 (*it)->invalidateCache(attrName); | 5527 (*it)->invalidateCache(attrName); |
| 5528 } | 5528 } |
| 5529 | 5529 |
| 5530 } // namespace WebCore | 5530 } // namespace WebCore |
| OLD | NEW |