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, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 | 488 |
489 bool needsLayoutTreeUpdate() const; | 489 bool needsLayoutTreeUpdate() const; |
490 bool needsLayoutTreeUpdateForNode(const Node&) const; | 490 bool needsLayoutTreeUpdateForNode(const Node&) const; |
491 // Update ComputedStyles and attach LayoutObjects if necessary, but don't | 491 // Update ComputedStyles and attach LayoutObjects if necessary, but don't |
492 // lay out. | 492 // lay out. |
493 void updateStyleAndLayoutTree(); | 493 void updateStyleAndLayoutTree(); |
494 // Same as updateStyleAndLayoutTree() except ignoring pending stylesheets. | 494 // Same as updateStyleAndLayoutTree() except ignoring pending stylesheets. |
495 void updateStyleAndLayoutTreeIgnorePendingStylesheets(); | 495 void updateStyleAndLayoutTreeIgnorePendingStylesheets(); |
496 void updateStyleAndLayoutTreeForNode(const Node*); | 496 void updateStyleAndLayoutTreeForNode(const Node*); |
497 void updateStyleAndLayout(); | 497 void updateStyleAndLayout(); |
| 498 // Equivalent to updateStyleAndLayoutIgnorePendingStylesheets, plus scroll |
| 499 // anchoring adjustments. |
| 500 void updateScrollPosition(const Node* = nullptr); |
498 void layoutUpdated(); | 501 void layoutUpdated(); |
499 enum RunPostLayoutTasks { | 502 enum RunPostLayoutTasks { |
500 RunPostLayoutTasksAsyhnchronously, | 503 RunPostLayoutTasksAsyhnchronously, |
501 RunPostLayoutTasksSynchronously, | 504 RunPostLayoutTasksSynchronously, |
502 }; | 505 }; |
503 void updateStyleAndLayoutIgnorePendingStylesheets( | 506 void updateStyleAndLayoutIgnorePendingStylesheets( |
504 RunPostLayoutTasks = RunPostLayoutTasksAsyhnchronously); | 507 RunPostLayoutTasks = RunPostLayoutTasksAsyhnchronously); |
505 void updateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*); | 508 void updateStyleAndLayoutIgnorePendingStylesheetsForNode(const Node*); |
506 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element*); | 509 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element*); |
507 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); | 510 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); |
508 | 511 |
509 // Returns true if page box (margin boxes and page borders) is visible. | 512 // Returns true if page box (margin boxes and page borders) is visible. |
510 bool isPageBoxVisible(int pageIndex); | 513 bool isPageBoxVisible(int pageIndex); |
511 | 514 |
512 // Returns the preferred page size and margins in pixels, assuming 96 | 515 // Returns the preferred page size and margins in pixels, assuming 96 |
513 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 516 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
514 // marginLeft must be initialized to the default values that are used if | 517 // marginLeft must be initialized to the default values that are used if |
515 // auto is specified. | 518 // auto is specified. |
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1689 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1687 | 1690 |
1688 } // namespace blink | 1691 } // namespace blink |
1689 | 1692 |
1690 #ifndef NDEBUG | 1693 #ifndef NDEBUG |
1691 // Outside the WebCore namespace for ease of invocation from gdb. | 1694 // Outside the WebCore namespace for ease of invocation from gdb. |
1692 CORE_EXPORT void showLiveDocumentInstances(); | 1695 CORE_EXPORT void showLiveDocumentInstances(); |
1693 #endif | 1696 #endif |
1694 | 1697 |
1695 #endif // Document_h | 1698 #endif // Document_h |
OLD | NEW |