Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: Source/core/page/Frame.cpp

Issue 68303004: [oilpan] Move EventHandler to the heap (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Frame.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 inline Frame::Frame(Page* page, HANDLE_FORMAL(HTMLFrameOwnerElement) ownerElemen t, FrameLoaderClient* frameLoaderClient) 167 inline Frame::Frame(Page* page, HANDLE_FORMAL(HTMLFrameOwnerElement) ownerElemen t, FrameLoaderClient* frameLoaderClient)
168 : m_page(page) 168 : m_page(page)
169 , m_treeNode(this, parentFromOwnerElement(ownerElement)) 169 , m_treeNode(this, parentFromOwnerElement(ownerElement))
170 , m_loader(this, frameLoaderClient) 170 , m_loader(this, frameLoaderClient)
171 , m_navigationScheduler(this) 171 , m_navigationScheduler(this)
172 , m_ownerElement(DOT_RAW(ownerElement)) 172 , m_ownerElement(DOT_RAW(ownerElement))
173 , m_script(adoptPtr(new ScriptController(this))) 173 , m_script(adoptPtr(new ScriptController(this)))
174 , m_editor(adoptPtr(new Editor(this))) 174 , m_editor(adoptPtr(new Editor(this)))
175 , m_selection(adoptPtr(new FrameSelection(this))) 175 , m_selection(adoptPtr(new FrameSelection(this)))
176 , m_eventHandler(adoptPtr(new EventHandler(this))) 176 , m_eventHandler(EventHandler::create(this))
177 , m_animationController(adoptPtr(new AnimationController(this))) 177 , m_animationController(adoptPtr(new AnimationController(this)))
178 , m_pageZoomFactor(parentPageZoomFactor(this)) 178 , m_pageZoomFactor(parentPageZoomFactor(this))
179 , m_textZoomFactor(parentTextZoomFactor(this)) 179 , m_textZoomFactor(parentTextZoomFactor(this))
180 #if ENABLE(ORIENTATION_EVENTS) 180 #if ENABLE(ORIENTATION_EVENTS)
181 , m_orientation(0) 181 , m_orientation(0)
182 #endif 182 #endif
183 , m_inViewSourceMode(false) 183 , m_inViewSourceMode(false)
184 { 184 {
185 ASSERT(page); 185 ASSERT(page);
186 // FIXME(oilpan): How can we get here where WebCore is not 186 // FIXME(oilpan): How can we get here where WebCore is not
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 buffer->context()->translate(-paintingRect.x(), -paintingRect.y()); 802 buffer->context()->translate(-paintingRect.x(), -paintingRect.y());
803 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma xY())); 803 buffer->context()->clip(FloatRect(0, 0, paintingRect.maxX(), paintingRect.ma xY()));
804 804
805 m_view->paintContents(buffer->context(), paintingRect); 805 m_view->paintContents(buffer->context(), paintingRect);
806 806
807 RefPtr<Image> image = buffer->copyImage(); 807 RefPtr<Image> image = buffer->copyImage();
808 return createDragImageFromImage(image.get()); 808 return createDragImageFromImage(image.get());
809 } 809 }
810 810
811 } // namespace WebCore 811 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/Frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698