Changeset 135553 in webkit


Ignore:
Timestamp:
Nov 22, 2012 6:54:10 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Text Autosizing: Improve handling of nested comments on reddit.com
https://bugs.webkit.org/show_bug.cgi?id=102409

Patch by John Mellor <johnme@chromium.org> on 2012-11-22
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

No longer consider overflow != visible as requiring an independent
cluster. Some sites (e.g. reddit.com) wrap ordinary blocks (such as
comments) in overflow:hidden or overflow:auto, for various reasons
(like allowing it to be scrollable, or clipping an element that sticks
out). These reasons are not sufficient justification for a new cluster.

On reddit.com this means that comments will all get the same multiplier,
rather than being independently assigned a variety of multipliers based
on how much text each comment contains (etc), which significantly
improves the look.

Test: fast/text-autosizing/cluster-narrow-in-wide-ohidden.html

  • rendering/TextAutosizer.cpp:

(WebCore::TextAutosizer::isAutosizingCluster):

LayoutTests:

Added test to confirm that overflow:hidden no longer triggers a cluster.

  • fast/text-autosizing/cluster-narrow-in-wide-ohidden-expected.html: Added.
  • fast/text-autosizing/cluster-narrow-in-wide-ohidden.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r135550 r135553  
     12012-11-22  John Mellor  <johnme@chromium.org>
     2
     3        Text Autosizing: Improve handling of nested comments on reddit.com
     4        https://bugs.webkit.org/show_bug.cgi?id=102409
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Added test to confirm that overflow:hidden no longer triggers a cluster.
     9
     10        * fast/text-autosizing/cluster-narrow-in-wide-ohidden-expected.html: Added.
     11        * fast/text-autosizing/cluster-narrow-in-wide-ohidden.html: Added.
     12
    1132012-11-22  Stephen Chenney  <schenney@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r135549 r135553  
     12012-11-22  John Mellor  <johnme@chromium.org>
     2
     3        Text Autosizing: Improve handling of nested comments on reddit.com
     4        https://bugs.webkit.org/show_bug.cgi?id=102409
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        No longer consider overflow != visible as requiring an independent
     9        cluster. Some sites (e.g. reddit.com) wrap ordinary blocks (such as
     10        comments) in overflow:hidden or overflow:auto, for various reasons
     11        (like allowing it to be scrollable, or clipping an element that sticks
     12        out). These reasons are not sufficient justification for a new cluster.
     13
     14        On reddit.com this means that comments will all get the same multiplier,
     15        rather than being independently assigned a variety of multipliers based
     16        on how much text each comment contains (etc), which significantly
     17        improves the look.
     18
     19        Test: fast/text-autosizing/cluster-narrow-in-wide-ohidden.html
     20
     21        * rendering/TextAutosizer.cpp:
     22        (WebCore::TextAutosizer::isAutosizingCluster):
     23
    1242012-11-22  Pravin D  <pravind.2k4@gmail.com>
    225
  • trunk/Source/WebCore/rendering/TextAutosizer.cpp

    r130866 r135553  
    236236        || renderer->isFlexibleBoxIncludingDeprecated()
    237237        || renderer->hasColumns()
    238         || renderer->style()->overflowX() != OVISIBLE
    239         || renderer->style()->overflowY() != OVISIBLE
    240238        || renderer->containingBlock()->isHorizontalWritingMode() != renderer->isHorizontalWritingMode();
    241239    // FIXME: Tables need special handling to multiply all their columns by
Note: See TracChangeset for help on using the changeset viewer.