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

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

Issue 227083006: [Oilpan]: Moving the FontSelector/FontCacheClient, CSSSegmentedFontFace, and FontFaceCache to the o… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « Source/core/css/resolver/FontBuilder.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | 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 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RefPtr<CSSFontSelector> selector = m_styleEngine->fontSelector(); 1632 RefPtrWillBeRawPtr<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 3871 matching lines...) Expand 10 before | Expand all | Expand 10 after
5514 (*it)->invalidateCache(attrName); 5514 (*it)->invalidateCache(attrName);
5515 } 5515 }
5516 5516
5517 void Document::trace(Visitor* visitor) 5517 void Document::trace(Visitor* visitor)
5518 { 5518 {
5519 Supplementable<Document>::trace(visitor); 5519 Supplementable<Document>::trace(visitor);
5520 ContainerNode::trace(visitor); 5520 ContainerNode::trace(visitor);
5521 } 5521 }
5522 5522
5523 } // namespace WebCore 5523 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/FontBuilder.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698