Changeset 122461 in webkit
- Timestamp:
- Jul 12, 2012 8:30:55 AM (12 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r122400 r122461 1 2012-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 1 15 2012-07-11 Mark Rowe <mrowe@apple.com> 2 16 -
trunk/Source/WebKit/chromium/public/WebSurroundingText.h
r122230 r122461 49 49 WEBKIT_EXPORT void reset(); 50 50 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 55 51 // Initializes the object to get the surrounding text centered in the position relative to a provided node. 56 52 // The maximum length of the contents retrieved is defined by maxLength. -
trunk/Source/WebKit/chromium/src/WebSurroundingText.cpp
r122225 r122461 41 41 namespace WebKit { 42 42 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 52 43 void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength) 53 44 {
Note: See TracChangeset
for help on using the changeset viewer.