OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 if (m_doc && !m_doc->attached()) | 292 if (m_doc && !m_doc->attached()) |
293 m_doc->attach(); | 293 m_doc->attach(); |
294 | 294 |
295 if (m_doc) { | 295 if (m_doc) { |
296 m_script->updateDocument(); | 296 m_script->updateDocument(); |
297 m_doc->updateViewportArguments(); | 297 m_doc->updateViewportArguments(); |
298 } | 298 } |
299 | 299 |
300 if (m_page && m_page->mainFrame() == this) { | 300 if (m_page && m_page->mainFrame() == this) { |
301 notifyChromeClientWheelEventHandlerCountChanged(); | 301 notifyChromeClientWheelEventHandlerCountChanged(); |
| 302 #if ENABLE(TOUCH_EVENTS) |
302 if (m_doc && m_doc->hasTouchEventHandlers()) | 303 if (m_doc && m_doc->hasTouchEventHandlers()) |
303 m_page->chrome()->client()->needTouchEvents(true); | 304 m_page->chrome()->client()->needTouchEvents(true); |
| 305 #endif |
304 } | 306 } |
305 } | 307 } |
306 | 308 |
307 #if ENABLE(ORIENTATION_EVENTS) | 309 #if ENABLE(ORIENTATION_EVENTS) |
308 void Frame::sendOrientationChangeEvent(int orientation) | 310 void Frame::sendOrientationChangeEvent(int orientation) |
309 { | 311 { |
310 m_orientation = orientation; | 312 m_orientation = orientation; |
311 if (Document* doc = document()) | 313 if (Document* doc = document()) |
312 doc->dispatchWindowEvent(Event::create(eventNames().orientationchangeEve
nt, false, false)); | 314 doc->dispatchWindowEvent(Event::create(eventNames().orientationchangeEve
nt, false, false)); |
313 } | 315 } |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); | 795 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); |
794 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); | 796 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); |
795 | 797 |
796 m_view->paintContents(buffer->context(), paintingRect); | 798 m_view->paintContents(buffer->context(), paintingRect); |
797 | 799 |
798 RefPtr<Image> image = buffer->copyImage(); | 800 RefPtr<Image> image = buffer->copyImage(); |
799 return createDragImageFromImage(image.get()); | 801 return createDragImageFromImage(image.get()); |
800 } | 802 } |
801 | 803 |
802 } // namespace WebCore | 804 } // namespace WebCore |
OLD | NEW |