| 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 r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element*
); | 455 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element*
); |
| 456 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); | 456 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); |
| 457 | 457 |
| 458 // Returns true if page box (margin boxes and page borders) is visible. | 458 // Returns true if page box (margin boxes and page borders) is visible. |
| 459 bool isPageBoxVisible(int pageIndex); | 459 bool isPageBoxVisible(int pageIndex); |
| 460 | 460 |
| 461 // Returns the preferred page size and margins in pixels, assuming 96 | 461 // Returns the preferred page size and margins in pixels, assuming 96 |
| 462 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 462 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
| 463 // marginLeft must be initialized to the default values that are used if | 463 // marginLeft must be initialized to the default values that are used if |
| 464 // auto is specified. | 464 // auto is specified. |
| 465 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi
nTop, int& marginRight, int& marginBottom, int& marginLeft); | 465 void pageSizeAndMarginsInPixels(int pageIndex, DoubleSize& pageSize, int& ma
rginTop, int& marginRight, int& marginBottom, int& marginLeft); |
| 466 | 466 |
| 467 ResourceFetcher* fetcher() { return m_fetcher.get(); } | 467 ResourceFetcher* fetcher() { return m_fetcher.get(); } |
| 468 | 468 |
| 469 void attachLayoutTree(const AttachContext& = AttachContext()) override; | 469 void attachLayoutTree(const AttachContext& = AttachContext()) override; |
| 470 void detachLayoutTree(const AttachContext& = AttachContext()) override; | 470 void detachLayoutTree(const AttachContext& = AttachContext()) override; |
| 471 | 471 |
| 472 // If you have a Document, use layoutView() instead which is faster. | 472 // If you have a Document, use layoutView() instead which is faster. |
| 473 void layoutObject() const = delete; | 473 void layoutObject() const = delete; |
| 474 | 474 |
| 475 LayoutView* layoutView() const { return m_layoutView; } | 475 LayoutView* layoutView() const { return m_layoutView; } |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1460 | 1460 |
| 1461 } // namespace blink | 1461 } // namespace blink |
| 1462 | 1462 |
| 1463 #ifndef NDEBUG | 1463 #ifndef NDEBUG |
| 1464 // Outside the WebCore namespace for ease of invocation from gdb. | 1464 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1465 CORE_EXPORT void showLiveDocumentInstances(); | 1465 CORE_EXPORT void showLiveDocumentInstances(); |
| 1466 #endif | 1466 #endif |
| 1467 | 1467 |
| 1468 #endif // Document_h | 1468 #endif // Document_h |
| OLD | NEW |