Skip to content
  • hyatt@apple.com's avatar
    https://bugs.webkit.org/show_bug.cgi?id=48776 · 6bd34681
    hyatt@apple.com authored
            
    Reviewed by Dan Bernstein.
    
    Change isVertical() on InlineBox to isHorizontal() instead.  This makes the horizontal code path come
    first if you branch on isHorizontal() and makes the code read better (since that's the more common code
    path).
    
    * rendering/InlineBox.cpp:
    (WebCore::InlineBox::logicalHeight):
    * rendering/InlineBox.h:
    (WebCore::InlineBox::InlineBox):
    (WebCore::InlineBox::isHorizontal):
    (WebCore::InlineBox::setIsHorizontal):
    (WebCore::InlineBox::width):
    (WebCore::InlineBox::height):
    (WebCore::InlineBox::logicalLeft):
    (WebCore::InlineBox::setLogicalLeft):
    (WebCore::InlineBox::logicalTop):
    (WebCore::InlineBox::setLogicalTop):
    (WebCore::InlineBox::baselinePosition):
    (WebCore::InlineBox::lineHeight):
    * rendering/InlineFlowBox.cpp:
    (WebCore::InlineFlowBox::addToLine):
    (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
    (WebCore::InlineFlowBox::computeBlockDirectionOverflow):
    (WebCore::InlineFlowBox::paintFillLayer):
    (WebCore::InlineFlowBox::paintBoxDecorations):
    (WebCore::InlineFlowBox::paintMask):
    * rendering/InlineFlowBox.h:
    (WebCore::InlineFlowBox::marginLogicalLeft):
    (WebCore::InlineFlowBox::marginLogicalRight):
    (WebCore::InlineFlowBox::borderLogicalLeft):
    (WebCore::InlineFlowBox::borderLogicalRight):
    (WebCore::InlineFlowBox::paddingLogicalLeft):
    (WebCore::InlineFlowBox::paddingLogicalRight):
    (WebCore::InlineFlowBox::setInlineDirectionOverflowPositions):
    (WebCore::InlineFlowBox::setBlockDirectionOverflowPositions):
    * rendering/InlineTextBox.cpp:
    (WebCore::InlineTextBox::selectionRect):
    (WebCore::InlineTextBox::applyShadowToGraphicsContext):
    (WebCore::paintTextWithShadows):
    (WebCore::InlineTextBox::paint):
    (WebCore::InlineTextBox::paintDecoration):
    * rendering/InlineTextBox.h:
    * rendering/RenderBlockLineLayout.cpp:
    (WebCore::RenderBlock::createLineBoxes):
    * rendering/RenderBox.cpp:
    (WebCore::RenderBox::blockDirectionOverflow):
    * rendering/RenderBox.h:
    * rendering/RenderBoxModelObject.cpp:
    (WebCore::RenderBoxModelObject::paintFillLayerExtended):
    * rendering/RenderLineBoxList.cpp:
    (WebCore::RenderLineBoxList::hitTest):
    * rendering/RootInlineBox.cpp:
    (WebCore::RootInlineBox::RootInlineBox):
    (WebCore::RootInlineBox::placeEllipsis):
    * rendering/RootInlineBox.h:
    (WebCore::RootInlineBox::baselinePosition):
    (WebCore::RootInlineBox::lineHeight):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    6bd34681