Title: [278267] trunk/Source/WebCore
Revision
278267
Author
[email protected]
Date
2021-05-30 20:09:59 -0700 (Sun, 30 May 2021)

Log Message

Fix some comment typos
https://bugs.webkit.org/show_bug.cgi?id=226443

Reviewed by Sam Weinig.

Trivial fixes for comment typos I noticed over the past couple of
months.

* page/scrolling/ScrollingStateTree.h:
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::drawPlatformImage):
(WebCore::GraphicsContext::drawPlatformPattern):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::hitTestList):
* rendering/RenderLayer.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (278266 => 278267)


--- trunk/Source/WebCore/ChangeLog	2021-05-31 03:02:34 UTC (rev 278266)
+++ trunk/Source/WebCore/ChangeLog	2021-05-31 03:09:59 UTC (rev 278267)
@@ -1,3 +1,21 @@
+2021-05-30  Cameron McCormack  <[email protected]>
+
+        Fix some comment typos
+        https://bugs.webkit.org/show_bug.cgi?id=226443
+
+        Reviewed by Sam Weinig.
+
+        Trivial fixes for comment typos I noticed over the past couple of
+        months.
+
+        * page/scrolling/ScrollingStateTree.h:
+        * platform/graphics/cg/GraphicsContextCG.cpp:
+        (WebCore::GraphicsContext::drawPlatformImage):
+        (WebCore::GraphicsContext::drawPlatformPattern):
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::hitTestList):
+        * rendering/RenderLayer.h:
+
 2021-05-30  Chris Dumez  <[email protected]>
 
         Drop PendingActivity from ScriptProcessorNode

Modified: trunk/Source/WebCore/page/scrolling/ScrollingStateTree.h (278266 => 278267)


--- trunk/Source/WebCore/page/scrolling/ScrollingStateTree.h	2021-05-31 03:02:34 UTC (rev 278266)
+++ trunk/Source/WebCore/page/scrolling/ScrollingStateTree.h	2021-05-31 03:09:59 UTC (rev 278267)
@@ -36,7 +36,7 @@
 class AsyncScrollingCoordinator;
 class ScrollingStateFrameScrollingNode;
 
-// The ScrollingStateTree is a tree that managed ScrollingStateNodes. The nodes keep track of the current
+// The ScrollingStateTree is a tree that manages ScrollingStateNodes. The nodes keep track of the current
 // state of scrolling related properties. Whenever any properties change, the scrolling coordinator
 // will be informed and will schedule a timer that will clone the new state tree and send it over to
 // the scrolling thread, avoiding locking. 

Modified: trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp (278266 => 278267)


--- trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp	2021-05-31 03:02:34 UTC (rev 278266)
+++ trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp	2021-05-31 03:09:59 UTC (rev 278267)
@@ -329,7 +329,7 @@
     if (options.orientation() != ImageOrientation::None) {
         CGContextConcatCTM(context, options.orientation().transformFromDefault(adjustedDestRect.size()));
         if (options.orientation().usesWidthAsHeight()) {
-            // The destination rect will have it's width and height already reversed for the orientation of
+            // The destination rect will have its width and height already reversed for the orientation of
             // the image, as it was needed for page layout, so we need to reverse it back here.
             adjustedDestRect = FloatRect(adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.height(), adjustedDestRect.width());
         }
@@ -411,7 +411,7 @@
     float w = CGImageGetWidth(image.get());
     if (w == imageSize.width() && h == imageSize.height() && !spacing.width() && !spacing.height()) {
         // FIXME: CG seems to snap the images to integral sizes. When we care (e.g. with border-image-repeat: round),
-        // we should tile all but the last, and stetch the last image to fit.
+        // we should tile all but the last, and stretch the last image to fit.
         CGContextDrawTiledImage(context, FloatRect(adjustedX, adjustedY, scaledTileWidth, scaledTileHeight), subImage.get());
     } else {
         static const CGPatternCallbacks patternCallbacks = { 0, drawPatternCallback, patternReleaseCallback };

Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (278266 => 278267)


--- trunk/Source/WebCore/rendering/RenderLayer.cpp	2021-05-31 03:02:34 UTC (rev 278266)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp	2021-05-31 03:09:59 UTC (rev 278267)
@@ -1939,7 +1939,7 @@
     return nullptr;
 }
 
-// FIXME: This neeeds a better name.
+// FIXME: This needs a better name.
 void RenderLayer::setFilterBackendNeedsRepaintingInRect(const LayoutRect& rect)
 {
     ASSERT(requiresFullLayerImageForFilters());
@@ -4328,7 +4328,7 @@
         auto* hitLayer = childLayer->hitTestLayer(rootLayer, this, request, tempResult, hitTestRect, hitTestLocation, false, transformState, zOffsetForDescendants);
 
         // If it is a list-based test, we can safely append the temporary result since it might had hit
-        // nodes but not necesserily had hitLayer set.
+        // nodes but not necessarily had hitLayer set.
         ASSERT(!result.isRectBasedTest() || request.resultIsElementList());
         if (request.resultIsElementList())
             result.append(tempResult, request);

Modified: trunk/Source/WebCore/rendering/RenderLayer.h (278266 => 278267)


--- trunk/Source/WebCore/rendering/RenderLayer.h	2021-05-31 03:02:34 UTC (rev 278266)
+++ trunk/Source/WebCore/rendering/RenderLayer.h	2021-05-31 03:09:59 UTC (rev 278267)
@@ -653,7 +653,7 @@
     };
 
     // This method figures out our layerBounds in coordinates relative to
-    // |rootLayer}.  It also computes our background and foreground clip rects
+    // |rootLayer|. It also computes our background and foreground clip rects
     // for painting/event handling.
     // Pass offsetFromRoot if known.
     void calculateRects(const ClipRectsContext&, const LayoutRect& paintDirtyRect, LayoutRect& layerBounds,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to