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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 308123010: Trigger computation of font size when crossing foreignObject boundary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to trunk Created 6 years, 6 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
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 root = host; 1698 root = host;
1699 while (Node* ancestor = root->parentOrShadowHostNode()) 1699 while (Node* ancestor = root->parentOrShadowHostNode())
1700 root = ancestor; 1700 root = ancestor;
1701 if (root->childNeedsDistributionRecalc()) 1701 if (root->childNeedsDistributionRecalc())
1702 root->recalcDistribution(); 1702 root->recalcDistribution();
1703 } 1703 }
1704 1704
1705 void Document::setupFontBuilder(RenderStyle* documentStyle) 1705 void Document::setupFontBuilder(RenderStyle* documentStyle)
1706 { 1706 {
1707 FontBuilder fontBuilder; 1707 FontBuilder fontBuilder;
1708 fontBuilder.initForStyleResolve(*this, documentStyle, isSVGDocument()); 1708 fontBuilder.initForStyleResolve(*this, documentStyle);
1709 RefPtrWillBeRawPtr<CSSFontSelector> selector = m_styleEngine->fontSelector() ; 1709 RefPtrWillBeRawPtr<CSSFontSelector> selector = m_styleEngine->fontSelector() ;
1710 fontBuilder.createFontForDocument(selector, documentStyle); 1710 fontBuilder.createFontForDocument(selector, documentStyle);
1711 } 1711 }
1712 1712
1713 void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) 1713 void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change)
1714 { 1714 {
1715 ASSERT(inStyleRecalc()); 1715 ASSERT(inStyleRecalc());
1716 ASSERT(documentElement()); 1716 ASSERT(documentElement());
1717 1717
1718 RefPtr<RenderStyle> documentElementStyle = documentElement()->renderStyle(); 1718 RefPtr<RenderStyle> documentElementStyle = documentElement()->renderStyle();
(...skipping 4093 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 visitor->trace(m_compositorPendingAnimations); 5812 visitor->trace(m_compositorPendingAnimations);
5813 visitor->trace(m_contextDocument); 5813 visitor->trace(m_contextDocument);
5814 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5814 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5815 DocumentSupplementable::trace(visitor); 5815 DocumentSupplementable::trace(visitor);
5816 TreeScope::trace(visitor); 5816 TreeScope::trace(visitor);
5817 ContainerNode::trace(visitor); 5817 ContainerNode::trace(visitor);
5818 ExecutionContext::trace(visitor); 5818 ExecutionContext::trace(visitor);
5819 } 5819 }
5820 5820
5821 } // namespace WebCore 5821 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698