Title: [141352] trunk/Source/WebKit/chromium
- Revision
- 141352
- Author
- commit-qu...@webkit.org
- Date
- 2013-01-30 17:39:37 -0800 (Wed, 30 Jan 2013)
Log Message
[chromium] Add WebFrame::visibleContentRect()
https://bugs.webkit.org/show_bug.cgi?id=108311
Patch by Tien-Ren Chen <trc...@chromium.org> on 2013-01-30
Reviewed by James Robinson.
* public/WebFrame.h:
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::visibleContentRect):
(WebKit):
* src/WebFrameImpl.h:
(WebFrameImpl):
Modified Paths
Diff
Modified: trunk/Source/WebKit/chromium/ChangeLog (141351 => 141352)
--- trunk/Source/WebKit/chromium/ChangeLog 2013-01-31 01:31:12 UTC (rev 141351)
+++ trunk/Source/WebKit/chromium/ChangeLog 2013-01-31 01:39:37 UTC (rev 141352)
@@ -1,3 +1,17 @@
+2013-01-30 Tien-Ren Chen <trc...@chromium.org>
+
+ [chromium] Add WebFrame::visibleContentRect()
+ https://bugs.webkit.org/show_bug.cgi?id=108311
+
+ Reviewed by James Robinson.
+
+ * public/WebFrame.h:
+ * src/WebFrameImpl.cpp:
+ (WebKit::WebFrameImpl::visibleContentRect):
+ (WebKit):
+ * src/WebFrameImpl.h:
+ (WebFrameImpl):
+
2013-01-30 Kentaro Hara <hara...@chromium.org>
Implement KeyboardEvent constructor
Modified: trunk/Source/WebKit/chromium/public/WebFrame.h (141351 => 141352)
--- trunk/Source/WebKit/chromium/public/WebFrame.h 2013-01-31 01:31:12 UTC (rev 141351)
+++ trunk/Source/WebKit/chromium/public/WebFrame.h 2013-01-31 01:39:37 UTC (rev 141352)
@@ -170,6 +170,9 @@
// Returns true if the contents (minus scrollbars) has non-zero area.
virtual bool hasVisibleContent() const = 0;
+ // Returns the visible content rect (minus scrollbars, in absolute coordinate)
+ virtual WebRect visibleContentRect() const = 0;
+
virtual bool hasHorizontalScrollbar() const = 0;
virtual bool hasVerticalScrollbar() const = 0;
Modified: trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp (141351 => 141352)
--- trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp 2013-01-31 01:31:12 UTC (rev 141351)
+++ trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp 2013-01-31 01:39:37 UTC (rev 141352)
@@ -645,6 +645,11 @@
return frame()->view()->visibleWidth() > 0 && frame()->view()->visibleHeight() > 0;
}
+WebRect WebFrameImpl::visibleContentRect() const
+{
+ return frame()->view()->visibleContentRect();
+}
+
bool WebFrameImpl::hasHorizontalScrollbar() const
{
return frame() && frame()->view() && frame()->view()->horizontalScrollbar();
Modified: trunk/Source/WebKit/chromium/src/WebFrameImpl.h (141351 => 141352)
--- trunk/Source/WebKit/chromium/src/WebFrameImpl.h 2013-01-31 01:31:12 UTC (rev 141351)
+++ trunk/Source/WebKit/chromium/src/WebFrameImpl.h 2013-01-31 01:39:37 UTC (rev 141352)
@@ -89,6 +89,7 @@
virtual int contentsPreferredWidth() const;
virtual int documentElementScrollHeight() const;
virtual bool hasVisibleContent() const;
+ virtual WebRect visibleContentRect() const;
virtual bool hasHorizontalScrollbar() const;
virtual bool hasVerticalScrollbar() const;
virtual WebView* view() const;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes