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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2116283002: Don't let rounding prematurely influence document size when printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@620456-2
Patch Set: bug 467579 Created 4 years, 5 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
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, 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element* ); 453 PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element* );
454 PassRefPtr<ComputedStyle> styleForPage(int pageIndex); 454 PassRefPtr<ComputedStyle> styleForPage(int pageIndex);
455 455
456 // Returns true if page box (margin boxes and page borders) is visible. 456 // Returns true if page box (margin boxes and page borders) is visible.
457 bool isPageBoxVisible(int pageIndex); 457 bool isPageBoxVisible(int pageIndex);
458 458
459 // Returns the preferred page size and margins in pixels, assuming 96 459 // Returns the preferred page size and margins in pixels, assuming 96
460 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 460 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
461 // marginLeft must be initialized to the default values that are used if 461 // marginLeft must be initialized to the default values that are used if
462 // auto is specified. 462 // auto is specified.
463 void pageSizeAndMarginsInPixels(int pageIndex, IntSize& pageSize, int& margi nTop, int& marginRight, int& marginBottom, int& marginLeft); 463 void pageSizeAndMarginsInPixels(int pageIndex, FloatSize& pageSize, int& mar ginTop, int& marginRight, int& marginBottom, int& marginLeft);
464 464
465 ResourceFetcher* fetcher() { return m_fetcher.get(); } 465 ResourceFetcher* fetcher() { return m_fetcher.get(); }
466 466
467 void attach(const AttachContext& = AttachContext()) override; 467 void attach(const AttachContext& = AttachContext()) override;
468 void detach(const AttachContext& = AttachContext()) override; 468 void detach(const AttachContext& = AttachContext()) override;
469 469
470 // If you have a Document, use layoutView() instead which is faster. 470 // If you have a Document, use layoutView() instead which is faster.
471 void layoutObject() const = delete; 471 void layoutObject() const = delete;
472 472
473 LayoutView* layoutView() const { return m_layoutView; } 473 LayoutView* layoutView() const { return m_layoutView; }
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1458 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1459 1459
1460 } // namespace blink 1460 } // namespace blink
1461 1461
1462 #ifndef NDEBUG 1462 #ifndef NDEBUG
1463 // Outside the WebCore namespace for ease of invocation from gdb. 1463 // Outside the WebCore namespace for ease of invocation from gdb.
1464 CORE_EXPORT void showLiveDocumentInstances(); 1464 CORE_EXPORT void showLiveDocumentInstances();
1465 #endif 1465 #endif
1466 1466
1467 #endif // Document_h 1467 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698