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

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: Rename EnsureLifecycleValidForLocationAPIsForNode 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 // Ensures that location-based data will be valid for a given node.
517 //
518 // This will involve running style and layout if they are currently dirty, and
519 // it may also run compositing inputs as well if the node is in a sticky
520 // subtree (as the sticky offset may change the node's position).
521 //
522 // Due to this you should only call this if you definitely need valid location
523 // data, otherwise use one of the |UpdateStyleAndLayout...| methods above.
524 void EnsureAuxiliaryLocationDataValidForNode(const Node*);
525
516 // Returns true if page box (margin boxes and page borders) is visible. 526 // Returns true if page box (margin boxes and page borders) is visible.
517 bool IsPageBoxVisible(int page_index); 527 bool IsPageBoxVisible(int page_index);
518 528
519 // Returns the preferred page size and margins in pixels, assuming 96 529 // Returns the preferred page size and margins in pixels, assuming 96
520 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 530 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
521 // marginLeft must be initialized to the default values that are used if 531 // marginLeft must be initialized to the default values that are used if
522 // auto is specified. 532 // auto is specified.
523 void PageSizeAndMarginsInPixels(int page_index, 533 void PageSizeAndMarginsInPixels(int page_index,
524 DoubleSize& page_size, 534 DoubleSize& page_size,
525 int& margin_top, 535 int& margin_top,
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1731 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1741 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1732 1742
1733 } // namespace blink 1743 } // namespace blink
1734 1744
1735 #ifndef NDEBUG 1745 #ifndef NDEBUG
1736 // Outside the WebCore namespace for ease of invocation from gdb. 1746 // Outside the WebCore namespace for ease of invocation from gdb.
1737 CORE_EXPORT void showLiveDocumentInstances(); 1747 CORE_EXPORT void showLiveDocumentInstances();
1738 #endif 1748 #endif
1739 1749
1740 #endif // Document_h 1750 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698