Changeset 85874 in webkit
- Timestamp:
- May 5, 2011 1:31:10 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85873 r85874 1 2011-05-05 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Timothy Hatcher. 4 5 WebKit2: Docking Web Inspector doesn't respect maximum inspector size 6 https://bugs.webkit.org/show_bug.cgi?id=60294 7 <rdar://problem/9388518> 8 9 Make a needed function public and export it. 10 11 * WebCore.exp.in: Export constrainedAttaechedWindowHeight. 12 * inspector/InspectorFrontendClientLocal.h: Make constrainedAttaechedWindowHeight public. 13 1 14 2011-05-05 Tony Gentilcore <tonyg@chromium.org> 2 15 -
trunk/Source/WebCore/WebCore.exp.in
r85864 r85874 1554 1554 __ZN7WebCore28InspectorFrontendClientLocal26changeAttachedWindowHeightEj 1555 1555 __ZN7WebCore28InspectorFrontendClientLocal27restoreAttachedWindowHeightEv 1556 __ZN7WebCore28InspectorFrontendClientLocal31constrainedAttachedWindowHeightEjj 1556 1557 __ZN7WebCore28InspectorFrontendClientLocalC2EPNS_19InspectorControllerEPNS_4PageEN3WTF10PassOwnPtrINS0_8SettingsEEE 1557 1558 __ZN7WebCore28InspectorFrontendClientLocalD2Ev -
trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h
r84359 r85874 73 73 virtual void sendMessageToBackend(const String& message); 74 74 75 static unsigned constrainedAttachedWindowHeight(unsigned preferredHeight, unsigned totalWindowHeight); 76 75 77 protected: 76 78 virtual void setAttachedWindowHeight(unsigned) = 0; … … 79 81 80 82 private: 81 static unsigned constrainedAttachedWindowHeight(unsigned preferredHeight, unsigned totalWindowHeight);82 83 83 friend class FrontendMenuProvider; 84 84 InspectorController* m_inspectorController; -
trunk/Source/WebKit2/ChangeLog
r85867 r85874 1 2011-05-05 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Timothy Hatcher. 4 5 WebKit2: Docking Web Inspector doesn't respect maximum inspector size 6 https://bugs.webkit.org/show_bug.cgi?id=60294 7 <rdar://problem/9388518> 8 9 Before we place the inspector and the inspected views, make sure that we have constrained the height 10 of the docked inspector. Putting the code here covers both when the inspector is initially attached 11 and when a window with the docked inspector is resized. 12 13 * UIProcess/mac/WebInspectorProxyMac.mm: 14 (WebKit::WebInspectorProxy::inspectedViewFrameDidChange): Constrain the height before laying out the views. 15 * UIProcess/win/WebInspectorProxyWin.cpp: 16 (WebKit::WebInspectorProxy::onWebViewWindowPosChangingEvent): Ditto. 17 1 18 2011-05-05 Chang Shu <cshu@webkit.org> 2 19 -
trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm
r85457 r85874 35 35 #import "WebProcessProxy.h" 36 36 #import <WebKitSystemInterface.h> 37 #import <WebCore/InspectorFrontendClientLocal.h> 37 38 #import <WebCore/LocalizedStrings.h> 38 39 #import <WebCore/NotImplemented.h> … … 177 178 CGFloat inspectedWidth = NSWidth(inspectedViewFrame); 178 179 CGFloat inspectorHeight = NSHeight([m_inspectorView.get() frame]); 180 181 CGFloat parentHeight = NSHeight([[inspectedView superview] frame]); 182 inspectorHeight = InspectorFrontendClientLocal::constrainedAttachedWindowHeight(inspectorHeight, parentHeight); 179 183 180 184 [m_inspectorView.get() setFrame:NSMakeRect(inspectedLeft, 0.0, inspectedWidth, inspectorHeight)]; -
trunk/Source/WebKit2/UIProcess/win/WebInspectorProxyWin.cpp
r85457 r85874 33 33 #include "WebProcessProxy.h" 34 34 #include "WebView.h" 35 #include <WebCore/InspectorFrontendClientLocal.h> 35 36 #include <WebCore/WebCoreInstanceHandle.h> 36 37 #include <WebCore/WindowMessageBroadcaster.h> … … 178 179 unsigned inspectorHeight = inspectorRect.bottom - inspectorRect.top; 179 180 181 RECT parentRect; 182 ::GetClientRect(::GetParent(inspectorWindow), &parentRect); 183 inspectorHeight = InspectorFrontendClientLocal::constrainedAttachedWindowHeight(inspectorHeight, parentRect.bottom - parentRect.top); 184 180 185 windowPos->cy -= inspectorHeight; 181 186
Note: See TracChangeset
for help on using the changeset viewer.