| 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 474ff9128436f0d7bbf48f257d3190dda4a877c5..de31c3aeee1c586dcb965a20df49b956bbd11663 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.h
|
| +++ b/third_party/WebKit/Source/core/dom/Document.h
|
| @@ -235,6 +235,19 @@ enum CreateElementFlags {
|
| CreatedByFragmentParser = CreatedByParser | AsynchronousCustomElements,
|
| };
|
|
|
| +// Logged to UMA, so don't re-arrange them without creating a new histogram.
|
| +enum WouldLoadReason {
|
| + Created,
|
| + WouldLoadDisplayNone,
|
| + WouldLoadOutOfProcess,
|
| + WouldLoadZeroByZero,
|
| + WouldLoadAbove,
|
| + WouldLoadLeft,
|
| + WouldLoadVisible,
|
| +
|
| + WouldLoadReasonEnd
|
| +};
|
| +
|
| using DocumentClassFlags = unsigned char;
|
|
|
| class CORE_EXPORT Document : public ContainerNode,
|
| @@ -1275,7 +1288,8 @@ class CORE_EXPORT Document : public ContainerNode,
|
|
|
| bool isInMainFrame() const;
|
|
|
| - void onVisibilityMaybeChanged(bool visible);
|
| + void wouldLoadBecause(WouldLoadReason);
|
| + WouldLoadReason wouldLoadReason() { return m_wouldLoadReason; }
|
|
|
| PropertyRegistry* propertyRegistry();
|
|
|
| @@ -1629,7 +1643,7 @@ class CORE_EXPORT Document : public ContainerNode,
|
|
|
| Member<SnapCoordinator> m_snapCoordinator;
|
|
|
| - bool m_visibilityWasLogged;
|
| + WouldLoadReason m_wouldLoadReason;
|
|
|
| Member<PropertyRegistry> m_propertyRegistry;
|
| };
|
|
|