Changeset 84982 in webkit


Ignore:
Timestamp:
Apr 26, 2011 4:53:03 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-04-26 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r84951.
http://trac.webkit.org/changeset/84951
https://bugs.webkit.org/show_bug.cgi?id=59558

"breaks chromium compile" (Requested by dpranke on #webkit).

  • WebKit.gyp:
  • public/WebFrame.h:
  • public/WebWidget.h:
  • public/mac/WebSubstringUtil.h: Removed.
  • src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::firstRectForCharacterRange):
  • src/WebFrameImpl.h:
  • src/WebPopupMenuImpl.cpp:
  • src/WebPopupMenuImpl.h:
  • src/WebViewImpl.cpp:
  • src/WebViewImpl.h:
  • src/mac/WebSubstringUtil.mm: Removed.
Location:
trunk/Source/WebKit/chromium
Files:
2 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r84967 r84982  
     12011-04-26  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r84951.
     4        http://trac.webkit.org/changeset/84951
     5        https://bugs.webkit.org/show_bug.cgi?id=59558
     6
     7        "breaks chromium compile" (Requested by dpranke on #webkit).
     8
     9        * WebKit.gyp:
     10        * public/WebFrame.h:
     11        * public/WebWidget.h:
     12        * public/mac/WebSubstringUtil.h: Removed.
     13        * src/WebFrameImpl.cpp:
     14        (WebKit::WebFrameImpl::firstRectForCharacterRange):
     15        * src/WebFrameImpl.h:
     16        * src/WebPopupMenuImpl.cpp:
     17        * src/WebPopupMenuImpl.h:
     18        * src/WebViewImpl.cpp:
     19        * src/WebViewImpl.h:
     20        * src/mac/WebSubstringUtil.mm: Removed.
     21
    1222011-04-26  Daniel Cheng  <dcheng@chromium.org>
    223
  • trunk/Source/WebKit/chromium/WebKit.gyp

    r84953 r84982  
    9797                'public/mac/WebSandboxSupport.h',
    9898                'public/mac/WebScreenInfoFactory.h',
    99                 'public/mac/WebSubstringUtil.h',
    10099                'public/mac/WebThemeEngine.h',
    101100                'public/WebAccessibilityCache.h',
     
    386385                'src/mac/WebInputEventFactory.mm',
    387386                'src/mac/WebScreenInfoFactory.mm',
    388                 'src/mac/WebSubstringUtil.mm',
    389387                'src/LocalFileSystemChromium.cpp',
    390388                'src/LocalizedStrings.cpp',
  • trunk/Source/WebKit/chromium/public/WebFrame.h

    r84951 r84982  
    397397    virtual WebRange markedRange() const = 0;
    398398
    399     // Returns the frame rectangle in window coordinate space of the given text
    400     // range.
    401399    virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const = 0;
    402 
    403     // Returns the index of a character in the Frame's text stream at the given
    404     // point. The point is in the window coordinate space. Will return
    405     // WTF::notFound if the point is invalid.
    406     virtual size_t characterIndexForPoint(const WebPoint&) const = 0;
    407400
    408401    // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll,
  • trunk/Source/WebKit/chromium/public/WebWidget.h

    r84951 r84982  
    4141
    4242class WebInputEvent;
    43 class WebRange;
    4443class WebString;
    4544struct WebPoint;
     
    122121    virtual bool confirmComposition(const WebString& text) = 0;
    123122
    124     // Fetches the character range of the current composition, also called the
    125     // "marked range." Returns true and fills the out-paramters on success;
    126     // returns false on failure.
    127     virtual bool compositionRange(size_t* location, size_t* length) = 0;
    128 
    129123    // Returns the current text input type of this WebWidget.
    130124    virtual WebTextInputType textInputType() = 0;
     
    137131    // bottom of the selected line.
    138132    virtual bool selectionRange(WebPoint& start, WebPoint& end) const = 0;
    139 
    140     // Fetch the current selection range of this WebWidget. If there is no
    141     // selection, it will output a 0-length range with the location at the
    142     // caret. Returns true and fills the out-paramters on success; returns false
    143     // on failure.
    144     virtual bool caretOrSelectionRange(size_t* location, size_t* length) = 0;
    145133
    146134    // Changes the text direction of the selected input node.
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r84951 r84982  
    8686#include "Editor.h"
    8787#include "EventHandler.h"
    88 #include "FocusController.h"
    8988#include "FormState.h"
    9089#include "FrameLoadRequest.h"
     
    9291#include "FrameTree.h"
    9392#include "FrameView.h"
     93#include "HitTestResult.h"
    9494#include "HTMLCollection.h"
    9595#include "HTMLFormElement.h"
     
    100100#include "HTMLNames.h"
    101101#include "HistoryItem.h"
    102 #include "HitTestResult.h"
    103102#include "InspectorController.h"
    104103#include "Page.h"
     
    11651164        return false;
    11661165    IntRect intRect = frame()->editor()->firstRectForRange(range.get());
    1167     rect = WebRect(intRect);
    1168     // When inside an text control, don't adjust the range.
    1169     if (!selectionRoot)
    1170         rect = frame()->view()->contentsToWindow(rect);
     1166    rect = WebRect(intRect.x(), intRect.y(), intRect.width(), intRect.height());
    11711167
    11721168    return true;
    1173 }
    1174 
    1175 size_t WebFrameImpl::characterIndexForPoint(const WebPoint& webPoint) const
    1176 {
    1177     if (!frame())
    1178         return notFound;
    1179 
    1180     IntPoint point = frame()->view()->windowToContents(webPoint);
    1181     HitTestResult result = frame()->eventHandler()->hitTestResultAtPoint(point, false);
    1182     RefPtr<Range> range = frame()->rangeForPoint(result.point());
    1183     if (!range.get())
    1184         return notFound;
    1185 
    1186     size_t location, length;
    1187     TextIterator::locationAndLengthFromRange(range.get(), location, length);
    1188     return location;
    11891169}
    11901170
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.h

    r84951 r84982  
    153153    virtual WebRange markedRange() const;
    154154    virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const;
    155     virtual size_t characterIndexForPoint(const WebPoint&) const;
    156155    virtual bool executeCommand(const WebString&);
    157156    virtual bool executeCommand(const WebString&, const WebString& value);
  • trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp

    r84951 r84982  
    4444#include "WebInputEvent.h"
    4545#include "WebInputEventConversion.h"
    46 #include "WebRange.h"
    4746#include "WebRect.h"
    4847#include "WebWidgetClient.h"
     
    254253}
    255254
    256 bool WebPopupMenuImpl::compositionRange(size_t* location, size_t* length)
    257 {
    258     *location = 0;
    259     *length = 0;
    260     return false;
    261 }
    262 
    263255WebTextInputType WebPopupMenuImpl::textInputType()
    264256{
     
    269261{
    270262    return WebRect();
    271 }
    272 
    273 bool WebPopupMenuImpl::caretOrSelectionRange(size_t* location, size_t* length)
    274 {
    275     *location = 0;
    276     *length = 0;
    277     return false;
    278263}
    279264
  • trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.h

    r84951 r84982  
    5252class WebMouseEvent;
    5353class WebMouseWheelEvent;
    54 class WebRange;
    5554struct WebRect;
    5655
     
    7877    virtual bool confirmComposition();
    7978    virtual bool confirmComposition(const WebString& text);
    80     virtual bool compositionRange(size_t* location, size_t* length);
    8179    virtual WebTextInputType textInputType();
    8280    virtual WebRect caretOrSelectionBounds();
    8381    virtual bool selectionRange(WebPoint& start, WebPoint& end) const { return false; }
    84     virtual bool caretOrSelectionRange(size_t* location, size_t* length);
    8582    virtual void setTextDirection(WebTextDirection direction);
    8683    virtual bool isAcceleratedCompositingActive() const { return false; }
  • trunk/Source/WebKit/chromium/src/WebViewImpl.cpp

    r84951 r84982  
    9292#include "Settings.h"
    9393#include "SpeechInputClientImpl.h"
    94 #include "TextIterator.h"
    9594#include "Timer.h"
    9695#include "TraceEvent.h"
     
    117116#include "WebPoint.h"
    118117#include "WebPopupMenuImpl.h"
    119 #include "WebRange.h"
    120118#include "WebRect.h"
    121119#include "WebRuntimeFeatures.h"
     
    13971395}
    13981396
    1399 bool WebViewImpl::compositionRange(size_t* location, size_t* length)
    1400 {
    1401     Frame* focused = focusedWebCoreFrame();
    1402     if (!focused || !m_imeAcceptEvents)
    1403         return false;
    1404     Editor* editor = focused->editor();
    1405     if (!editor || !editor->hasComposition())
    1406         return false;
    1407 
    1408     RefPtr<Range> range = editor->compositionRange();
    1409     if (!range.get())
    1410         return false;
    1411 
    1412     if (TextIterator::locationAndLengthFromRange(range.get(), *location, *length))
    1413         return true;
    1414     return false;
    1415 }
    1416 
    14171397WebTextInputType WebViewImpl::textInputType()
    14181398{
     
    15041484    end = frame->view()->contentsToWindow(end);
    15051485    return true;
    1506 }
    1507 
    1508 bool WebViewImpl::caretOrSelectionRange(size_t* location, size_t* length)
    1509 {
    1510     const Frame* focused = focusedWebCoreFrame();
    1511     if (!focused)
    1512         return false;
    1513 
    1514     SelectionController* controller = focused->selection();
    1515     if (!controller)
    1516         return false;
    1517 
    1518     RefPtr<Range> range = controller->selection().firstRange();
    1519     if (!range.get())
    1520         return false;
    1521 
    1522     if (TextIterator::locationAndLengthFromRange(range.get(), *location, *length))
    1523         return true;
    1524     return false;
    15251486}
    15261487
  • trunk/Source/WebKit/chromium/src/WebViewImpl.h

    r84951 r84982  
    108108    virtual bool confirmComposition();
    109109    virtual bool confirmComposition(const WebString& text);
    110     virtual bool compositionRange(size_t* location, size_t* length);
    111110    virtual WebTextInputType textInputType();
    112111    virtual WebRect caretOrSelectionBounds();
    113112    virtual bool selectionRange(WebPoint& start, WebPoint& end) const;
    114     virtual bool caretOrSelectionRange(size_t* location, size_t* length);
    115113    virtual void setTextDirection(WebTextDirection direction);
    116114    virtual bool isAcceleratedCompositingActive() const;
Note: See TracChangeset for help on using the changeset viewer.