Commit 961ceeb7 authored by zimmermann's avatar zimmermann

Reviewed by Mitz. Landed by Niko.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=11617
Adapt to latest API changes, fixing Qt/Linux build.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7ffc4030
......@@ -31,6 +31,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/loader/icon
${CMAKE_CURRENT_SOURCE_DIR}/loader/qt
${CMAKE_CURRENT_SOURCE_DIR}/page
${CMAKE_CURRENT_SOURCE_DIR}/page/qt
${CMAKE_CURRENT_BINARY_DIR}/platform
${CMAKE_CURRENT_SOURCE_DIR}/platform
${CMAKE_CURRENT_SOURCE_DIR}/platform/graphics
......@@ -969,18 +970,23 @@ set(WebCore_SRCS
loader/qt/ResourceLoaderQt.cpp
page/Chrome.cpp
page/ContextMenuController.cpp
page/DOMWindow.cpp
page/EventHandler.cpp
page/Frame.cpp
page/FrameTree.cpp
page/FrameView.cpp
page/MouseEventWithHitTestResults.cpp
page/Page.cpp
page/PageState.cpp
page/PageState.cpp
page/qt/EventHandlerQt.cpp
platform/Arena.cpp
platform/ArrayImpl.cpp
platform/AtomicString.cpp
platform/CString.cpp
platform/ContextMenu.cpp
platform/DeprecatedCString.cpp
platform/DeprecatedPtrListImpl.cpp
platform/DeprecatedString.cpp
......@@ -1108,10 +1114,11 @@ set(WebCore_SRCS
platform/network/qt/ResourceHandleQt.cpp
platform/qt/ChromeClientQt.cpp
platform/qt/ContextMenuClientQt.cpp
platform/qt/ContextMenuQt.cpp
platform/qt/CookieJarQt.cpp
platform/qt/CursorQt.cpp
platform/qt/EditorClientQt.cpp
# platform/qt/FileButtonQt.cpp
platform/qt/FileChooserQt.cpp
platform/qt/FontCacheQt.cpp
platform/qt/FontDataQt.cpp
......@@ -1167,7 +1174,6 @@ set(WebCore_SRCS
rendering/break_lines.cpp
rendering/CounterNode.cpp
rendering/CounterResetNode.cpp
rendering/DeprecatedSlider.cpp
rendering/EllipsisBox.cpp
rendering/FixedTableLayout.cpp
rendering/HitTestResult.cpp
......@@ -1205,6 +1211,7 @@ set(WebCore_SRCS
rendering/RenderPart.cpp
rendering/RenderPartObject.cpp
rendering/RenderReplaced.cpp
rendering/RenderSlider.cpp
rendering/RenderStyle.cpp
rendering/RenderTableCell.cpp
rendering/RenderTableCol.cpp
......
2006-11-17 Zack Rusin <zack@kde.org>
Reviewed by Mitz. Landed by Niko.
Making platform Qt/KDE compile and work after
the latest api changes. Reported as
http://bugs.webkit.org/show_bug.cgi?id=11617
* CMakeLists.txt:
* page/qt/EventHandlerQt.cpp: Added.
(WebCore::isKeyboardOptionTab):
(WebCore::EventHandler::tabsToLinks):
(WebCore::EventHandler::tabsToAllControls):
(WebCore::EventHandler::freeClipboard):
(WebCore::EventHandler::focusDocumentView):
(WebCore::EventHandler::passWidgetMouseDownEventToWidget):
(WebCore::EventHandler::passMouseDownEventToWidget):
(WebCore::EventHandler::lastEventIsMouseUp):
(WebCore::EventHandler::dragHysteresisExceeded):
(WebCore::EventHandler::handleDrag):
(WebCore::EventHandler::handleMouseUp):
(WebCore::EventHandler::passSubframeEventToSubframe):
(WebCore::EventHandler::passWheelEventToWidget):
(WebCore::EventHandler::shouldDragAutoNode):
(WebCore::EventHandler::dispatchDragSrcEvent):
(WebCore::EventHandler::passMousePressEventToSubframe):
(WebCore::EventHandler::passMouseMoveEventToSubframe):
(WebCore::EventHandler::passMouseReleaseEventToSubframe):
(WebCore::EventHandler::passWheelEventToSubframe):
(WebCore::EventHandler::passMousePressEventToScrollbar):
* platform/ContextMenu.h:
* platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
(WebCore::SVGResourceClipper::applyClip):
* platform/qt/ContextMenuClientQt.cpp: Added.
(WebCore::ContextMenuClientQt::addCustomContextMenuItems):
(WebCore::ContextMenuClientQt::ref):
(WebCore::ContextMenuClientQt::deref):
* platform/qt/ContextMenuClientQt.h: Added.
* platform/qt/ContextMenuQt.cpp: Added.
(WebCore::ContextMenu::appendItem):
(WebCore::ContextMenu::itemCount):
(WebCore::ContextMenu::insertItem):
(WebCore::ContextMenu::setPlatformMenuDescription):
* platform/qt/EditorClientQt.cpp:
(WebCore::EditorClientQt::selectWordBeforeMenuEvent):
(WebCore::EditorClientQt::isEditable):
(WebCore::EditorClientQt::registerCommandForUndo):
(WebCore::EditorClientQt::registerCommandForRedo):
(WebCore::EditorClientQt::clearUndoRedoOperations):
(WebCore::EditorClientQt::canUndo):
(WebCore::EditorClientQt::canRedo):
(WebCore::EditorClientQt::undo):
(WebCore::EditorClientQt::redo):
* platform/qt/EditorClientQt.h:
* platform/qt/ScrollViewCanvasQt.cpp:
(WebCore::ScrollViewCanvasQt::mousePressEvent):
* platform/qt/TemporaryLinkStubs.cpp:
(FrameView::updateBorder):
2006-11-17 David Harrison <harrison@apple.com>
Reviewed by Adele.
/*
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "EventHandler.h"
#include "Cursor.h"
#include "Document.h"
#include "EventNames.h"
#include "FloatPoint.h"
#include "FrameLoader.h"
#include "FrameQt.h"
#include "FrameTree.h"
#include "FrameView.h"
#include "HTMLFrameSetElement.h"
#include "HitTestRequest.h"
#include "HitTestResult.h"
#include "KeyboardEvent.h"
#include "MouseEventWithHitTestResults.h"
#include "Page.h"
#include "PlatformKeyboardEvent.h"
#include "PlatformScrollBar.h"
#include "PlatformWheelEvent.h"
#include "RenderWidget.h"
namespace WebCore {
using namespace EventNames;
#define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \
__FILE__, __LINE__, __FUNCTION__); } while(0)
static bool isKeyboardOptionTab(KeyboardEvent* event)
{
return event
&& (event->type() == keydownEvent || event->type() == keypressEvent)
&& event->altKey()
&& event->keyIdentifier() == "U+000009";
}
bool EventHandler::tabsToLinks(KeyboardEvent* event) const
{
return isKeyboardOptionTab(event);
}
bool EventHandler::tabsToAllControls(KeyboardEvent* event) const
{
bool handlingOptionTab = isKeyboardOptionTab(event);
return handlingOptionTab;
}
void EventHandler::freeClipboard()
{
notImplemented();
}
void EventHandler::focusDocumentView()
{
notImplemented();
}
bool EventHandler::passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults& event)
{
// Figure out which view to send the event to.
RenderObject* target = event.targetNode() ? event.targetNode()->renderer() : 0;
if (!target || !target->isWidget())
return false;
// Double-click events don't exist in Cocoa. Since passWidgetMouseDownEventToWidget will
// just pass currentEvent down to the widget, we don't want to call it for events that
// don't correspond to Cocoa events. The mousedown/ups will have already been passed on as
// part of the pressed/released handling.
return passMouseDownEventToWidget(static_cast<RenderWidget*>(target)->widget());
}
bool EventHandler::passWidgetMouseDownEventToWidget(RenderWidget* renderWidget)
{
return passMouseDownEventToWidget(renderWidget->widget());
}
bool EventHandler::passMouseDownEventToWidget(Widget* widget)
{
// FIXME: this method always returns true
notImplemented();
return false;
}
bool EventHandler::lastEventIsMouseUp() const
{
notImplemented();
return false;
}
bool EventHandler::dragHysteresisExceeded(const FloatPoint& floatDragViewportLocation) const
{
notImplemented();
return false;
}
bool EventHandler::handleDrag(const MouseEventWithHitTestResults& event)
{
notImplemented();
return false;
}
bool EventHandler::handleMouseUp(const MouseEventWithHitTestResults& event)
{
notImplemented();
return false;
}
bool EventHandler::passSubframeEventToSubframe(MouseEventWithHitTestResults& event, Frame* subframe)
{
notImplemented();
return false;
}
bool EventHandler::passWheelEventToWidget(Widget* widget)
{
notImplemented();
return false;
}
// Called as we walk up the element chain for nodes with CSS property -webkit-user-drag == auto
bool EventHandler::shouldDragAutoNode(Node* node, const IntPoint& point) const
{
notImplemented();
return false;
}
// returns if we should continue "default processing", i.e., whether eventhandler canceled
bool EventHandler::dispatchDragSrcEvent(const AtomicString& eventType, const PlatformMouseEvent& event)
{
notImplemented();
return false;
}
bool EventHandler::passMousePressEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
{
return passSubframeEventToSubframe(mev, subframe);
}
bool EventHandler::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
{
return passSubframeEventToSubframe(mev, subframe);
}
bool EventHandler::passMouseReleaseEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe)
{
return passSubframeEventToSubframe(mev, subframe);
}
bool EventHandler::passWheelEventToSubframe(PlatformWheelEvent&, Frame* subframe)
{
return passWheelEventToWidget(subframe->view());
}
bool EventHandler::passMousePressEventToScrollbar(MouseEventWithHitTestResults&, PlatformScrollbar* scrollbar)
{
return passWheelEventToWidget(scrollbar);
}
}
......@@ -37,6 +37,8 @@ class NSMutableArray;
#endif
#elif PLATFORM(WIN)
typedef struct HMENU__* HMENU;
#elif PLATFORM(QT)
class QMenu;
#endif
namespace WebCore {
......@@ -111,6 +113,8 @@ struct ContextMenuItem {
typedef NSMutableArray* PlatformMenuDescription;
#elif PLATFORM(WIN)
typedef HMENU PlatformMenuDescription;
#elif PLATFORM(QT)
typedef QMenu* PlatformMenuDescription;
#endif
class ContextMenu : Noncopyable
......
......@@ -34,7 +34,7 @@ void SVGResourceClipper::applyClip(const FloatRect& boundingBox) const
{
KRenderingDeviceContext* context = renderingDevice()->currentContext();
KRenderingDeviceContextQt* qtContext = static_cast<KRenderingDeviceContextQt*>(context);
if (m_clipData.count() < 1)
if (m_clipData.clipData().size() < 1)
return;
context->clearPath();
......@@ -42,10 +42,11 @@ void SVGResourceClipper::applyClip(const FloatRect& boundingBox) const
QPainterPath newPath;
bool heterogenousClipRules = false;
WindRule clipRule = m_clipData[0].windRule;
WindRule clipRule = m_clipData.clipData()[0].windRule;
for (unsigned int x = 0; x < m_clipData.count(); x++) {
ClipData clipData = m_clipData[x];
unsigned int clipDataCount = m_clipData.clipData().size();
for (unsigned int x = 0; x < clipDataCount; x++) {
ClipData clipData = m_clipData.clipData()[x];
if (clipData.windRule != clipRule)
heterogenousClipRules = true;
......@@ -99,7 +100,7 @@ void SVGResourceClipper::applyClip(const FloatRect& boundingBox) const
}
}
if (m_clipData.count()) {
if (m_clipData.clipData().size()) {
// FIXME!
// We don't currently allow for heterogenous clip rules.
// we would have to detect such, draw to a mask, and then clip
......
/*
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "ContextMenuClientQt.h"
#include "Shared.h"
#include <stdio.h>
#define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \
__FILE__, __LINE__, __FUNCTION__); } while(0)
namespace WebCore {
void ContextMenuClientQt::addCustomContextMenuItems(ContextMenu*)
{
notImplemented();
}
void ContextMenuClientQt::ref()
{
Shared<ContextMenuClientQt>::ref();
}
void ContextMenuClientQt::deref()
{
Shared<ContextMenuClientQt>::deref();
}
}
/*
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef ContextMenuClientQt_h
#define ContextMenuClientQt_h
#include "ContextMenuClient.h"
#include <Shared.h>
namespace WebCore {
class ContextMenu;
class ContextMenuClientQt : public ContextMenuClient,
public Shared<ContextMenuClientQt> {
public:
virtual void deref();
virtual void addCustomContextMenuItems(ContextMenu*);
virtual void ref();
};
}
#endif
/*
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "ContextMenu.h"
#include <QMenu>
#include <QAction>
namespace WebCore {
void ContextMenu::appendItem(ContextMenuItem item)
{
if (!m_menu) {
m_menu = new QMenu();
}
QAction *action = m_menu->addAction(item.title);
}
unsigned ContextMenu::itemCount()
{
//FIXME: This method is silly
return 1;
}
void ContextMenu::insertItem(unsigned position, ContextMenuItem item)
{
//FIXME: Another silly method
appendItem(item);
}
void ContextMenu::setPlatformMenuDescription(PlatformMenuDescription menu)
{
delete m_menu;
m_menu = static_cast<QMenu*>(menu);
}
}
......@@ -30,9 +30,11 @@
#include "config.h"
#include "EditorClientQt.h"
#include "EditCommand.h"
#include <stdio.h>
#define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)
#define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d(%s)\n", __FILE__, __LINE__, __FUNCTION__); } while(0)
namespace WebCore {
......@@ -109,6 +111,55 @@ void EditorClientQt::didEndEditing()
notImplemented();
}
bool EditorClientQt::selectWordBeforeMenuEvent()
{
notImplemented();
return false;
}
bool EditorClientQt::isEditable()
{
notImplemented();
return false;
}
void EditorClientQt::registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand>)
{
notImplemented();
}
void EditorClientQt::registerCommandForRedo(WTF::PassRefPtr<WebCore::EditCommand>)
{
notImplemented();
}
void EditorClientQt::clearUndoRedoOperations()
{
notImplemented();
}
bool EditorClientQt::canUndo() const
{
notImplemented();
return false;
}
bool EditorClientQt::canRedo() const
{
notImplemented();
return false;
}
void EditorClientQt::undo()
{
notImplemented();
}
void EditorClientQt::redo()
{
notImplemented();
}
}
// vim: ts=4 sw=4 et
......@@ -33,6 +33,8 @@
#include "EditorClient.h"
#include "Shared.h"
#include <wtf/Forward.h>
namespace WebCore {
class EditorClientQt : public EditorClient, public Shared<EditorClientQt> {
......@@ -56,6 +58,15 @@ public:
virtual void respondToChangedContents();
virtual void didEndEditing();
virtual bool selectWordBeforeMenuEvent();
virtual bool isEditable();
virtual void registerCommandForUndo(PassRefPtr<WebCore::EditCommand>);
virtual void registerCommandForRedo(PassRefPtr<WebCore::EditCommand>);
virtual void clearUndoRedoOperations();
virtual bool canUndo() const;
virtual bool canRedo() const;
virtual void undo();
virtual void redo();
};
}
......
......@@ -34,6 +34,7 @@
#include "ScrollViewCanvasQt.h"
#include "ScrollViewCanvasQt.moc"
#include "EventHandler.h"
#include "FrameQt.h"
#include "FrameView.h"
#include "TypingCommand.h"
......@@ -90,10 +91,10 @@ void ScrollViewCanvasQt::mouseMoveEvent(QMouseEvent* ev)
void ScrollViewCanvasQt::mousePressEvent(QMouseEvent* ev)
{
FrameView* fv = static_cast<FrameView*>(m_frameView);
if (!fv || !fv->frame())
if (!fv || !fv->frame() || !fv->frame()->eventHandler())
return;
fv->handleMousePressEvent(PlatformMouseEvent(ev, 1));
fv->frame()->eventHandler()->handleMousePressEvent(PlatformMouseEvent(ev, 1));
}
void ScrollViewCanvasQt::mouseReleaseEvent(QMouseEvent* ev)
......
......@@ -40,7 +40,6 @@
#include "Widget.h"
#include "GraphicsContext.h"
#include "TextField.h"
#include "Slider.h"
#include "Cursor.h"
#include "loader.h"
#include "FrameView.h"
......@@ -64,7 +63,8 @@
using namespace WebCore;
#define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)
#define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \
__FILE__, __LINE__, __FUNCTION__); } while(0)
FloatRect Font::selectionRectForComplexText(const TextRun&, const TextStyle&, const IntPoint&, int) const { notImplemented(); return FloatRect(); }
int Font::offsetForPositionForComplexText(const TextRun&, const TextStyle&, int, bool) const { notImplemented(); return 0; }
......@@ -108,16 +108,6 @@ IntSize TextField::sizeForCharacterWidth(int) const { notImplemented(); return I
int TextField::baselinePosition(int) const { notImplemented(); return 0; }
void TextField::setLiveSearch(bool) { notImplemented(); }
Slider::Slider() { notImplemented(); }
IntSize Slider::sizeHint() const { notImplemented(); return IntSize(); }
Slider::~Slider() { notImplemented(); }
void Slider::setValue(double) { notImplemented(); }
void Slider::setMaxValue(double) { notImplemented(); }
void Slider::setMinValue(double) { notImplemented(); }
void Slider::setFont(WebCore::Font const&) { notImplemented(); }
double Slider::value() const { notImplemented(); return 0; }
Widget::FocusPolicy Slider::focusPolicy() const { notImplemented(); return NoFocus; }
Scrollbar::Scrollbar(ScrollbarClient*, ScrollbarOrientation, ScrollbarControlSize) { notImplemented(); }
void Scrollbar::setSteps(int, int) { notImplemented(); }
bool Scrollbar::scroll(ScrollDirection, ScrollGranularity, float) { notImplemented(); return 0; }
......@@ -160,11 +150,6 @@ FloatRect WebCore::screenAvailableRect(Widget*)
void WebCore::setFocusRingColorChangeFunction(void (*)()) { notImplemented(); }
void FrameView::updateBorder() { notImplemented(); }
bool FrameView::passMousePressEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe) { return true; }
bool FrameView::passMouseMoveEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe) { return true; }
bool FrameView::passMouseReleaseEventToSubframe(MouseEventWithHitTestResults& mev, Frame* subframe) { return true; }
bool FrameView::passWheelEventToSubframe(PlatformWheelEvent& e, Frame* subframe) { return false; }
bool FrameView::passMousePressEventToScrollbar(MouseEventWithHitTestResults& mev, PlatformScrollbar*) { return false; }
bool AXObjectCache::gAccessibilityEnabled = false;
......
2006-11-17 Zack Rusin <zack@kde.org>
Reviewed by Mitz. Landed by Niko.
Adjusting to the new api.