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

Side by Side Diff: Source/WebCore/dom/Document.h

Issue 7932007: Merge 94508 - <rdar://problem/10071256> Retain retired custom fonts until the next style recalc (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 3 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/WebCore/css/CSSSegmentedFontFace.cpp ('k') | Source/WebCore/dom/Document.cpp » ('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, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 class DocumentLoader; 74 class DocumentLoader;
75 class DocumentMarkerController; 75 class DocumentMarkerController;
76 class DocumentType; 76 class DocumentType;
77 class DocumentWeakReference; 77 class DocumentWeakReference;
78 class EditingText; 78 class EditingText;
79 class Element; 79 class Element;
80 class EntityReference; 80 class EntityReference;
81 class Event; 81 class Event;
82 class EventListener; 82 class EventListener;
83 class EventQueue; 83 class EventQueue;
84 class FontData;
84 class FormAssociatedElement; 85 class FormAssociatedElement;
85 class Frame; 86 class Frame;
86 class FrameView; 87 class FrameView;
87 class HTMLCanvasElement; 88 class HTMLCanvasElement;
88 class HTMLCollection; 89 class HTMLCollection;
89 class HTMLAllCollection; 90 class HTMLAllCollection;
90 class HTMLDocument; 91 class HTMLDocument;
91 class HTMLElement; 92 class HTMLElement;
92 class HTMLFormElement; 93 class HTMLFormElement;
93 class HTMLFrameOwnerElement; 94 class HTMLFrameOwnerElement;
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 PassRefPtr<EditingText> createEditingTextNode(const String&); 541 PassRefPtr<EditingText> createEditingTextNode(const String&);
541 542
542 virtual void recalcStyle(StyleChange = NoChange); 543 virtual void recalcStyle(StyleChange = NoChange);
543 bool childNeedsAndNotInStyleRecalc(); 544 bool childNeedsAndNotInStyleRecalc();
544 virtual void updateStyleIfNeeded(); 545 virtual void updateStyleIfNeeded();
545 void updateLayout(); 546 void updateLayout();
546 void updateLayoutIgnorePendingStylesheets(); 547 void updateLayoutIgnorePendingStylesheets();
547 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); 548 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*);
548 PassRefPtr<RenderStyle> styleForPage(int pageIndex); 549 PassRefPtr<RenderStyle> styleForPage(int pageIndex);
549 550
551 void retireCustomFont(FontData*);
552
550 // Returns true if page box (margin boxes and page borders) is visible. 553 // Returns true if page box (margin boxes and page borders) is visible.
551 bool isPageBoxVisible(int pageIndex); 554 bool isPageBoxVisible(int pageIndex);
552 555
553 // Returns the preferred page size and margins in pixels, assuming 96 556 // Returns the preferred page size and margins in pixels, assuming 96
554 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 557 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
555 // marginLeft must be initialized to the default values that are used if 558 // marginLeft must be initialized to the default values that are used if
556 // auto is specified. 559 // auto is specified.
557 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi nTop, int& marginRight, int& marginBottom, int& marginLeft); 560 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi nTop, int& marginRight, int& marginBottom, int& marginLeft);
558 561
559 static void updateStyleForAllDocuments(); // FIXME: Try to reduce the # of c alls to this function. 562 static void updateStyleForAllDocuments(); // FIXME: Try to reduce the # of c alls to this function.
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 void updateTitle(const StringWithDirection&); 1134 void updateTitle(const StringWithDirection&);
1132 void updateFocusAppearanceTimerFired(Timer<Document>*); 1135 void updateFocusAppearanceTimerFired(Timer<Document>*);
1133 void updateBaseURL(); 1136 void updateBaseURL();
1134 1137
1135 void cacheDocumentElement() const; 1138 void cacheDocumentElement() const;
1136 1139
1137 void buildAccessKeyMap(TreeScope* root); 1140 void buildAccessKeyMap(TreeScope* root);
1138 1141
1139 void createStyleSelector(); 1142 void createStyleSelector();
1140 1143
1144 void deleteRetiredCustomFonts();
1145
1141 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult& ) const; 1146 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult& ) const;
1142 1147
1143 void loadEventDelayTimerFired(Timer<Document>*); 1148 void loadEventDelayTimerFired(Timer<Document>*);
1144 1149
1145 #if ENABLE(PAGE_VISIBILITY_API) 1150 #if ENABLE(PAGE_VISIBILITY_API)
1146 PageVisibilityState visibilityState() const; 1151 PageVisibilityState visibilityState() const;
1147 #endif 1152 #endif
1148 1153
1149 int m_guardRefCount; 1154 int m_guardRefCount;
1150 1155
1151 OwnPtr<CSSStyleSelector> m_styleSelector; 1156 OwnPtr<CSSStyleSelector> m_styleSelector;
1152 bool m_didCalculateStyleSelector; 1157 bool m_didCalculateStyleSelector;
1153 bool m_hasDirtyStyleSelector; 1158 bool m_hasDirtyStyleSelector;
1154 1159 Vector<OwnPtr<FontData> > m_retiredCustomFonts;
1160
1155 mutable RefPtr<CSSPrimitiveValueCache> m_cssPrimitiveValueCache; 1161 mutable RefPtr<CSSPrimitiveValueCache> m_cssPrimitiveValueCache;
1156 1162
1157 Frame* m_frame; 1163 Frame* m_frame;
1158 OwnPtr<CachedResourceLoader> m_cachedResourceLoader; 1164 OwnPtr<CachedResourceLoader> m_cachedResourceLoader;
1159 RefPtr<DocumentParser> m_parser; 1165 RefPtr<DocumentParser> m_parser;
1160 bool m_wellFormed; 1166 bool m_wellFormed;
1161 1167
1162 // Document URLs. 1168 // Document URLs.
1163 KURL m_url; // Document.URL: The URL from which this document was retrieved. 1169 KURL m_url; // Document.URL: The URL from which this document was retrieved.
1164 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs . 1170 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs .
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 if (m_document) 1432 if (m_document)
1427 m_document->guardRef(); 1433 m_document->guardRef();
1428 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) 1434 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS)
1429 trackForDebugging(); 1435 trackForDebugging();
1430 #endif 1436 #endif
1431 } 1437 }
1432 1438
1433 } // namespace WebCore 1439 } // namespace WebCore
1434 1440
1435 #endif // Document_h 1441 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/WebCore/css/CSSSegmentedFontFace.cpp ('k') | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698