Skip to content

Commit 728420c

Browse files
authored
Fix typos (#3305)
1 parent a84d6e0 commit 728420c

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

CefSharp.OffScreen/ChromiumWebBrowser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public Bitmap ScreenshotOrNull(PopupBlending blend = PopupBlending.Main)
399399
/// It is your responsibility to dispose the returned Bitmap.
400400
/// The bitmap size is determined by the Size property set earlier.
401401
/// </summary>
402-
/// <param name="ignoreExistingScreenshot">Ignore existing bitmap (if any) and return the next avaliable bitmap</param>
402+
/// <param name="ignoreExistingScreenshot">Ignore existing bitmap (if any) and return the next available bitmap</param>
403403
/// <param name="blend">Choose which bitmap to retrieve, choose <see cref="PopupBlending.Blend"/> for a merged bitmap.</param>
404404
/// <returns>Task&lt;Bitmap&gt;.</returns>
405405
public Task<Bitmap> ScreenshotAsync(bool ignoreExistingScreenshot = false, PopupBlending blend = PopupBlending.Main)

CefSharp.WinForms/ChromiumWebBrowser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public partial class ChromiumWebBrowser : Control, IWebBrowserInternal, IWinForm
5050
/// </summary>
5151
private bool initialized;
5252
/// <summary>
53-
/// Has the underlying Cef Browser been created (slightly different to initliazed in that
53+
/// Has the underlying Cef Browser been created (slightly different to initialized in that
5454
/// the browser is initialized in an async fashion)
5555
/// </summary>
5656
private bool browserCreated;
@@ -145,7 +145,7 @@ public IBrowserSettings BrowserSettings
145145
}
146146
/// <summary>
147147
/// Activates browser upon creation, the default value is false. Prior to version 73
148-
/// the default behaviour was to activate browser on creation (Equivilent of setting this property to true).
148+
/// the default behaviour was to activate browser on creation (Equivalent of setting this property to true).
149149
/// To restore this behaviour set this value to true immediately after you create the <see cref="ChromiumWebBrowser"/> instance.
150150
/// https://bitbucket.org/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window
151151
/// </summary>
@@ -332,7 +332,7 @@ public ChromiumWebBrowser(string address, IRequestContext requestContext = null)
332332

333333
/// <summary>
334334
/// Required for designer support - this method cannot be inlined as the designer
335-
/// will attempt to load libcef.dll and will subsiquently throw an exception.
335+
/// will attempt to load libcef.dll and will subsequently throw an exception.
336336
/// TODO: Still not happy with this method name, need something better
337337
/// </summary>
338338
[MethodImpl(MethodImplOptions.NoInlining)]
@@ -395,7 +395,7 @@ protected override void Dispose(bool disposing)
395395
/// </summary>
396396
/// <param name="disposing"><see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
397397
/// <remarks>
398-
/// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsiquently throw an exception.
398+
/// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsequently throw an exception.
399399
/// </remarks>
400400
[MethodImpl(MethodImplOptions.NoInlining)]
401401
private void InternalDispose(bool disposing)

