Changeset 20186 in webkit


Ignore:
Timestamp:
Mar 14, 2007 4:37:21 AM (17 years ago)
Author:
antti
Message:

LayoutTests:

Reviewed by Mitz.


Test case for <rdar://problem/5058774>
REGRESSION: In Mail, caret appears oversized when typing in a To Do note

  • editing/style/highlight-expected.checksum: Added.
  • editing/style/highlight-expected.png: Added.
  • editing/style/highlight-expected.txt: Added.
  • editing/style/highlight.html: Added.

WebCore:

Reviewed by Mitz.


Fix <rdar://problem/5058774>
REGRESSION: In Mail, caret appears oversized when typing in a To Do note


Horizontal and vertical were switched. Was regression from
http://trac.webkit.org/projects/webkit/changeset/20103

  • rendering/RootInlineBox.cpp: (WebCore::RootInlineBox::addHighlightOverflow):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r20181 r20186  
     12007-03-14  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Mitz.
     4       
     5        Test case for <rdar://problem/5058774>
     6        REGRESSION: In Mail, caret appears oversized when typing in a To Do note
     7
     8        * editing/style/highlight-expected.checksum: Added.
     9        * editing/style/highlight-expected.png: Added.
     10        * editing/style/highlight-expected.txt: Added.
     11        * editing/style/highlight.html: Added.
     12
    1132007-03-13  Justin Garcia  <justin.garcia@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r20185 r20186  
     12007-03-14  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Mitz.
     4       
     5        Fix <rdar://problem/5058774>
     6        REGRESSION: In Mail, caret appears oversized when typing in a To Do note
     7       
     8        Horizontal and vertical were switched. Was regression from
     9        http://trac.webkit.org/projects/webkit/changeset/20103
     10
     11        * rendering/RootInlineBox.cpp:
     12        (WebCore::RootInlineBox::addHighlightOverflow):
     13
    1142007-03-14  David Hyatt  <hyatt@apple.com>
    215
  • trunk/WebCore/rendering/RootInlineBox.cpp

    r20103 r20186  
    141141    FloatRect rootRect(0, selectionTop(), width(), selectionHeight());
    142142    IntRect inflatedRect = enclosingIntRect(object()->document()->frame()->customHighlightLineRect(object()->style()->highlight(), rootRect, object()->node()));
    143     setVerticalOverflowPositions(min(leftOverflow(), inflatedRect.x()), max(rightOverflow(), inflatedRect.right()));
    144     setHorizontalOverflowPositions(min(topOverflow(), inflatedRect.y()), max(bottomOverflow(), inflatedRect.bottom()));
     143    setHorizontalOverflowPositions(min(leftOverflow(), inflatedRect.x()), max(rightOverflow(), inflatedRect.right()));
     144    setVerticalOverflowPositions(min(topOverflow(), inflatedRect.y()), max(bottomOverflow(), inflatedRect.bottom()));
    145145}
    146146
Note: See TracChangeset for help on using the changeset viewer.