Skip to content

Commit

Permalink
Upgrade to 112.2.70
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Apr 10, 2023
1 parent 6ea2261 commit 6a3c8d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CefSharp.Wpf.HwndHost/CefSharp.Wpf.HwndHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RootNamespace>CefSharp.Wpf.HwndHost</RootNamespace>
<CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>111.2.70</Version>
<Version>112.2.70</Version>
<Authors>The CefSharp Authors</Authors>
<Description>The CefSharp Chromium-based browser component. The CefSharp.Wpf.HwndHost.ChromiumWebBrowser control is a drop in replacement for the CefSharp.Wpf.ChromiumWebBrowser that's rougly equivilent to hosting the WinForms version in WPF.</Description>
<Copyright>Copyright © The CefSharp Authors</Copyright>
Expand All @@ -23,11 +23,11 @@
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="CefSharp.Common" Version="111.2.70" />
<PackageReference Include="CefSharp.Common" Version="112.2.70" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'net462'">
<PackageReference Include="CefSharp.Common.NETCore" Version="111.2.70" />
<PackageReference Include="CefSharp.Common.NETCore" Version="112.2.70" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 5 additions & 2 deletions CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using System.Windows.Threading;
using CefSharp.DevTools.Page;
using CefSharp.Internals;
using CefSharp.Structs;
using CefSharp.Wpf.HwndHost.Internals;

namespace CefSharp.Wpf.HwndHost
Expand Down Expand Up @@ -1860,7 +1861,7 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser)
}

/// <inheritdoc/>
public async Task<DevTools.DOM.Rect> GetContentSizeAsync()
public async Task<DomRect> GetContentSizeAsync()
{
ThrowExceptionIfDisposed();
ThrowExceptionIfBrowserNotInitialized();
Expand All @@ -1870,7 +1871,9 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser)
//Get the content size
var layoutMetricsResponse = await devToolsClient.Page.GetLayoutMetricsAsync().ConfigureAwait(continueOnCapturedContext: false);

return layoutMetricsResponse.CssContentSize;
var rect = layoutMetricsResponse.CssContentSize;

return new Structs.DomRect(rect.X, rect.Y, rect.Width, rect.Height);
}
}

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image: Visual Studio 2019

version: 111.2.70-CI{build}
version: 112.2.70-CI{build}

clone_depth: 10

Expand Down

0 comments on commit 6a3c8d7

Please sign in to comment.