<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>22304</bug_id>
          
          <creation_ts>2008-11-16 22:47:43 -0800</creation_ts>
          <short_desc>[Transforms] Dictionary panel does not work correctly in transformed text</short_desc>
          <delta_ts>2009-01-09 13:36:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>15671</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99003</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-11-16 22:47:43 -0800</bug_when>
    <thetext>The Dictionary panel (Command-Control-D) doesn&apos;t work correctly on text in a transformed element. It seems to refuse to open up. I&apos;m guessing it&apos;s related to the relative positions of the cursor and the reported selection rects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100961</commentid>
    <comment_count>1</comment_count>
      <attachid>25660</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-12-01 21:16:06 -0800</bug_when>
    <thetext>Created attachment 25660
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100962</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-12-01 21:19:02 -0800</bug_when>
    <thetext>The relevant call stack is 
#3  0x038bc680 in WebCore::RenderText::caretRect (this=0x1c90d00c, inlineBox=0x1c90a20c, caretOffset=25, extraWidthToEndOfLine=0xbfffdc1c) at /Volumes/Cassoulet/WebKit/WebKit.git/WebCore/rendering/RenderText.cpp:388
#4  0x035a4eef in WebCore::Frame::firstRectForRange (this=0x99fac0, range=0x1aff2480) at /Volumes/Cassoulet/WebKit/WebKit.git/WebCore/page/Frame.cpp:271
#5  0x001aff54 in -[WebFrame(WebInternal) _firstRectForDOMRange:] (self=0x99fb10, _cmd=0x26e514, range=0x1af9ecd0) at /Volumes/Cassoulet/WebKit/WebKit.git/WebKit/mac/WebView/WebFrame.mm:681
#6  0x001b1382 in -[WebFrame(WebInternal) _characterRangeAtPoint:] (self=0x99fb10, _cmd=0x25fe92, point={x = 179, y = 25}) at /Volumes/Cassoulet/WebKit/WebKit.git/WebKit/mac/WebView/WebFrame.mm:973
#7  0x001cbd87 in -[WebHTMLView(WebNSTextInputSupport) characterIndexForPoint:] (self=0x1aff5170, _cmd=0x94418798, thePoint={x = 179, y = 25}) at /Volumes/Cassoulet/WebKit/WebKit.git/WebKit/mac/WebView/WebHTMLView.mm:4963
#8  0x95772c6b in _NSTSMEventHandler ()

So this depends on the caretRect stuff.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101704</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2008-12-06 18:50:06 -0800</bug_when>
    <thetext>Note: the &quot;start and end are on the same line&quot; test in Frame::firstRectForRange() is wrong for transformed elements. But fixing this still doesn&apos;t make it work in all cases.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>25660</attachid>
            <date>2008-12-01 21:16:06 -0800</date>
            <delta_ts>2008-12-01 21:16:06 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>dictionary-popup.html</filename>
            <type>text/html</type>
            <size>627</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiIKICAgImh0dHA6Ly93d3cudzMub3JnL1RSL2h0bWw0L2xvb3NlLmR0ZCI+Cgo8aHRtbCBs
YW5nPSJlbiI+CjxoZWFkPgogIDxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVu
dD0idGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4KICA8dGl0bGU+VGVzdGluZyB0aGUgRGljdGlv
YXJ5IFBvcC11cCBXaW5kb3c8L3RpdGxlPgogIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyIgbWVkaWE9
InNjcmVlbiI+CiAgICBkaXYgewogICAgICBtYXJnaW46IDQwcHg7CiAgICB9CiAgPC9zdHlsZT4K
PC9oZWFkPgo8Ym9keT4KPHA+UG9pbnQgYXQgYSB3b3JkLCBwcmVzcyBDb21tYW5kLUNvbnRyb2wt
RCB0byBnZXQgdGhlIERpY3Rpb25hcnkgd2luZG93PC9wPgo8ZGl2IHN0eWxlPSItd2Via2l0LXRy
YW5zZm9ybTogdHJhbnNsYXRlKDIwcHgsIDIwcHgpOyI+CiAgVHJ5IGhlcmUKPC9kaXY+Cgo8ZGl2
IHN0eWxlPSItd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDIwZGVnKTsgLXdlYmtpdC10cmFuc2Zv
cm0tb3JpZ2luOiB0b3AgbGVmdDsiPgogIFRyeSBoZXJlCjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>