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 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: First pass addressing reviewer comments Created 3 years, 7 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 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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 enum RunPostLayoutTasks { 506 enum RunPostLayoutTasks {
507 kRunPostLayoutTasksAsyhnchronously, 507 kRunPostLayoutTasksAsyhnchronously,
508 kRunPostLayoutTasksSynchronously, 508 kRunPostLayoutTasksSynchronously,
509 }; 509 };
510 void UpdateStyleAndLayoutIgnorePendingStylesheets( 510 void UpdateStyleAndLayoutIgnorePendingStylesheets(
511 RunPostLayoutTasks = kRunPostLayoutTasksAsyhnchronously); 511 RunPostLayoutTasks = kRunPostLayoutTasksAsyhnchronously);
512 void UpdateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*); 512 void UpdateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*);
513 PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*); 513 PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*);
514 PassRefPtr<ComputedStyle> StyleForPage(int page_index); 514 PassRefPtr<ComputedStyle> StyleForPage(int page_index);
515 515
516 // Ensure that the document lifecycle is in a valid state to call
517 // location-based APIs on a given node, advancing the lifecycle if not.
518 void EnsureLifecycleValidForLocationAPIsForNode(const Node*);
519
516 // Returns true if page box (margin boxes and page borders) is visible. 520 // Returns true if page box (margin boxes and page borders) is visible.
517 bool IsPageBoxVisible(int page_index); 521 bool IsPageBoxVisible(int page_index);
518 522
519 // Returns the preferred page size and margins in pixels, assuming 96 523 // Returns the preferred page size and margins in pixels, assuming 96
520 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 524 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
521 // marginLeft must be initialized to the default values that are used if 525 // marginLeft must be initialized to the default values that are used if
522 // auto is specified. 526 // auto is specified.
523 void PageSizeAndMarginsInPixels(int page_index, 527 void PageSizeAndMarginsInPixels(int page_index,
524 DoubleSize& page_size, 528 DoubleSize& page_size,
525 int& margin_top, 529 int& margin_top,
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1735 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1732 1736
1733 } // namespace blink 1737 } // namespace blink
1734 1738
1735 #ifndef NDEBUG 1739 #ifndef NDEBUG
1736 // Outside the WebCore namespace for ease of invocation from gdb. 1740 // Outside the WebCore namespace for ease of invocation from gdb.
1737 CORE_EXPORT void showLiveDocumentInstances(); 1741 CORE_EXPORT void showLiveDocumentInstances();
1738 #endif 1742 #endif
1739 1743
1740 #endif // Document_h 1744 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698