mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-11 01:13:16 +03:00
browser(webkit): fix dom agent after removing m_disableMinThreshold (#11722)
This commit is contained in:
parent
d6ca75f547
commit
1a6a97991d
@ -1,2 +1,2 @@
|
||||
1605
|
||||
Changed: dpino@igalia.com Fri Jan 28 01:07:39 UTC 2022
|
||||
1606
|
||||
Changed: yurys@chromium.org Fri 28 Jan 2022 11:21:08 AM PST
|
||||
|
@ -3330,7 +3330,7 @@ index 777a7ed4c082bd24ef719956e2a653744e0755f3..ec2d0dafb058d56955c5f5309379cd72
|
||||
{
|
||||
return context ? instrumentingAgents(*context) : nullptr;
|
||||
diff --git a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
|
||||
index f2eeb4979b81480cfe751f94ec108bf51f576e4b..a453677c10eb085a9560513ae604faa840d9ab71 100644
|
||||
index f2eeb4979b81480cfe751f94ec108bf51f576e4b..ff2a10d2456ba56079cba29adf48c1c27defc5ee 100644
|
||||
--- a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
|
||||
+++ b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
|
||||
@@ -62,12 +62,16 @@
|
||||
@ -3522,7 +3522,7 @@ index f2eeb4979b81480cfe751f94ec108bf51f576e4b..a453677c10eb085a9560513ae604faa8
|
||||
+ absoluteBounds.setHeight(LayoutUnit(std::max(*height, 1.0)));
|
||||
+ }
|
||||
+ ScrollAlignment alignment = ScrollAlignment::alignCenterIfNeeded;
|
||||
+ alignment.m_enableLegacyHorizontalVisibilityThreshold = true;
|
||||
+ alignment.m_enableLegacyHorizontalVisibilityThreshold = false; // Disable RenderLayer minium horizontal scroll threshold.
|
||||
+ renderer->scrollRectToVisible(absoluteBounds, insideFixed, { SelectionRevealMode::Reveal, alignment, alignment, ShouldAllowCrossOriginScrolling::Yes });
|
||||
+ return { };
|
||||
+}
|
||||
|
Loading…
Reference in New Issue
Block a user