diff options
author | Tamas Zakor <ztamas@inf.u-szeged.hu> | 2020-02-10 15:52:16 +0100 |
---|---|---|
committer | Tamas Zakor <ztamas@inf.u-szeged.hu> | 2020-02-11 13:13:34 +0000 |
commit | 7c8b94f2916779c7e0eebd1c2dc6b8c713acb3a2 (patch) | |
tree | 39b13ee0323a52a2cf4c306a90dea7bf78a45d00 /chromium/third_party/blink/renderer/core/dom/document.h | |
parent | 1d119e1884d6ee26f1122136867c75fb50091d4f (diff) | |
download | qtwebengine-chromium-7c8b94f2916779c7e0eebd1c2dc6b8c713acb3a2.tar.gz |
[Backport] Re-land: Only invoke text and element fragment anchors after layout.
This reverts commit f3d96d04734f1e2d1384d558b72f9e8fcfca265b.
The original commit was reverted because it caused flakiness in some
browser tests (in particular, HostZoomMapBrowserTest.PageScaleIsOneChanged)
The flakiness was caused by a real bug in the CL, which is fixed in the
latest patchset. The bug was that the base::Optional pending_view_state_
was not being rest after being applied.
See https://chromium-review.googlesource.com/c/chromium/src/+/1981806/1..3
for what has changed from the original CL.
Bug: 1018632
Fixes: QTBUG-79369
Change-Id: I86fcdb403678a5890a2e9d1abcab3ea1d5a639d9
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727481}
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/document.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/dom/document.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/document.h b/chromium/third_party/blink/renderer/core/dom/document.h index ee2f8012b78..b36d9bf62b3 100644 --- a/chromium/third_party/blink/renderer/core/dom/document.h +++ b/chromium/third_party/blink/renderer/core/dom/document.h @@ -1630,6 +1630,8 @@ class CORE_EXPORT Document : public ContainerNode, return use_count_fragment_directive_; } + void ApplyScrollRestorationLogic(); + protected: void ClearXMLVersion() { xml_version_ = String(); } |