Author: stippi Date: Sat Apr 3 16:38:50 2010 New Revision: 379 URL: http://mmlr.dyndns.org/changeset/379 Log: Added separate method to get the window frame and based getting the bounds on that. Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp webkit/trunk/WebKit/haiku/API/WebPage.h Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp ============================================================================== --- webkit/trunk/WebKit/haiku/API/WebPage.cpp Sat Apr 3 12:47:12 2010 (r378) +++ webkit/trunk/WebKit/haiku/API/WebPage.cpp Sat Apr 3 16:38:50 2010 (r379) @@ -486,14 +486,19 @@ return page->page(); } -BRect BWebPage::windowBounds() +BRect BWebPage::windowFrame() { - BRect bounds; + BRect frame; if (fWebView->LockLooper()) { - bounds = fWebView->Window()->Bounds(); + frame = fWebView->Window()->Frame(); fWebView->UnlockLooper(); } - return bounds; + return frame; +} + +BRect BWebPage::windowBounds() +{ + return windowFrame().OffsetToSelf(B_ORIGIN); } void BWebPage::setWindowBounds(const BRect& bounds) Modified: webkit/trunk/WebKit/haiku/API/WebPage.h ============================================================================== --- webkit/trunk/WebKit/haiku/API/WebPage.h Sat Apr 3 12:47:12 2010 (r378) +++ webkit/trunk/WebKit/haiku/API/WebPage.h Sat Apr 3 16:38:50 2010 (r379) @@ -148,6 +148,7 @@ WebCore::Page* createNewPage(BRect frame = BRect(), bool modalDialog = false, bool resizable = true); + BRect windowFrame(); BRect windowBounds(); void setWindowBounds(const BRect& bounds); BRect viewBounds();