Changeset 182364 in webkit


Ignore:
Timestamp:
Apr 5, 2015 1:17:11 PM (9 years ago)
Author:
Simon Fraser
Message:

Remove "go ahead and" from comments
https://bugs.webkit.org/show_bug.cgi?id=143421

Reviewed by Darin Adler, Benjamin Poulain.

Remove the phrase "go ahead and" from comments where it doesn't add
anything (which is almost all of them).

Source/JavaScriptCore:

  • interpreter/JSStack.cpp:

(JSC::JSStack::growSlowCase):

Source/WebCore:

  • Modules/webdatabase/DatabaseTracker.cpp:

(WebCore::DatabaseTracker::deleteOriginLockFor):

  • css/CSSFontFaceSrcValue.cpp:

(WebCore::CSSFontFaceSrcValue::isSupportedFormat):

  • css/CSSPrimitiveValue.h:
  • css/StyleResolver.cpp:

(WebCore::StyleResolver::styleForKeyframe):
(WebCore::StyleResolver::styleForPage):
(WebCore::StyleResolver::applyMatchedProperties):

  • editing/ApplyStyleCommand.cpp:

(WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode):

  • loader/DocumentLoader.cpp:

(WebCore::DocumentLoader::detachFromFrame):

  • loader/cache/CachedImage.cpp:

(WebCore::CachedImage::addIncrementalDataBuffer):

  • loader/icon/IconDatabase.cpp:

(WebCore::IconDatabase::performURLImport):

  • page/PageOverlay.cpp:

(WebCore::PageOverlay::fadeAnimationTimerFired):

  • platform/ScrollView.cpp:

(WebCore::ScrollView::updateScrollbars):
(WebCore::ScrollView::scrollContents):

  • platform/graphics/DisplayRefreshMonitor.cpp:

(WebCore::DisplayRefreshMonitor::create):

  • platform/graphics/GraphicsContext.cpp:
  • platform/graphics/mac/ComplexTextController.cpp:

(WebCore::ComplexTextController::adjustGlyphsAndAdvances):

  • platform/network/HTTPParsers.cpp:

(WebCore::parseHTTPRefresh):

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::removeChild):
(WebCore::RenderBlock::layoutPositionedObjects):
(WebCore::RenderBlock::selectionGaps):
(WebCore::RenderBlock::blockSelectionGaps):
(WebCore::RenderBlock::absoluteRects):
(WebCore::RenderBlock::absoluteQuads):
(WebCore::RenderBlock::addFocusRingRects):

  • rendering/RenderBlockFlow.cpp:

(WebCore::RenderBlockFlow::layoutBlockChild):
(WebCore::RenderBlockFlow::handleAfterSideOfBlock):
(WebCore::RenderBlockFlow::adjustBlockChildForPagination):
(WebCore::RenderBlockFlow::insertFloatingObject):
(WebCore::RenderBlockFlow::addOverhangingFloats):
(WebCore::RenderBlockFlow::inlineSelectionGaps):
(WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths):

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlockFlow::appendRunsForObject):

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::positionLineBox):
(WebCore::RenderBox::sizesLogicalWidthToFitContent):

  • rendering/RenderBoxModelObject.cpp:

(WebCore::RenderBoxModelObject::paintFillLayerExtended):

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::updateLayerPositions):
(WebCore::RenderLayer::hitTestLayer):
(WebCore::RenderLayer::calculateClipRects):

  • rendering/RenderLayerModelObject.cpp:

(WebCore::RenderLayerModelObject::styleWillChange):

  • rendering/RenderLineBoxList.cpp:

(WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):

  • rendering/RenderTextLineBoxes.cpp:

(WebCore::RenderTextLineBoxes::dirtyRange):

  • rendering/line/BreakingContext.h:

(WebCore::BreakingContext::handleOutOfFlowPositioned):
(WebCore::BreakingContext::handleText):

  • rendering/line/LineBreaker.cpp:

(WebCore::LineBreaker::nextLineBreak):

  • style/StyleResolveTree.cpp:

(WebCore::Style::resolveLocal):

  • xml/XMLHttpRequestProgressEventThrottle.cpp:

(WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent):

  • xml/parser/XMLDocumentParser.cpp:

(WebCore::XMLDocumentParser::append):

Source/WebKit/mac:

  • WebView/WebDynamicScrollBarsView.mm:

(-[WebDynamicScrollBarsView updateScrollers]):

  • WebView/WebHTMLView.mm:

(-[WebHTMLView insertText:]):

Source/WebKit2:

  • Platform/unix/EnvironmentUtilities.cpp:

(WebKit::EnvironmentUtilities::stripValuesEndingWithString):

  • PluginProcess/PluginProcess.cpp:

(WebKit::PluginProcess::didClose):

  • UIProcess/API/mac/WKView.mm:

(-[WKView insertText:replacementRange:]):
(-[WKView _pluginFocusOrWindowFocusChanged:pluginComplexTextInputIdentifier:]):

  • UIProcess/Storage/LocalStorageDatabaseTracker.cpp:

(WebKit::LocalStorageDatabaseTracker::removeDatabaseWithOriginIdentifier):