CefSharp.Wpf/ChromiumWebBrowser.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro
9191
/// </summary>
9292
private readonly string initialAddress;
9393
/// <summary>
94-
/// Has the underlying Cef Browser been created (slightly different to initliazed in that
94+
/// Has the underlying Cef Browser been created (slightly different to initialized in that
9595
/// the browser is initialized in an async fashion)
9696
/// </summary>
9797
private bool browserCreated;
@@ -336,7 +336,7 @@ static ChromiumWebBrowser()
336336
if (CefSharpSettings.ShutdownOnExit)
337337
{
338338
//Use Dispatcher.FromThread as it returns null if no dispatcher
339-
//is avaliable for this thread.
339+
//is available for this thread.
340340
var dispatcher = Dispatcher.FromThread(Thread.CurrentThread);
341341
if (dispatcher == null)
342342
{
@@ -401,7 +401,7 @@ private static void OnApplicationExit(object sender, ExitEventArgs e)
401401

402402
/// <summary>
403403
/// Required for designer support - this method cannot be inlined as the designer
404-
/// will attempt to load libcef.dll and will subsiquently throw an exception.
404+
/// will attempt to load libcef.dll and will subsequently throw an exception.
405405
/// </summary>
406406
[MethodImpl(MethodImplOptions.NoInlining)]
407407
private static void CefPreShutdown()
@@ -411,7 +411,7 @@ private static void CefPreShutdown()
411411

412412
/// <summary>
413413
/// Required for designer support - this method cannot be inlined as the designer
414-
/// will attempt to load libcef.dll and will subsiquently throw an exception.
414+
/// will attempt to load libcef.dll and will subsequently throw an exception.
415415
/// </summary>
416416
[MethodImpl(MethodImplOptions.NoInlining)]
417417
private static void CefShutdown()
@@ -437,10 +437,10 @@ public ChromiumWebBrowser()
437437
/// Initializes a new instance of the <see cref="ChromiumWebBrowser"/> class.
438438
/// Use this constructor to load the browser before it's attached to the Visual Tree.
439439
/// The underlying CefBrowser will be created with the specified <paramref name="size"/>.
440-
/// CEF requires posative values for <see cref="Size.Width"/> and <see cref="Size.Height"/>,
440+
/// CEF requires positive values for <see cref="Size.Width"/> and <see cref="Size.Height"/>,
441441
/// if values less than 1 are specified then the default value of 1 will be used instead.
442442
/// You can subscribe to the <see cref="LoadingStateChanged"/> event and attach the browser
443-
/// to it's parent control when Loading is complete (<see cref="LoadingStateChangedEventArgs.IsLoading"/> is false).
443+
/// to its parent control when Loading is complete (<see cref="LoadingStateChangedEventArgs.IsLoading"/> is false).
444444
/// </summary>
445445
/// <param name="parentWindowHwndSource">HwndSource for the Window that will host the browser.</param>
446446
/// <param name="initialAddress">address to be loaded when the browser is created.</param>
@@ -488,7 +488,7 @@ public ChromiumWebBrowser(string initialAddress)
488488
/// <summary>
489489
/// Constructor logic has been moved into this method
490490
/// Required for designer support - this method cannot be inlined as the designer
491-
/// will attempt to load libcef.dll and will subsiquently throw an exception.
491+
/// will attempt to load libcef.dll and will subsequently throw an exception.
492492
/// </summary>
493493
[MethodImpl(MethodImplOptions.NoInlining)]
494494
private void NoInliningConstructor()
@@ -604,7 +604,7 @@ protected virtual void Dispose(bool disposing)
604604
/// </summary>
605605
/// <param name="disposing"><see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
606606
/// <remarks>
607-
/// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsiquently throw an exception.
607+
/// This method cannot be inlined as the designer will attempt to load libcef.dll and will subsequently throw an exception.
608608
/// </remarks>
609609
[MethodImpl(MethodImplOptions.NoInlining)]
610610
private void InternalDispose(bool disposing)
@@ -645,7 +645,7 @@ private void InternalDispose(bool disposing)
645645

646646
browser = null;
647647

648-
// Incase we accidentally have a reference to the CEF drag data
648+
// In case we accidentally have a reference to the CEF drag data
649649
currentDragData?.Dispose();
650650
currentDragData = null;
651651

@@ -767,7 +767,7 @@ bool IRenderWebBrowser.GetScreenPoint(int viewX, int viewY, out int screenX, out
767767
screenX = 0;
768768
screenY = 0;
769769

770-
//We manually claculate the screen point as calling PointToScreen can only be called on the UI thread
770+
//We manually calculate the screen point as calling PointToScreen can only be called on the UI thread
771771
// in a sync fashion and it's easy for users to get themselves into a deadlock.
772772
if (DpiScaleFactor > 1)
773773
{
@@ -1321,7 +1321,7 @@ private static void OnTitleChanged(DependencyObject d, DependencyPropertyChanged
13211321
/// The zoom level at which the browser control is currently displaying.
13221322
/// Can be set to 0 to clear the zoom level (resets to default zoom level).
13231323
/// NOTE: For browsers that share the same render process (same origin) this
1324-
/// property is only updated when the browser changes it's visible state.
1324+
/// property is only updated when the browser changes its visible state.
13251325
/// If you have two browsers visible at the same time that share the same render
13261326
/// process then zooming one will not update this property in the other (unless
13271327
/// the control is hidden and then shown). You can isolate browser instances
@@ -2420,7 +2420,7 @@ private void ZoomReset()
24202420
/// </summary>
24212421
/// <param name="newDpi">new DPI</param>
24222422
/// <remarks>.Net 4.6.2 adds HwndSource.DpiChanged which could be used to automatically
2423-
/// handle DPI change, unforunately we still target .Net 4.5.2</remarks>
2423+
/// handle DPI change, unfortunately we still target .Net 4.5.2</remarks>
24242424
public virtual void NotifyDpiChange(float newDpi)
24252425
{
24262426
//Do nothing

CefSharp/Enums/ReferrerPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public enum ReferrerPolicy
1919
ClearReferrerOnTransitionFromSecureToInsecure,
2020

2121
/// <summary>
22-
/// Default which is equivilent to <see cref="ClearReferrerOnTransitionFromSecureToInsecure"/>
22+
/// Default which is equivalent to <see cref="ClearReferrerOnTransitionFromSecureToInsecure"/>
2323
/// </summary>
2424
Default = ClearReferrerOnTransitionFromSecureToInsecure,
2525

CefSharp/Event/JavascriptBindingCompleteEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class JavascriptBindingCompleteEventArgs : EventArgs
2323

2424
/// <summary>
2525
/// Was the object already bound. The default is false for the first js call to
26-
/// CefSharp.BindObjectAsync, and subsiquently true if already bound in a given context.
26+
/// CefSharp.BindObjectAsync, and subsequently true if already bound in a given context.
2727
/// </summary>
2828
public bool AlreadyBound { get; private set; }
2929

0 commit comments

Comments
 (0)