Changeset 79656 in webkit


Ignore:
Timestamp:
Feb 24, 2011, 6:21:20 PM (15 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r79629): Non-expanding ruby base is start-aligned rather than centered
https://bugs.webkit.org/show_bug.cgi?id=55197

Reviewed by Simon Fraser.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Adjust the line boundaries even
if there are no expansion opportunities. This allows RenderRubyBase to center itself.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r79655 r79656  
     12011-02-24  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        REGRESSION (r79629): Non-expanding ruby base is start-aligned rather than centered
     6        https://bugs.webkit.org/show_bug.cgi?id=55197
     7
     8        * rendering/RenderBlockLineLayout.cpp:
     9        (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Adjust the line boundaries even
     10        if there are no expansion opportunities. This allows RenderRubyBase to center itself.
     11
    1122011-02-24  Darin Adler  <darin@apple.com>
    213
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r79629 r79656  
    413413            break;
    414414        case JUSTIFY:
     415            adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, availableLogicalWidth);
    415416            if (expansionOpportunityCount) {
    416                 adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, availableLogicalWidth);
    417417                if (trailingSpaceRun) {
    418418                    totalLogicalWidth -= trailingSpaceRun->m_box->logicalWidth();
     
    423423            // fall through
    424424        case TAAUTO:
    425             expansionOpportunityCount = 0;
    426425            // for right to left fall through to right aligned
    427426            if (style()->isLeftToRightDirection()) {
Note: See TracChangeset for help on using the changeset viewer.