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

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: Rebase 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 run style and layout if they are currently dirty, and it may also
520 // run compositing inputs if the node is in a sticky subtree (as the sticky
521 // 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 EnsurePaintLocationDataValidForNode(const Node*);
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698