| 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, 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 PassRefPtr<EditingText> createEditingTextNode(const String&); | 541 PassRefPtr<EditingText> createEditingTextNode(const String&); |
| 542 | 542 |
| 543 void recalcStyle(StyleChange = NoChange); | 543 void recalcStyle(StyleChange = NoChange); |
| 544 bool childNeedsAndNotInStyleRecalc(); | 544 bool childNeedsAndNotInStyleRecalc(); |
| 545 virtual void updateStyleIfNeeded(); | 545 virtual void updateStyleIfNeeded(); |
| 546 void updateLayout(); | 546 void updateLayout(); |
| 547 void updateLayoutIgnorePendingStylesheets(); | 547 void updateLayoutIgnorePendingStylesheets(); |
| 548 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); | 548 PassRefPtr<RenderStyle> styleForElementIgnoringPendingStylesheets(Element*); |
| 549 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 549 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
| 550 | 550 |
| 551 void retireCustomFont(FontData*); | 551 void registerCustomFont(FontData*); |
| 552 | 552 |
| 553 // 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. |
| 554 bool isPageBoxVisible(int pageIndex); | 554 bool isPageBoxVisible(int pageIndex); |
| 555 | 555 |
| 556 // Returns the preferred page size and margins in pixels, assuming 96 | 556 // Returns the preferred page size and margins in pixels, assuming 96 |
| 557 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 557 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
| 558 // 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 |
| 559 // auto is specified. | 559 // auto is specified. |
| 560 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); |
| 561 | 561 |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 void updateTitle(const StringWithDirection&); | 1132 void updateTitle(const StringWithDirection&); |
| 1133 void updateFocusAppearanceTimerFired(Timer<Document>*); | 1133 void updateFocusAppearanceTimerFired(Timer<Document>*); |
| 1134 void updateBaseURL(); | 1134 void updateBaseURL(); |
| 1135 | 1135 |
| 1136 void cacheDocumentElement() const; | 1136 void cacheDocumentElement() const; |
| 1137 | 1137 |
| 1138 void buildAccessKeyMap(TreeScope* root); | 1138 void buildAccessKeyMap(TreeScope* root); |
| 1139 | 1139 |
| 1140 void createStyleSelector(); | 1140 void createStyleSelector(); |
| 1141 | 1141 |
| 1142 void deleteRetiredCustomFonts(); | 1142 void deleteCustomFonts(); |
| 1143 | 1143 |
| 1144 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; | 1144 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; |
| 1145 | 1145 |
| 1146 void loadEventDelayTimerFired(Timer<Document>*); | 1146 void loadEventDelayTimerFired(Timer<Document>*); |
| 1147 | 1147 |
| 1148 #if ENABLE(PAGE_VISIBILITY_API) | 1148 #if ENABLE(PAGE_VISIBILITY_API) |
| 1149 PageVisibilityState visibilityState() const; | 1149 PageVisibilityState visibilityState() const; |
| 1150 #endif | 1150 #endif |
| 1151 | 1151 |
| 1152 int m_guardRefCount; | 1152 int m_guardRefCount; |
| 1153 | 1153 |
| 1154 OwnPtr<CSSStyleSelector> m_styleSelector; | 1154 OwnPtr<CSSStyleSelector> m_styleSelector; |
| 1155 bool m_didCalculateStyleSelector; | 1155 bool m_didCalculateStyleSelector; |
| 1156 bool m_hasDirtyStyleSelector; | 1156 bool m_hasDirtyStyleSelector; |
| 1157 Vector<OwnPtr<FontData> > m_retiredCustomFonts; | 1157 Vector<OwnPtr<FontData> > m_customFonts; |
| 1158 | 1158 |
| 1159 mutable RefPtr<CSSPrimitiveValueCache> m_cssPrimitiveValueCache; | 1159 mutable RefPtr<CSSPrimitiveValueCache> m_cssPrimitiveValueCache; |
| 1160 | 1160 |
| 1161 Frame* m_frame; | 1161 Frame* m_frame; |
| 1162 OwnPtr<CachedResourceLoader> m_cachedResourceLoader; | 1162 OwnPtr<CachedResourceLoader> m_cachedResourceLoader; |
| 1163 RefPtr<DocumentParser> m_parser; | 1163 RefPtr<DocumentParser> m_parser; |
| 1164 bool m_wellFormed; | 1164 bool m_wellFormed; |
| 1165 | 1165 |
| 1166 // Document URLs. | 1166 // Document URLs. |
| 1167 KURL m_url; // Document.URL: The URL from which this document was retrieved. | 1167 KURL m_url; // Document.URL: The URL from which this document was retrieved. |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1427 if (m_document) | 1427 if (m_document) |
| 1428 m_document->guardRef(); | 1428 m_document->guardRef(); |
| 1429 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 1429 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
| 1430 trackForDebugging(); | 1430 trackForDebugging(); |
| 1431 #endif | 1431 #endif |
| 1432 } | 1432 } |
| 1433 | 1433 |
| 1434 } // namespace WebCore | 1434 } // namespace WebCore |
| 1435 | 1435 |
| 1436 #endif // Document_h | 1436 #endif // Document_h |
| OLD | NEW |