Changeset 70786 in webkit


Ignore:
Timestamp:
Oct 28, 2010 10:10:19 AM (13 years ago)
Author:
tony@chromium.org
Message:

2010-10-28 Tony Chang <tony@chromium.org>

Reviewed by Kent Tamura.

[chromium] fix textInputController.{selectedRange,markedRange}
https://bugs.webkit.org/show_bug.cgi?id=48487

  • platform/chromium/test_expectations.txt: correct some comments about

firstRectForCharacterRange.

2010-10-28 Tony Chang <tony@chromium.org>

Reviewed by Kent Tamura.

[chromium] fix textInputController.{selectedRange,markedRange}
https://bugs.webkit.org/show_bug.cgi?id=48487

  • DumpRenderTree/chromium/TextInputController.cpp: (TextInputController::markedRange): Return arrays of ints, rather than a string (TextInputController::selectedRange): Ditto.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r70785 r70786  
     12010-10-28  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        [chromium] fix textInputController.{selectedRange,markedRange}
     6        https://bugs.webkit.org/show_bug.cgi?id=48487
     7
     8        * platform/chromium/test_expectations.txt: correct some comments about
     9            firstRectForCharacterRange.
     10
    1112010-10-28  Dan Bernstein  <mitz@apple.com>
    212
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r70783 r70786  
    656656BUG10435 MAC : editing/selection/designmode-no-caret.html = FAIL
    657657
    658 // Issue 3273: TextInputController::firstRectForCharacterRange not implemented.
     658// Issue 3273: TextInputController::firstRectForCharacterRange not returning
     659// the correct values for bidi/rtl text.
    659660BUG3273 : editing/selection/move-left-right.html = FAIL
    660661BUG3273 MAC : platform/mac/editing/input/caret-primary-bidi.html = FAIL PASS
     
    662663BUG3273 MAC : platform/mac/editing/input/range-for-empty-document.html = FAIL PASS
    663664BUGWK38100 : editing/inserting/caret-position.html = TEXT PASS
     665// These tests also use firstRectForCharacterRange, but they generate slightly
     666// different values.
     667BUG3273 : editing/selection/5825350-1.html = TEXT
     668BUG3273 : editing/selection/5825350-2.html = TEXT
     669BUG3273 : editing/selection/mixed-editability-10.html = TEXT
    664670
    665671// WebKit 50358:50395
    666672BUG3273 WIN LINUX : fast/text/international/thai-cursor-position.html = TEXT
    667 // WebKit roll 51512:51524
    668 BUG3273 : editing/selection/5825350-1.html = FAIL
    669 BUG3273 : editing/selection/5825350-2.html = FAIL
    670 BUG3273 : editing/selection/mixed-editability-10.html = FAIL
    671673
    672674// Linux pixeltest failure: caret is in the wrong place
  • trunk/WebKitTools/ChangeLog

    r70782 r70786  
     12010-10-28  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        [chromium] fix textInputController.{selectedRange,markedRange}
     6        https://bugs.webkit.org/show_bug.cgi?id=48487
     7
     8        * DumpRenderTree/chromium/TextInputController.cpp:
     9        (TextInputController::markedRange): Return arrays of ints, rather than a string
     10        (TextInputController::selectedRange): Ditto.
     11
    1122010-10-27  Ojan Vafai  <ojan@chromium.org>
    213
  • trunk/WebKitTools/DumpRenderTree/chromium/TextInputController.cpp

    r70555 r70786  
    4444
    4545using namespace WebKit;
    46 using namespace std;
    4746
    4847TestShell* TextInputController::testShell = 0;
     
    171170
    172171    WebRange range = mainFrame->markedRange();
    173     char buffer[30];
    174     snprintf(buffer, 30, "%d,%d", range.startOffset(), range.endOffset());
    175     result->set(string(buffer));
     172    Vector<int> intArray(2);
     173    intArray[0] = range.startOffset();
     174    intArray[1] = range.endOffset();
     175    result->set(WebBindings::makeIntArray(intArray));
    176176}
    177177
     
    185185
    186186    WebRange range = mainFrame->selectionRange();
    187     char buffer[30];
    188     snprintf(buffer, 30, "%d,%d", range.startOffset(), range.endOffset());
    189     result->set(string(buffer));
     187    Vector<int> intArray(2);
     188    intArray[0] = range.startOffset();
     189    intArray[1] = range.endOffset();
     190    result->set(WebBindings::makeIntArray(intArray));
    190191}
    191192
Note: See TracChangeset for help on using the changeset viewer.