Location:
trunk/Source
Files:
39 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r182347 r182364  
     12015-04-05  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Remove "go ahead and" from comments
     4        https://bugs.webkit.org/show_bug.cgi?id=143421
     5
     6        Reviewed by Darin Adler, Benjamin Poulain.
     7
     8        Remove the phrase "go ahead and" from comments where it doesn't add
     9        anything (which is almost all of them).
     10
     11        * interpreter/JSStack.cpp:
     12        (JSC::JSStack::growSlowCase):
     13
    1142015-04-04  Andreas Kling  <akling@apple.com>
    215
  • trunk/Source/JavaScriptCore/interpreter/JSStack.cpp

    r177995 r182364  
    9898        return false;
    9999
    100     // Otherwise, the growth is still within our budget. Go ahead and commit
    101     // it and return true.
     100    // Otherwise, the growth is still within our budget. Commit it and return true.
    102101    m_reservation.commit(newCommitTop, delta);
    103102    addToCommittedByteCount(delta);
  • trunk/Source/WebCore/ChangeLog

    r182356 r182364  
     12015-04-05  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Remove "go ahead and" from comments
     4        https://bugs.webkit.org/show_bug.cgi?id=143421
     5
     6        Reviewed by Darin Adler, Benjamin Poulain.
     7
     8        Remove the phrase "go ahead and" from comments where it doesn't add
     9        anything (which is almost all of them).
     10
     11        * Modules/webdatabase/DatabaseTracker.cpp:
     12        (WebCore::DatabaseTracker::deleteOriginLockFor):
     13        * css/CSSFontFaceSrcValue.cpp:
     14        (WebCore::CSSFontFaceSrcValue::isSupportedFormat):
     15        * css/CSSPrimitiveValue.h:
     16        * css/StyleResolver.cpp:
     17        (WebCore::StyleResolver::styleForKeyframe):
     18        (WebCore::StyleResolver::styleForPage):
     19        (WebCore::StyleResolver::applyMatchedProperties):
     20        * editing/ApplyStyleCommand.cpp:
     21        (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode):
     22        * loader/DocumentLoader.cpp:
     23        (WebCore::DocumentLoader::detachFromFrame):
     24        * loader/cache/CachedImage.cpp:
     25        (WebCore::CachedImage::addIncrementalDataBuffer):
     26        * loader/icon/IconDatabase.cpp:
     27        (WebCore::IconDatabase::performURLImport):
     28        * page/PageOverlay.cpp:
     29        (WebCore::PageOverlay::fadeAnimationTimerFired):
     30        * platform/ScrollView.cpp:
     31        (WebCore::ScrollView::updateScrollbars):
     32        (WebCore::ScrollView::scrollContents):
     33        * platform/graphics/DisplayRefreshMonitor.cpp:
     34        (WebCore::DisplayRefreshMonitor::create):
     35        * platform/graphics/GraphicsContext.cpp:
     36        * platform/graphics/mac/ComplexTextController.cpp:
     37        (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
     38        * platform/network/HTTPParsers.cpp:
     39        (WebCore::parseHTTPRefresh):
     40        * rendering/RenderBlock.cpp:
     41        (WebCore::RenderBlock::removeChild):
     42        (WebCore::RenderBlock::layoutPositionedObjects):
     43        (WebCore::RenderBlock::selectionGaps):
     44        (WebCore::RenderBlock::blockSelectionGaps):
     45        (WebCore::RenderBlock::absoluteRects):
     46        (WebCore::RenderBlock::absoluteQuads):
     47        (WebCore::RenderBlock::addFocusRingRects):
     48        * rendering/RenderBlockFlow.cpp:
     49        (WebCore::RenderBlockFlow::layoutBlockChild):
     50        (WebCore::RenderBlockFlow::handleAfterSideOfBlock):
     51        (WebCore::RenderBlockFlow::adjustBlockChildForPagination):
     52        (WebCore::RenderBlockFlow::insertFloatingObject):
     53        (WebCore::RenderBlockFlow::addOverhangingFloats):
     54        (WebCore::RenderBlockFlow::inlineSelectionGaps):
     55        (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths):
     56        * rendering/RenderBlockLineLayout.cpp:
     57        (WebCore::RenderBlockFlow::appendRunsForObject):
     58        * rendering/RenderBox.cpp:
     59        (WebCore::RenderBox::positionLineBox):
     60        (WebCore::RenderBox::sizesLogicalWidthToFitContent):
     61        * rendering/RenderBoxModelObject.cpp:
     62        (WebCore::RenderBoxModelObject::paintFillLayerExtended):
     63        * rendering/RenderLayer.cpp:
     64        (WebCore::RenderLayer::updateLayerPositions):
     65        (WebCore::RenderLayer::hitTestLayer):
     66        (WebCore::RenderLayer::calculateClipRects):
     67        * rendering/RenderLayerModelObject.cpp:
     68        (WebCore::RenderLayerModelObject::styleWillChange):
     69        * rendering/RenderLineBoxList.cpp:
     70        (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
     71        * rendering/RenderTextLineBoxes.cpp:
     72        (WebCore::RenderTextLineBoxes::dirtyRange):
     73        * rendering/line/BreakingContext.h:
     74        (WebCore::BreakingContext::handleOutOfFlowPositioned):
     75        (WebCore::BreakingContext::handleText):
     76        * rendering/line/LineBreaker.cpp:
     77        (WebCore::LineBreaker::nextLineBreak):
     78        * style/StyleResolveTree.cpp:
     79        (WebCore::Style::resolveLocal):
     80        * xml/XMLHttpRequestProgressEventThrottle.cpp:
     81        (WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent):
     82        * xml/parser/XMLDocumentParser.cpp:
     83        (WebCore::XMLDocumentParser::append):
     84
    1852015-04-04  Andy Estes  <aestes@apple.com>
    286
  • trunk/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp

    r181837 r182364  
    685685    // orderly clean up first when we remove its ref from the m_originLockMap.
    686686    // This may or may not be possible depending on whether other threads are
    687     // also using the OriginLock at the same time. After that, we will go ahead
    688     // and delete the lock file.
     687    // also using the OriginLock at the same time. After that, we will delete the lock file.
    689688
    690689    m_originLockMap.remove(origin->databaseIdentifier());
  • trunk/Source/WebCore/css/CSSFontFaceSrcValue.cpp

    r179242 r182364  
    5454{
    5555    // Normally we would just check the format, but in order to avoid conflicts with the old WinIE style of font-face,
    56     // we will also check to see if the URL ends with .eot.  If so, we'll go ahead and assume that we shouldn't load it.
     56    // we will also check to see if the URL ends with .eot. If so, we'll assume that we shouldn't load it.
    5757    if (m_format.isEmpty()) {
    5858        // Check for .eot.
  • trunk/Source/WebCore/css/CSSPrimitiveValue.h

    r182354 r182364  
    6060
    6161// Dimension calculations are imprecise, often resulting in values of e.g.
    62 // 44.99998. We need to go ahead and round if we're really close to the next
    63 // integer value.
     62// 44.99998. We need to round if we're really close to the next integer value.
    6463template<typename T> inline T roundForImpreciseConversion(double value)
    6564{
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r182224 r182364  
    869869    applyCascadedProperties(cascade, firstCSSProperty, lastHighPriorityProperty);
    870870
    871     // If our font got dirtied, go ahead and update it now.
     871    // If our font got dirtied, update it now.
    872872    updateFont();
    873873
     
    875875    applyCascadedProperties(cascade, firstLowPriorityProperty, lastCSSProperty);
    876876
    877     // If our font got dirtied by one of the non-essential font props,
    878     // go ahead and update it a second time.
     877    // If our font got dirtied by one of the non-essential font props, update it a second time.
    879878    updateFont();
    880879
     
    10351034    applyCascadedProperties(cascade, firstCSSProperty, lastHighPriorityProperty);
    10361035
    1037     // If our font got dirtied, go ahead and update it now.
     1036    // If our font got dirtied, update it now.
    10381037    updateFont();
    10391038
     
    17911790        return applyMatchedProperties(matchResult, element, DoNotUseMatchedPropertiesCache);
    17921791
    1793     // If our font got dirtied, go ahead and update it now.
     1792    // If our font got dirtied, update it now.
    17941793    updateFont();
    17951794
  • trunk/Source/WebCore/editing/ApplyStyleCommand.cpp

    r180809 r182364  
    10661066
    10671067            // Apply style to all nodes containing targetNode and their siblings but NOT to targetNode
    1068             // But if we've removed styledElement then go ahead and always apply the style.
     1068            // But if we've removed styledElement then always apply the style.
    10691069            if (&child != targetNode || styledElement)
    10701070                applyInlineStyleToPushDown(&child, styleToPushDown.get());
  • trunk/Source/WebCore/loader/DocumentLoader.cpp

    r182356 r182364  
    907907
    908908    // It never makes sense to have a document loader that is detached from its
    909     // frame have any loads active, so go ahead and kill all the loads.
     909    // frame have any loads active, so kill all the loads.
    910910    stopLoading();
    911911    if (m_mainResource && m_mainResource->hasClient(this))
  • trunk/Source/WebCore/loader/cache/CachedImage.cpp

    r181608 r182364  
    391391    }
    392392
    393     // Go ahead and tell our observers to try to draw.
    394     // Each chunk from the network causes observers to repaint, which will
    395     // force that chunk to decode.
     393    // Tell our observers to try to draw.
     394    // Each chunk from the network causes observers to repaint, which will force that chunk to decode.
    396395    // It would be nice to only redraw the decoded band of the image, but with the current design
    397396    // (decoding delayed until painting) that seems hard.
  • trunk/Source/WebCore/loader/icon/IconDatabase.cpp

    r179774 r182364  
    12221222            // If the pageRecord doesn't exist in this map, then no one has retained this pageURL
    12231223            // If the s_databaseCleanupCounter count is non-zero, then we're not supposed to be pruning the database in any manner,
    1224             // so go ahead and actually create a pageURLRecord for this url even though it's not retained.
     1224            // so actually create a pageURLRecord for this url even though it's not retained.
    12251225            // If database cleanup *is* allowed, we don't want to bother pulling in a page url from disk that noone is actually interested
    12261226            // in - we'll prune it later instead!
  • trunk/Source/WebCore/page/PageOverlay.cpp

    r176459 r182364  
    252252        m_fadeAnimationType = NoAnimation;
    253253
    254         // If this was a fade out, go ahead and uninstall the page overlay.
     254        // If this was a fade out, uninstall the page overlay.
    255255        if (wasFadingOut)
    256256            controller()->uninstallPageOverlay(this, PageOverlay::FadeMode::DoNotFade);
  • trunk/Source/WebCore/platform/ScrollView.cpp

    r182307 r182364  
    605605    bool hasOverlayScrollbars = (!m_horizontalScrollbar || m_horizontalScrollbar->isOverlayScrollbar()) && (!m_verticalScrollbar || m_verticalScrollbar->isOverlayScrollbar());
    606606
    607     // If we came in here with the view already needing a layout, then go ahead and do that
    608     // first. (This will be the common case, e.g., when the page changes due to window resizing for example).
     607    // If we came in here with the view already needing a layout then do that first.
     608    // (This will be the common case, e.g., when the page changes due to window resizing for example).
    609609    // This layout will not re-enter updateScrollbars and does not count towards our max layout pass total.
    610610    if (!m_scrollbarsSuppressed && !hasOverlayScrollbars) {
     
    840840            scrollContentsSlowPath(updateRect);
    841841    } else {
    842        // We need to go ahead and repaint the entire backing store.  Do it now before moving the
    843        // windowed plugins.
    844        scrollContentsSlowPath(updateRect);
     842        // We need to repaint the entire backing store. Do it now before moving the windowed plugins.
     843        scrollContentsSlowPath(updateRect);
    845844    }
    846845
  • trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp

    r181656 r182364  
    4343        return monitor.value();
    4444
    45     // If ChromeClient returned Nullopt, we'll go ahead and make one of the default type.
     45    // If ChromeClient returned Nullopt, we'll make one of the default type.
    4646
    4747#if PLATFORM(MAC)
  • trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp

    r180511 r182364  
    563563
    564564#if !USE(CG)
    565 // Implement this if you want to go ahead and push the drawing mode into your native context
    566 // immediately.
     565// Implement this if you want to go push the drawing mode into your native context immediately.
    567566void GraphicsContext::setPlatformTextDrawingMode(TextDrawingModeFlags)
    568567{
  • trunk/Source/WebCore/platform/graphics/mac/ComplexTextController.cpp

    r182236 r182364  
    690690
    691691            if (hasExtraSpacing) {
    692                 // If we're a glyph with an advance, go ahead and add in letter-spacing.
     692                // If we're a glyph with an advance, add in letter-spacing.
    693693                // That way we weed out zero width lurkers.  This behavior matches the fast text code path.
    694694                if (advance.width)
  • trunk/Source/WebCore/platform/network/HTTPParsers.cpp

    r182271 r182364  
    224224            // https://bugs.webkit.org/show_bug.cgi?id=27868
    225225            // Sometimes there is no closing quote for the end of the URL even though there was an opening quote.
    226             // If we looped over the entire alleged URL string back to the opening quote, just go ahead and use everything
     226            // If we looped over the entire alleged URL string back to the opening quote, just use everything
    227227            // after the opening quote instead.
    228228            if (urlEndPos == urlStartPos)
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r182241 r182364  
    692692    }
    693693
    694     // If this child is a block, and if our previous and next siblings are
    695     // both anonymous blocks with inline content, then we can go ahead and
    696     // fold the inline content back together.
     694    // If this child is a block, and if our previous and next siblings are both anonymous blocks
     695    // with inline content, then we can fold the inline content back together.
    697696    RenderObject* prev = oldChild.previousSibling();
    698697    RenderObject* next = oldChild.nextSibling();
     
    748747    if (canMergeAnonymousBlocks && child && !child->previousSibling() && !child->nextSibling() && canCollapseAnonymousBlockChild()) {
    749748        // The removal has knocked us down to containing only a single anonymous
    750         // box.  We can go ahead and pull the content right back up into our
    751         // box.
     749        // box. We can pull the content right back up into our box.
    752750        collapseAnonymousBoxChild(*this, downcast<RenderBlock>(child));
    753751    } else if (((prev && prev->isAnonymousBlock()) || (next && next->isAnonymousBlock())) && canCollapseAnonymousBlockChild()) {
     
    13321330            r.clearNeedsLayout();
    13331331           
    1334         // If we are paginated or in a line grid, go ahead and compute a vertical position for our object now.
     1332        // If we are paginated or in a line grid, compute a vertical position for our object now.
    13351333        // If it's wrong we'll lay out again.
    13361334        LayoutUnit oldLogicalTop = 0;
     
    18611859        result = blockSelectionGaps(rootBlock, rootBlockPhysicalPosition, offsetFromRootBlock, lastLogicalTop, lastLogicalLeft, lastLogicalRight, cache, paintInfo);
    18621860
    1863     // Go ahead and fill the vertical gap all the way to the bottom of our block if the selection extends past our block.
     1861    // Fill the vertical gap all the way to the bottom of our block if the selection extends past our block.
    18641862    if (&rootBlock == this && (selectionState() != SelectionBoth && selectionState() != SelectionEnd) && !isRubyBase() && !isRubyText()) {
    18651863        result.uniteCenter(blockSelectionGap(rootBlock, rootBlockPhysicalPosition, offsetFromRootBlock,
     
    18811879    GapRects result;
    18821880
    1883     // Go ahead and jump right to the first block child that contains some selected objects.
     1881    // Jump right to the first block child that contains some selected objects.
    18841882    RenderBox* curr;
    18851883    for (curr = firstChildBox(); curr && curr->selectionState() == SelectionNone; curr = curr->nextSiblingBox()) { }
     
    19371935            lastLogicalRight = logicalRightSelectionOffset(rootBlock, curr->logicalBottom(), cache);
    19381936        } else if (childState != SelectionNone && is<RenderBlock>(*curr)) {
    1939             // We must be a block that has some selected object inside it.  Go ahead and recur.
     1937            // We must be a block that has some selected object inside it, so recur.
    19401938            result.unite(downcast<RenderBlock>(*curr).selectionGaps(rootBlock, rootBlockPhysicalPosition, LayoutSize(offsetFromRootBlock.width() + curr->x(), offsetFromRootBlock.height() + curr->y()),
    19411939                lastLogicalTop, lastLogicalLeft, lastLogicalRight, childCache, paintInfo));
     
    33133311void RenderBlock::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumulatedOffset) const
    33143312{
    3315     // For blocks inside inlines, we go ahead and include margins so that we run right up to the
    3316     // inline boxes above and below us (thus getting merged with them to form a single irregular
    3317     // shape).
     3313    // For blocks inside inlines, we include margins so that we run right up to the inline boxes
     3314    // above and below us (thus getting merged with them to form a single irregular shape).
    33183315    if (isAnonymousBlockContinuation()) {
    33193316        // FIXME: This is wrong for block-flows that are horizontal.
     
    33293326void RenderBlock::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const
    33303327{
    3331     // For blocks inside inlines, we go ahead and include margins so that we run right up to the
    3332     // inline boxes above and below us (thus getting merged with them to form a single irregular
    3333     // shape).
     3328    // For blocks inside inlines, we include margins so that we run right up to the inline boxes
     3329    // above and below us (thus getting merged with them to form a single irregular shape).
    33343330    FloatRect localRect = isAnonymousBlockContinuation()
    33353331        ? FloatRect(0, -collapsedMarginBefore(), width(), height() + collapsedMarginBefore() + collapsedMarginAfter())
     
    34143410void RenderBlock::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer)
    34153411{
    3416     // For blocks inside inlines, we go ahead and include margins so that we run right up to the
    3417     // inline boxes above and below us (thus getting merged with them to form a single irregular
    3418     // shape).
     3412    // For blocks inside inlines, we include margins so that we run right up to the inline boxes
     3413    // above and below us (thus getting merged with them to form a single irregular shape).
    34193414    if (inlineElementContinuation()) {
    34203415        // FIXME: This check really isn't accurate.
  • trunk/Source/WebCore/rendering/RenderBlockFlow.cpp

    r182241 r182364  
    672672    LayoutSize oldLayoutDelta = view().layoutDelta();
    673673#endif
    674     // Go ahead and position the child as though it didn't collapse with the top.
     674    // Position the child as though it didn't collapse with the top.
    675675    setLogicalTopForChild(child, logicalTopEstimate, ApplyLayoutDelta);
    676676    estimateRegionRangeForBoxChild(child);
     
    729729    if (logicalTopAfterClear != logicalTopEstimate || child.needsLayout() || (paginated && childBlockFlow && childBlockFlow->shouldBreakAtLineToAvoidWidow())) {
    730730        if (child.shrinkToAvoidFloats()) {
    731             // The child's width depends on the line width.
    732             // When the child shifts to clear an item, its width can
    733             // change (because it has more available line width).
    734             // So go ahead and mark the item as dirty.
     731            // The child's width depends on the line width. When the child shifts to clear an item, its width can
     732            // change (because it has more available line width). So mark the item as dirty.
    735733            child.setChildNeedsLayout(MarkOnlyThis);
    736734        }
     
    13131311        setLogicalHeight(logicalHeight() - downcast<RenderBlockFlow>(*lastBlock).marginOffsetForSelfCollapsingBlock());
    13141312
    1315     // If we can't collapse with children then go ahead and add in the bottom margin.
     1313    // If we can't collapse with children then add in the bottom margin.
    13161314    if (!marginInfo.discardMargin() && (!marginInfo.canCollapseWithMarginAfter() && !marginInfo.canCollapseWithMarginBefore()
    13171315        && (!document().inQuirksMode() || !marginInfo.quirkContainer() || !marginInfo.hasMarginAfterQuirk())))
     
    15271525
    15281526        if (child.shrinkToAvoidFloats()) {
    1529             // The child's width depends on the line width.
    1530             // When the child shifts to clear an item, its width can
    1531             // change (because it has more available line width).
    1532             // So go ahead and mark the item as dirty.
     1527            // The child's width depends on the line width. When the child shifts to clear an item, its width can
     1528            // change (because it has more available line width). So mark the item as dirty.
    15331529            child.setChildNeedsLayout(MarkOnlyThis);
    15341530        }
     
    15891585    }
    15901586
    1591     // Similar to how we apply clearance. Go ahead and boost height() to be the place where we're going to position the child.
     1587    // Similar to how we apply clearance. Boost height() to be the place where we're going to position the child.
    15921588    setLogicalHeight(logicalHeight() + (result - oldTop));
    15931589   
     
    22322228    std::unique_ptr<FloatingObject> floatingObject = FloatingObject::create(floatBox);
    22332229   
    2234     // Our location is irrelevant if we're unsplittable or no pagination is in effect.
    2235     // Just go ahead and lay out the float.
     2230    // Our location is irrelevant if we're unsplittable or no pagination is in effect. Just lay out the float.
    22362231    bool isChildRenderBlock = floatBox.isRenderBlock();
    22372232    if (isChildRenderBlock && !floatBox.needsLayout() && view().layoutState()->pageLogicalHeightChanged())
     
    26632658            }
    26642659           
    2665             // Since the float doesn't overhang, it didn't get put into our list. We need to go ahead and add its overflow in to the
    2666             // child now.
     2660            // Since the float doesn't overhang, it didn't get put into our list. We need to add its overflow in to the child now.
    26672661            if (floatingObject->isDescendant())
    26682662                child.addOverflowFromChild(&floatingObject->renderer(), LayoutSize(xPositionForFloatIncludingMargin(floatingObject), yPositionForFloatIncludingMargin(floatingObject)));
     
    30583052    if (!hasLines()) {
    30593053        if (containsStart) {
    3060             // Go ahead and update our lastLogicalTop to be the bottom of the block.  <hr>s or empty blocks with height can trip this
    3061             // case.
     3054            // Update our lastLogicalTop to be the bottom of the block. <hr>s or empty blocks with height can trip this case.
    30623055            lastLogicalTop = blockDirectionOffset(rootBlock, offsetFromRootBlock) + logicalHeight();
    30633056            lastLogicalLeft = logicalLeftSelectionOffset(rootBlock, logicalHeight(), cache);
     
    30953088
    30963089    if (lastSelectedLine && selectionState() != SelectionEnd && selectionState() != SelectionBoth) {
    3097         // Go ahead and update our lastY to be the bottom of the last selected line.
     3090        // Update our lastY to be the bottom of the last selected line.
    30983091        lastLogicalTop = blockDirectionOffset(rootBlock, offsetFromRootBlock) + lastSelectedLine->selectionBottom();
    30993092        lastLogicalLeft = logicalLeftSelectionOffset(rootBlock, lastSelectedLine->selectionBottom(), cache);
     
    40314024       
    40324025        if (!child->isBR()) {
    4033             // Step One: determine whether or not we need to go ahead and
    4034             // terminate our current line. Each discrete chunk can become
    4035             // the new min-width, if it is the widest chunk seen so far, and
    4036             // it can also become the max-width.
     4026            // Step One: determine whether or not we need to terminate our current line.
     4027            // Each discrete chunk can become the new min-width, if it is the widest chunk
     4028            // seen so far, and it can also become the max-width.
    40374029
    40384030            // Children fall into three categories:
     
    40434035            // (2) An inline non-text non-flow object, e.g., an inline replaced element.
    40444036            // These objects can always be on a line by themselves, so in this situation
    4045             // we need to go ahead and break the current line, and then add in our own
    4046             // margins and min/max width on its own line, and then terminate the line.
     4037            // we need to break the current line, and then add in our own margins and min/max
     4038            // width on its own line, and then terminate the line.
    40474039            //
    40484040            // (3) A text object. Text runs can have breakable characters at the start,
     
    40564048            // (c) the min/max width of the string (trimmed for whitespace).
    40574049            //
    4058             // If the text string starts with whitespace, then we need to go ahead and
    4059             // terminate our current line (unless we're already in a whitespace stripping
    4060             // mode.
     4050            // If the text string starts with whitespace, then we need to terminate our current line
     4051            // (unless we're already in a whitespace stripping mode.
    40614052            //
    40624053            // If the text string has a breakable character in the middle, but didn't start
     
    41044095            if (!is<RenderInline>(*child) && !is<RenderText>(*child)) {
    41054096                // Case (2). Inline replaced elements and floats.
    4106                 // Go ahead and terminate the current line as far as
    4107                 // minwidth is concerned.
     4097                // Terminate the current line as far as minwidth is concerned.
    41084098                childMin += child->minPreferredLogicalWidth().ceilToFloat();
    41094099                childMax += child->maxPreferredLogicalWidth().ceilToFloat();
     
    42414231                    // we start and end with whitespace.
    42424232                    if (beginWS) {
    4243                         // Go ahead and end the current line.
     4233                        // End the current line.
    42444234                        minLogicalWidth = preferredWidth(minLogicalWidth, inlineMin);
    42454235                    } else {
     
    42524242
    42534243                    if (endWS) {
    4254                         // We end in whitespace, which means we can go ahead
    4255                         // and end our current line.
     4244                        // We end in whitespace, which means we can end our current line.
    42564245                        minLogicalWidth = preferredWidth(minLogicalWidth, inlineMin);
    42574246                        inlineMin = 0;
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r182286 r182364  
    104104        }
    105105
    106         // An end midpoint has been encountered within our object.  We
    107         // need to go ahead and append a run with our endpoint.
     106        // An end midpoint has been encountered within our object. We need to append a run with our endpoint.
    108107        if (static_cast<int>(nextMidpoint.offset() + 1) <= end) {
    109108            lineMidpointState.setBetweenMidpoints(true);
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r182241 r182364  
    20832083            rootBox.blockFlow().setStaticInlinePositionForChild(*this, rootBox.lineTopWithLeading(), LayoutUnit::fromFloatRound(box.logicalLeft()));
    20842084            if (style().hasStaticInlinePosition(box.isHorizontal()))
    2085                 setChildNeedsLayout(MarkOnlyThis); // Just go ahead and mark the positioned object as needing layout, so it will update its position properly.
     2085                setChildNeedsLayout(MarkOnlyThis); // Just mark the positioned object as needing layout, so it will update its position properly.
    20862086        } else {
    20872087            // Our object was a block originally, so we make our normal flow position be
     
    20912091            layer()->setStaticBlockPosition(box.logicalTop());
    20922092            if (style().hasStaticBlockPosition(box.isHorizontal()))
    2093                 setChildNeedsLayout(MarkOnlyThis); // Just go ahead and mark the positioned object as needing layout, so it will update its position properly.
     2093                setChildNeedsLayout(MarkOnlyThis); // Just mark the positioned object as needing layout, so it will update its position properly.
    20942094        }
    20952095
     
    24892489
    24902490    // Flexible box items should shrink wrap, so we lay them out at their intrinsic widths.
    2491     // In the case of columns that have a stretch alignment, we go ahead and layout at the
    2492     // stretched size to avoid an extra layout when applying alignment.
     2491    // In the case of columns that have a stretch alignment, we layout at the stretched size
     2492    // to avoid an extra layout when applying alignment.
    24932493    if (parent()->isFlexibleBox()) {
    24942494        // For multiline columns, we need to apply align-content first, so we can't stretch now.
  • trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp

    r182197 r182364  
    814814                backgroundRect.intersect(paintInfo.rect);
    815815
    816             // If we have an alpha and we are painting the root element, go ahead and blend with the base background color.
     816            // If we have an alpha and we are painting the root element, blend with the base background color.
    817817            Color baseColor;
    818818            bool shouldClearBackground = false;
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r182345 r182364  
    537537    m_has3DTransformedAncestor = flags & Seen3DTransformedLayer;
    538538
    539     // Go ahead and update the reflection's position and size.
     539    // Update the reflection's position and size.
    540540    if (m_reflection)
    541541        m_reflection->layout();
     
    50075007            ClipRectsContext clipRectsContext(rootLayer, RootRelativeClipRects, IncludeOverlayScrollbarSize);
    50085008            ClipRect clipRect = backgroundClipRect(clipRectsContext);
    5009             // Go ahead and test the enclosing clip now.
     5009            // Test the enclosing clip now.
    50105010            if (!clipRect.intersects(hitTestLocation))
    50115011                return nullptr;
     
    56045604
    56055605        if (renderer().hasClip()) {
    5606             // Clip applies to *us* as well, so go ahead and update the damageRect.
     5606            // Clip applies to *us* as well, so update the damageRect.
    56075607            LayoutRect newPosClip = downcast<RenderBox>(renderer()).clipRect(toLayoutPoint(offsetFromRootLocal), namedFlowFragment);
    56085608            backgroundRect.intersect(newPosClip);
     
    56115611        }
    56125612
    5613         // If we establish a clip at all, then go ahead and make sure our background
    5614         // rect is intersected with our layer's bounds including our visual overflow,
     5613        // If we establish a clip at all, then make sure our background rect is intersected with our layer's bounds including our visual overflow,
    56155614        // since any visual overflow like box-shadow or border-outset is not clipped by overflow:auto/hidden.
    56165615        if (renderBox()->hasVisualOverflow()) {
     
    57405739        return false;
    57415740
    5742     // If we aren't an inline flow, and our layer bounds do intersect the damage rect, then we
    5743     // can go ahead and return true.
     5741    // If we aren't an inline flow, and our layer bounds do intersect the damage rect, then we can return true.
    57445742    if (!renderer().isRenderInline()) {
    57455743        LayoutRect b = layerBounds;
  • trunk/Source/WebCore/rendering/RenderLayerModelObject.cpp

    r177259 r182364  
    102102
    103103        if (diff == StyleDifferenceLayout || diff == StyleDifferenceSimplifiedLayout) {
    104             // When a layout hint happens, we go ahead and do a repaint of the layer, since the layer could
    105             // end up being destroyed.
     104            // When a layout hint happens, we do a repaint of the layer, since the layer could end up being destroyed.
    106105            if (hasLayer()) {
    107106                if (oldStyle->position() != newStyle.position()
  • trunk/Source/WebCore/rendering/RenderLineBoxList.cpp

    r182279 r182364  
    316316    // If we have no first line box, then just bail early.
    317317    if (!firstBox) {
    318         // For an empty inline, go ahead and propagate the check up to our parent, unless the parent
    319         // is already dirty.
     318        // For an empty inline, propagate the check up to our parent, unless the parent is already dirty.
    320319        if (container.isInline() && !container.ancestorLineBoxDirty()) {
    321320            container.parent()->dirtyLinesFromChangedChild(container);
  • trunk/Source/WebCore/rendering/RenderTextLineBoxes.cpp

    r181505 r182364  
    634634                firstRootBox = &rootBox;
    635635                if (!dirtiedLines) {
    636                     // The affected area was in between two runs. Go ahead and mark the root box of
    637                     // the run after the affected area as dirty.
     636                    // The affected area was in between two runs. Mark the root box of the run after the affected area as dirty.
    638637                    firstRootBox->markDirty();
    639638                    dirtiedLines = true;
  • trunk/Source/WebCore/rendering/line/BreakingContext.h

    r182241 r182364  
    384384inline void BreakingContext::handleOutOfFlowPositioned(Vector<RenderBox*>& positionedObjects)
    385385{
    386     // If our original display wasn't an inline type, then we can
    387     // go ahead and determine our static inline position now.
     386    // If our original display wasn't an inline type, then we can determine our static inline position now.
    388387    auto& box = downcast<RenderBox>(*m_current.renderer());
    389388    bool isInlineType = box.style().isOriginalDisplayInlineType();
     
    391390        m_block.setStaticInlinePositionForChild(box, m_block.logicalHeight(), m_block.startOffsetForContent(m_block.logicalHeight()));
    392391    else {
    393         // If our original display was an INLINE type, then we can go ahead
    394         // and determine our static y position now.
     392        // If our original display was an INLINE type, then we can determine our static y position now.
    395393        box.layer()->setStaticBlockPosition(m_block.logicalHeight());
    396394    }
     
    921919
    922920            if (!m_ignoringSpaces && m_currentStyle->collapseWhiteSpace()) {
    923                 // If we encounter a newline, or if we encounter a
    924                 // second space, we need to go ahead and break up this
    925                 // run and enter a mode where we start collapsing spaces.
     921                // If we encounter a newline, or if we encounter a second space,
     922                // we need to break up this run and enter a mode where we start collapsing spaces.
    926923                if (m_currentCharacterIsSpace && previousCharacterIsSpace) {
    927924                    m_ignoringSpaces = true;
  • trunk/Source/WebCore/rendering/line/LineBreaker.cpp

    r181171 r182364  
    109109        } else if (context.currentObject()->isText()) {
    110110            if (context.handleText(wordMeasurements, m_hyphenated, consecutiveHyphenatedLines)) {
    111                 // We've hit a hard text line break. Our line break iterator is updated, so go ahead and early return.
     111                // We've hit a hard text line break. Our line break iterator is updated, so early return.
    112112                return context.lineBreak();
    113113            }
  • trunk/Source/WebCore/style/StyleResolveTree.cpp

    r182147 r182364  
    772772    }
    773773
    774     // If "rem" units are used anywhere in the document, and if the document element's font size changes, then go ahead and force font updating
     774    // If "rem" units are used anywhere in the document, and if the document element's font size changes, then force font updating
    775775    // all the way down the tree. This is simpler than having to maintain a cache of objects (and such font size changes should be rare anyway).
    776776    if (document.styleSheetCollection().usesRemUnits() && document.documentElement() == &current && localChange != NoChange && currentStyle && newStyle && currentStyle->fontSize() != newStyle->fontSize()) {
  • trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp

    r177733 r182364  
    6767
    6868    if (!isActive()) {
    69         // The timer is not active so the least frequent event for now is every byte.
    70         // Just go ahead and dispatch the event.
     69        // The timer is not active so the least frequent event for now is every byte. Just dispatch the event.
    7170
    7271        // We should not have any throttled progress event.
  • trunk/Source/WebCore/xml/parser/XMLDocumentParser.cpp

    r182266 r182364  
    122122    doWrite(source.toString());
    123123
    124     // After parsing, go ahead and dispatch image beforeload events.
     124    // After parsing, dispatch image beforeload events.
    125125    ImageLoader::dispatchPendingBeforeLoadEvents();
    126126}
  • trunk/Source/WebKit/mac/ChangeLog

    r182303 r182364  
     12015-04-05  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Remove "go ahead and" from comments
     4        https://bugs.webkit.org/show_bug.cgi?id=143421
     5
     6        Reviewed by Darin Adler, Benjamin Poulain.
     7
     8        Remove the phrase "go ahead and" from comments where it doesn't add
     9        anything (which is almost all of them).
     10
     11        * WebView/WebDynamicScrollBarsView.mm:
     12        (-[WebDynamicScrollBarsView updateScrollers]):
     13        * WebView/WebHTMLView.mm:
     14        (-[WebHTMLView insertText:]):
     15
    1162015-04-02  Brady Eidson  <beidson@apple.com>
    217
  • trunk/Source/WebKit/mac/WebView/WebDynamicScrollBarsView.mm

    r155217 r182364  
    286286    NSView *documentView = [self documentView];
    287287
    288     // If we came in here with the view already needing a layout, then go ahead and do that
    289     // first.  (This will be the common case, e.g., when the page changes due to window resizing for example).
     288    // If we came in here with the view already needing a layout, then do that first.
     289    // (This will be the common case, e.g., when the page changes due to window resizing for example).
    290290    // This layout will not re-enter updateScrollers and does not count towards our max layout pass total.
    291291    if (!_private->suppressLayout && !_private->suppressScrollers && [documentView isKindOfClass:[WebHTMLView class]]) {
  • trunk/Source/WebKit/mac/WebView/WebHTMLView.mm

    r182026 r182364  
    64036403    // insertText can be called for several reasons:
    64046404    // - If it's from normal key event processing (including key bindings), we may need to save the action to perform it later.
    6405     // - If it's from an input method, then we should go ahead and insert the text now. We assume it's from the input method if we have marked text.
     6405    // - If it's from an input method, then we should insert the text now. We assume it's from the input method if we have marked text.
    64066406    // FIXME: In theory, this could be wrong for some input methods, so we should try to find another way to determine if the call is from the input method.
    64076407    // - If it's sent outside of keyboard event processing (e.g. from Character Viewer, or when confirming an inline input area with a mouse),
  • trunk/Source/WebKit2/ChangeLog

    r182363 r182364  
     12015-04-05  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Remove "go ahead and" from comments
     4        https://bugs.webkit.org/show_bug.cgi?id=143421
     5
     6        Reviewed by Darin Adler, Benjamin Poulain.
     7
     8        Remove the phrase "go ahead and" from comments where it doesn't add
     9        anything (which is almost all of them).
     10
     11        * Platform/unix/EnvironmentUtilities.cpp:
     12        (WebKit::EnvironmentUtilities::stripValuesEndingWithString):
     13        * PluginProcess/PluginProcess.cpp:
     14        (WebKit::PluginProcess::didClose):
     15        * UIProcess/API/mac/WKView.mm:
     16        (-[WKView insertText:replacementRange:]):
     17        (-[WKView _pluginFocusOrWindowFocusChanged:pluginComplexTextInputIdentifier:]):
     18        * UIProcess/Storage/LocalStorageDatabaseTracker.cpp:
     19        (WebKit::LocalStorageDatabaseTracker::removeDatabaseWithOriginIdentifier):
     20
    1212015-04-05  Antti Koivisto  <antti@apple.com>
    222
  • trunk/Source/WebKit2/Platform/unix/EnvironmentUtilities.cpp

    r103880 r182364  
    7272        // Copy over everything right of the match to the current component start, and search from there again.
    7373        if (componentStart[0] == ':') {
    74             // If componentStart points to a colon, go ahead and copy the colon over.
     74            // If componentStart points to a colon, copy the colon over.
    7575            strcpy(componentStart, match + searchLength);
    7676        } else {
  • trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp

    r180225 r182364  
    125125void PluginProcess::didClose(IPC::Connection&)
    126126{
    127     // The UI process has crashed, just go ahead and quit.
     127    // The UI process has crashed, just quit.
    128128    // FIXME: If the plug-in is spinning in the main loop, we'll never get this message.
    129129    stopRunLoop();
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r182341 r182364  
    16091609    // insertText can be called for several reasons:
    16101610    // - If it's from normal key event processing (including key bindings), we save the action to perform it later.
    1611     // - If it's from an input method, then we should go ahead and insert the text now.
     1611    // - If it's from an input method, then we should insert the text now.
    16121612    // - If it's sent outside of keyboard event processing (e.g. from Character Viewer, or when confirming an inline input area with a mouse),
    16131613    // then we also execute it immediately, as there will be no other chance.
     
    20792079    // insertText can be called for several reasons:
    20802080    // - If it's from normal key event processing (including key bindings), we may need to save the action to perform it later.
    2081     // - If it's from an input method, then we should go ahead and insert the text now. We assume it's from the input method if we have marked text.
     2081    // - If it's from an input method, then we should insert the text now. We assume it's from the input method if we have marked text.
    20822082    // FIXME: In theory, this could be wrong for some input methods, so we should try to find another way to determine if the call is from the input method.
    20832083    // - If it's sent outside of keyboard event processing (e.g. from Character Viewer, or when confirming an inline input area with a mouse),
     
    33953395
    33963396    if (inputSourceChanged) {
    3397         // The input source changed, go ahead and discard any entered text.
     3397        // The input source changed; discard any entered text.
    33983398        [[WKTextInputWindowController sharedTextInputWindowController] unmarkText];
    33993399    }
  • trunk/Source/WebKit2/UIProcess/Storage/LocalStorageDatabaseTracker.cpp

    r180410 r182364  
    343343    m_origins.remove(originIdentifier);
    344344    if (m_origins.isEmpty()) {
    345         // There are no origins left, go ahead and delete the tracker database.
     345        // There are no origins left; delete the tracker database.
    346346        m_database.close();
    347347        deleteFile(trackerDatabasePath());
Note: See TracChangeset for help on using the changeset viewer.