| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 if (m_doc && !m_doc->attached()) | 286 if (m_doc && !m_doc->attached()) |
| 287 m_doc->attach(); | 287 m_doc->attach(); |
| 288 | 288 |
| 289 if (m_doc) { | 289 if (m_doc) { |
| 290 m_script.updateDocument(); | 290 m_script.updateDocument(); |
| 291 m_doc->updateViewportArguments(); | 291 m_doc->updateViewportArguments(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 if (m_page && m_page->mainFrame() == this) { | 294 if (m_page && m_page->mainFrame() == this) { |
| 295 notifyChromeClientWheelEventHandlerCountChanged(); | 295 notifyChromeClientWheelEventHandlerCountChanged(); |
| 296 #if ENABLE(TOUCH_EVENTS) | |
| 297 if (m_doc && m_doc->hasTouchEventHandlers()) | 296 if (m_doc && m_doc->hasTouchEventHandlers()) |
| 298 m_page->chrome()->client()->needTouchEvents(true); | 297 m_page->chrome()->client()->needTouchEvents(true); |
| 299 #endif | |
| 300 } | 298 } |
| 301 } | 299 } |
| 302 | 300 |
| 303 #if ENABLE(ORIENTATION_EVENTS) | 301 #if ENABLE(ORIENTATION_EVENTS) |
| 304 void Frame::sendOrientationChangeEvent(int orientation) | 302 void Frame::sendOrientationChangeEvent(int orientation) |
| 305 { | 303 { |
| 306 m_orientation = orientation; | 304 m_orientation = orientation; |
| 307 if (Document* doc = document()) | 305 if (Document* doc = document()) |
| 308 doc->dispatchWindowEvent(Event::create(eventNames().orientationchangeEve
nt, false, false)); | 306 doc->dispatchWindowEvent(Event::create(eventNames().orientationchangeEve
nt, false, false)); |
| 309 } | 307 } |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); | 961 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); |
| 964 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); | 962 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma
xY())); |
| 965 | 963 |
| 966 m_view->paintContents(buffer->context(), paintingRect); | 964 m_view->paintContents(buffer->context(), paintingRect); |
| 967 | 965 |
| 968 RefPtr<Image> image = buffer->copyImage(); | 966 RefPtr<Image> image = buffer->copyImage(); |
| 969 return createDragImageFromImage(image.get()); | 967 return createDragImageFromImage(image.get()); |
| 970 } | 968 } |
| 971 | 969 |
| 972 } // namespace WebCore | 970 } // namespace WebCore |
| OLD | NEW |