| Index: third_party/WebKit/Source/core/dom/Document.h
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
|
| index 04d7cdcdbc9c1b6652df120a152158b1a2b5b80d..0276381d9115b9a6cb5ed0c44bf19074e06cc3f3 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.h
|
| +++ b/third_party/WebKit/Source/core/dom/Document.h
|
| @@ -514,6 +514,16 @@ class CORE_EXPORT Document : public ContainerNode,
|
| PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*);
|
| PassRefPtr<ComputedStyle> StyleForPage(int page_index);
|
|
|
| + // Ensures that location-based data will be valid for a given node.
|
| + //
|
| + // This will run style and layout if they are currently dirty, and it may also
|
| + // run compositing inputs if the node is in a sticky subtree (as the sticky
|
| + // offset may change the node's position).
|
| + //
|
| + // Due to this you should only call this if you definitely need valid location
|
| + // data, otherwise use one of the |UpdateStyleAndLayout...| methods above.
|
| + void EnsurePaintLocationDataValidForNode(const Node*);
|
| +
|
| // Returns true if page box (margin boxes and page borders) is visible.
|
| bool IsPageBoxVisible(int page_index);
|
|
|
|
|