Chromium Code Reviews| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 507 enum RunPostLayoutTasks { | 507 enum RunPostLayoutTasks { |
| 508 kRunPostLayoutTasksAsyhnchronously, | 508 kRunPostLayoutTasksAsyhnchronously, |
| 509 kRunPostLayoutTasksSynchronously, | 509 kRunPostLayoutTasksSynchronously, |
| 510 }; | 510 }; |
| 511 void UpdateStyleAndLayoutIgnorePendingStylesheets( | 511 void UpdateStyleAndLayoutIgnorePendingStylesheets( |
| 512 RunPostLayoutTasks = kRunPostLayoutTasksAsyhnchronously); | 512 RunPostLayoutTasks = kRunPostLayoutTasksAsyhnchronously); |
| 513 void UpdateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*); | 513 void UpdateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*); |
| 514 PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*); | 514 PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*); |
| 515 PassRefPtr<ComputedStyle> StyleForPage(int page_index); | 515 PassRefPtr<ComputedStyle> StyleForPage(int page_index); |
| 516 | 516 |
| 517 // Ensures that location-based data will be valid for a given node. | |
| 518 // | |
| 519 // This will involve running style and layout if they are currently dirty, and | |
| 520 // it may also run compositing inputs as well if the node is in a sticky | |
| 521 // subtree (as the sticky offset may change the node's position). | |
| 522 // | |
| 523 // Due to this you should only call this if you definitely need valid location | |
| 524 // data, otherwise use one of the |UpdateStyleAndLayout...| methods above. | |
| 525 void EnsureAuxiliaryLocationDataValidForNode(const Node*); | |
|
flackr
2017/05/04 19:00:51
Maybe we should call this EnsurePaintLocationDataV
smcgruer
2017/05/08 14:32:06
Done.
| |
| 526 | |
| 517 // Returns true if page box (margin boxes and page borders) is visible. | 527 // Returns true if page box (margin boxes and page borders) is visible. |
| 518 bool IsPageBoxVisible(int page_index); | 528 bool IsPageBoxVisible(int page_index); |
| 519 | 529 |
| 520 // Returns the preferred page size and margins in pixels, assuming 96 | 530 // Returns the preferred page size and margins in pixels, assuming 96 |
| 521 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 531 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
| 522 // marginLeft must be initialized to the default values that are used if | 532 // marginLeft must be initialized to the default values that are used if |
| 523 // auto is specified. | 533 // auto is specified. |
| 524 void PageSizeAndMarginsInPixels(int page_index, | 534 void PageSizeAndMarginsInPixels(int page_index, |
| 525 DoubleSize& page_size, | 535 DoubleSize& page_size, |
| 526 int& margin_top, | 536 int& margin_top, |
| (...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1734 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1744 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1735 | 1745 |
| 1736 } // namespace blink | 1746 } // namespace blink |
| 1737 | 1747 |
| 1738 #ifndef NDEBUG | 1748 #ifndef NDEBUG |
| 1739 // Outside the WebCore namespace for ease of invocation from gdb. | 1749 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1740 CORE_EXPORT void showLiveDocumentInstances(); | 1750 CORE_EXPORT void showLiveDocumentInstances(); |
| 1741 #endif | 1751 #endif |
| 1742 | 1752 |
| 1743 #endif // Document_h | 1753 #endif // Document_h |
| OLD | NEW |