Changeset 69459 in webkit
- Timestamp:
- Oct 9, 2010 2:30:22 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r69435 r69459 1 2010-10-09 Varun Jain <varunjain@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Adding one method to the WebView interface: method to inform the 6 renderer to scroll the currently focused element into view, for 7 instance, when it is hidden due to window resizing. 8 Also adding methods to WebNode and WebElement to expose more 9 features of the underlying WebCore::Node. 10 https://bugs.webkit.org/show_bug.cgi?id=46296 11 12 * public/WebElement.h: 13 * public/WebNode.h: 14 * public/WebView.h: 15 * src/WebElement.h: 16 (WebKit::WebElement::isTextFormControlElement): 17 * src/WebNode.cpp: 18 (WebKit::WebNode::isContentEditable): 19 * src/WebViewImpl.cpp: 20 (WebKit::WebViewImpl::scrollFocusedNodeIntoView): 21 * src/WebViewImpl.h: 22 1 23 2010-10-08 Andrei Popescu <andreip@google.com> 2 24 -
trunk/WebKit/chromium/public/WebElement.h
r66647 r69459 51 51 52 52 WEBKIT_API bool isFormControlElement() const; 53 WEBKIT_API bool isTextFormControlElement() const; 53 54 WEBKIT_API WebString tagName() const; 54 55 WEBKIT_API bool hasTagName(const WebString&) const; -
trunk/WebKit/chromium/public/WebNode.h
r65743 r69459 97 97 WEBKIT_API WebString createMarkup() const; 98 98 WEBKIT_API bool isTextNode() const; 99 WEBKIT_API bool isContentEditable() const; 99 100 WEBKIT_API bool isElementNode() const; 100 101 WEBKIT_API void addEventListener(const WebString& eventType, WebDOMEventListener* listener, bool useCapture); -
trunk/WebKit/chromium/public/WebView.h
r69154 r69459 162 162 virtual void clearFocusedNode() = 0; 163 163 164 // Scrolls the node currently in focus into view. 165 virtual void scrollFocusedNodeIntoView() = 0; 166 164 167 165 168 // Zoom ---------------------------------------------------------------- -
trunk/WebKit/chromium/src/WebElement.cpp
r66647 r69459 46 46 { 47 47 return constUnwrap<Element>()->isFormControlElement(); 48 } 49 50 bool WebElement::isTextFormControlElement() const 51 { 52 return constUnwrap<Element>()->isTextFormControl(); 48 53 } 49 54 -
trunk/WebKit/chromium/src/WebNode.cpp
r65856 r69459 33 33 34 34 #include "Document.h" 35 #include "Element.h" 35 36 #include "Frame.h" 36 37 #include "FrameLoaderClientImpl.h" … … 145 146 } 146 147 148 bool WebNode::isContentEditable() const 149 { 150 return m_private->isContentEditable(); 151 } 152 147 153 bool WebNode::isElementNode() const 148 154 { -
trunk/WebKit/chromium/src/WebViewImpl.cpp
r69162 r69459 1526 1526 } 1527 1527 1528 void WebViewImpl::scrollFocusedNodeIntoView() 1529 { 1530 Node* focusedNode = focusedWebCoreNode(); 1531 if (focusedNode && focusedNode->isElementNode()) { 1532 Element* elementNode = static_cast<Element*>(focusedNode); 1533 elementNode->scrollIntoViewIfNeeded(true); 1534 } 1535 } 1536 1528 1537 double WebViewImpl::zoomLevel() 1529 1538 { -
trunk/WebKit/chromium/src/WebViewImpl.h
r69053 r69459 133 133 virtual void setInitialFocus(bool reverse); 134 134 virtual void clearFocusedNode(); 135 virtual void scrollFocusedNodeIntoView(); 135 136 virtual double zoomLevel(); 136 137 virtual double setZoomLevel(bool textOnly, double zoomLevel);
Note: See TracChangeset
for help on using the changeset viewer.