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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 878673005: Get rid of Chrome, use Page. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/dom/Element.cpp » ('j') | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 #include "sky/engine/core/html/imports/HTMLImportsController.h" 105 #include "sky/engine/core/html/imports/HTMLImportsController.h"
106 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" 106 #include "sky/engine/core/html/parser/HTMLDocumentParser.h"
107 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" 107 #include "sky/engine/core/html/parser/HTMLParserIdioms.h"
108 #include "sky/engine/core/html/parser/NestingLevelIncrementer.h" 108 #include "sky/engine/core/html/parser/NestingLevelIncrementer.h"
109 #include "sky/engine/core/html/parser/TextResourceDecoder.h" 109 #include "sky/engine/core/html/parser/TextResourceDecoder.h"
110 #include "sky/engine/core/inspector/ConsoleMessage.h" 110 #include "sky/engine/core/inspector/ConsoleMessage.h"
111 #include "sky/engine/core/inspector/InspectorCounters.h" 111 #include "sky/engine/core/inspector/InspectorCounters.h"
112 #include "sky/engine/core/inspector/InspectorTraceEvents.h" 112 #include "sky/engine/core/inspector/InspectorTraceEvents.h"
113 #include "sky/engine/core/loader/FrameLoaderClient.h" 113 #include "sky/engine/core/loader/FrameLoaderClient.h"
114 #include "sky/engine/core/loader/ImageLoader.h" 114 #include "sky/engine/core/loader/ImageLoader.h"
115 #include "sky/engine/core/page/Chrome.h"
116 #include "sky/engine/core/page/ChromeClient.h" 115 #include "sky/engine/core/page/ChromeClient.h"
117 #include "sky/engine/core/page/EventHandler.h" 116 #include "sky/engine/core/page/EventHandler.h"
118 #include "sky/engine/core/page/FocusController.h" 117 #include "sky/engine/core/page/FocusController.h"
119 #include "sky/engine/core/page/Page.h" 118 #include "sky/engine/core/page/Page.h"
120 #include "sky/engine/core/rendering/HitTestResult.h" 119 #include "sky/engine/core/rendering/HitTestResult.h"
121 #include "sky/engine/core/rendering/RenderView.h" 120 #include "sky/engine/core/rendering/RenderView.h"
122 #include "sky/engine/platform/DateComponents.h" 121 #include "sky/engine/platform/DateComponents.h"
123 #include "sky/engine/platform/EventDispatchForbiddenScope.h" 122 #include "sky/engine/platform/EventDispatchForbiddenScope.h"
124 #include "sky/engine/platform/Language.h" 123 #include "sky/engine/platform/Language.h"
125 #include "sky/engine/platform/Logging.h" 124 #include "sky/engine/platform/Logging.h"
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 } 1675 }
1677 } 1676 }
1678 1677
1679 m_focusedElement->setFocus(true); 1678 m_focusedElement->setFocus(true);
1680 1679
1681 if (m_focusedElement->isRootEditableElement()) 1680 if (m_focusedElement->isRootEditableElement())
1682 frame()->spellChecker().didBeginEditing(m_focusedElement.get()); 1681 frame()->spellChecker().didBeginEditing(m_focusedElement.get());
1683 } 1682 }
1684 1683
1685 if (!focusChangeBlocked && frameHost()) 1684 if (!focusChangeBlocked && frameHost())
1686 frameHost()->chrome().focusedNodeChanged(m_focusedElement.get()); 1685 page()->focusedNodeChanged(m_focusedElement.get());
1687 1686
1688 SetFocusedElementDone: 1687 SetFocusedElementDone:
1689 updateRenderTreeIfNeeded(); 1688 updateRenderTreeIfNeeded();
1690 if (LocalFrame* frame = this->frame()) 1689 if (LocalFrame* frame = this->frame())
1691 frame->selection().didChangeFocus(); 1690 frame->selection().didChangeFocus();
1692 return !focusChangeBlocked; 1691 return !focusChangeBlocked;
1693 } 1692 }
1694 1693
1695 void Document::updateRangesAfterChildrenChanged(ContainerNode* container) 1694 void Document::updateRangesAfterChildrenChanged(ContainerNode* container)
1696 { 1695 {
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 using namespace blink; 2325 using namespace blink;
2327 void showLiveDocumentInstances() 2326 void showLiveDocumentInstances()
2328 { 2327 {
2329 WeakDocumentSet& set = liveDocumentSet(); 2328 WeakDocumentSet& set = liveDocumentSet();
2330 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2329 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2331 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2330 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2332 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2331 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2333 } 2332 }
2334 } 2333 }
2335 #endif 2334 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698