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

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

Issue 2352193004: Document* -> Document& for loadSubimages and friends. (Closed)
Patch Set: Added constness Created 4 years, 3 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 // Returns true if page box (margin boxes and page borders) is visible. 464 // Returns true if page box (margin boxes and page borders) is visible.
465 bool isPageBoxVisible(int pageIndex); 465 bool isPageBoxVisible(int pageIndex);
466 466
467 // Returns the preferred page size and margins in pixels, assuming 96 467 // Returns the preferred page size and margins in pixels, assuming 96
468 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 468 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
469 // marginLeft must be initialized to the default values that are used if 469 // marginLeft must be initialized to the default values that are used if
470 // auto is specified. 470 // auto is specified.
471 void pageSizeAndMarginsInPixels(int pageIndex, DoubleSize& pageSize, int& ma rginTop, int& marginRight, int& marginBottom, int& marginLeft); 471 void pageSizeAndMarginsInPixels(int pageIndex, DoubleSize& pageSize, int& ma rginTop, int& marginRight, int& marginBottom, int& marginLeft);
472 472
473 ResourceFetcher* fetcher() { return m_fetcher.get(); } 473 ResourceFetcher* fetcher() const { return m_fetcher.get(); }
474 474
475 void initialize(); 475 void initialize();
476 virtual void shutdown(); 476 virtual void shutdown();
477 477
478 void attachLayoutTree(const AttachContext& = AttachContext()) override 478 void attachLayoutTree(const AttachContext& = AttachContext()) override
479 { 479 {
480 NOTREACHED(); 480 NOTREACHED();
481 } 481 }
482 void detachLayoutTree(const AttachContext& = AttachContext()) override 482 void detachLayoutTree(const AttachContext& = AttachContext()) override
483 { 483 {
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1480 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1481 1481
1482 } // namespace blink 1482 } // namespace blink
1483 1483
1484 #ifndef NDEBUG 1484 #ifndef NDEBUG
1485 // Outside the WebCore namespace for ease of invocation from gdb. 1485 // Outside the WebCore namespace for ease of invocation from gdb.
1486 CORE_EXPORT void showLiveDocumentInstances(); 1486 CORE_EXPORT void showLiveDocumentInstances();
1487 #endif 1487 #endif
1488 1488
1489 #endif // Document_h 1489 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698