Bug 20841

Summary: QtWebkit build broken (PlatformScrollBar)
Product: WebKit Reporter: Jean-Daniel Guyot <jeandanielguyot>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Description Jean-Daniel Guyot 2008-09-14 10:38:20 PDT
- Version of Qt : 4.4.1 
- Mac OS X.5

Here are some steps to reproduce the issue :

1. Get a fresh svn version of Webkit
2. Set QMAKESPEC to "macx-g++" (#15614)
3. Run ./WebKitTools/Scripts/build-webkit --qt --release

One get the error:

../../../WebCore/platform/qt/PlatformScrollBarQt.cpp: In constructor ‘WebCore::PlatformScrollbar::PlatformScrollbar(WebCore::ScrollbarClient*, WebCore::ScrollbarOrientation, WebCore::ScrollbarControlSize)’:
../../../WebCore/platform/qt/PlatformScrollBarQt.cpp:69: error: ‘horizontalScrollbarHeight’ was not declared in this scope
../../../WebCore/platform/qt/PlatformScrollBarQt.cpp:73: error: ‘verticalScrollbarWidth’ was not declared in this scope
../../../WebCore/platform/qt/PlatformScrollBarQt.cpp: In member function ‘virtual void WebCore::PlatformScrollbar::paint(WebCore::GraphicsContext*, const WebCore::IntRect&)’:
../../../WebCore/platform/qt/PlatformScrollBarQt.cpp:180: error: ‘horizontalScrollbarHeight’ was not declared in this scope
../../../WebCore/platform/qt/PlatformScrollBarQt.cpp:183: error: ‘verticalScrollbarWidth’ was not declared in this scope


horizontalScrollbarHeight & verticalScrollbarWidth functions were removed at rev. 36400 but some references remain in WebCore/platform/qt/PlatformScrollBarQt.cpp.