Changeset 122461 in webkit


Ignore:
Timestamp:
Jul 12, 2012 8:30:55 AM (12 years ago)
Author:
leandrogracia@chromium.org
Message:

[Chromium] Remove unrequired API in WebSurroundingText.
https://bugs.webkit.org/show_bug.cgi?id=91067

Reviewed by Adam Barth.

Remove the unused first initialize method from WebSurroundingText.
Now both Chromium and LayoutTestController use the second method.

  • public/WebSurroundingText.h:

(WebSurroundingText):

  • src/WebSurroundingText.cpp:
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

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

    r122400 r122461  
     12012-07-12  Leandro Gracia Gil  <leandrogracia@chromium.org>
     2
     3        [Chromium] Remove unrequired API in WebSurroundingText.
     4        https://bugs.webkit.org/show_bug.cgi?id=91067
     5
     6        Reviewed by Adam Barth.
     7
     8        Remove the unused first initialize method from WebSurroundingText.
     9        Now both Chromium and LayoutTestController use the second method.
     10
     11        * public/WebSurroundingText.h:
     12        (WebSurroundingText):
     13        * src/WebSurroundingText.cpp:
     14
    1152012-07-11  Mark Rowe  <mrowe@apple.com>
    216
  • trunk/Source/WebKit/chromium/public/WebSurroundingText.h

    r122230 r122461  
    4949    WEBKIT_EXPORT void reset();
    5050
    51     // Initializes the object go get the surrounding text centered in the position described by the hit test.
    52     // The maximum length of the contents retrieved is defined by maxLength.
    53     WEBKIT_EXPORT void initialize(const WebHitTestResult&, size_t maxLength);
    54 
    5551    // Initializes the object to get the surrounding text centered in the position relative to a provided node.
    5652    // The maximum length of the contents retrieved is defined by maxLength.
  • trunk/Source/WebKit/chromium/src/WebSurroundingText.cpp

    r122225 r122461  
    4141namespace WebKit {
    4242
    43 void WebSurroundingText::initialize(const WebHitTestResult& hitTestResult, size_t maxLength)
    44 {
    45     Node* node = hitTestResult.node().unwrap<Node>();
    46     if (!node || !node->renderer())
    47         return;
    48 
    49     m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(hitTestResult.localPoint()))), maxLength));
    50 }
    51 
    5243void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength)
    5344{
Note: See TracChangeset for help on using the changeset viewer.