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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 40143003: Simplify SharedWorkerRepository code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/page/Page.h » ('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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #include "core/page/Settings.h" 161 #include "core/page/Settings.h"
162 #include "core/page/scrolling/ScrollingCoordinator.h" 162 #include "core/page/scrolling/ScrollingCoordinator.h"
163 #include "core/platform/ScrollbarTheme.h" 163 #include "core/platform/ScrollbarTheme.h"
164 #include "core/rendering/HitTestRequest.h" 164 #include "core/rendering/HitTestRequest.h"
165 #include "core/rendering/HitTestResult.h" 165 #include "core/rendering/HitTestResult.h"
166 #include "core/rendering/RenderView.h" 166 #include "core/rendering/RenderView.h"
167 #include "core/rendering/RenderWidget.h" 167 #include "core/rendering/RenderWidget.h"
168 #include "core/rendering/TextAutosizer.h" 168 #include "core/rendering/TextAutosizer.h"
169 #include "core/svg/SVGDocumentExtensions.h" 169 #include "core/svg/SVGDocumentExtensions.h"
170 #include "core/svg/SVGStyleElement.h" 170 #include "core/svg/SVGStyleElement.h"
171 #include "core/workers/SharedWorkerRepository.h"
172 #include "core/xml/XSLTProcessor.h" 171 #include "core/xml/XSLTProcessor.h"
173 #include "core/xml/parser/XMLDocumentParser.h" 172 #include "core/xml/parser/XMLDocumentParser.h"
174 #include "platform/DateComponents.h" 173 #include "platform/DateComponents.h"
175 #include "platform/Language.h" 174 #include "platform/Language.h"
176 #include "platform/Timer.h" 175 #include "platform/Timer.h"
177 #include "platform/TraceEvent.h" 176 #include "platform/TraceEvent.h"
178 #include "platform/network/HTTPParsers.h" 177 #include "platform/network/HTTPParsers.h"
179 #include "platform/text/PlatformLocale.h" 178 #include "platform/text/PlatformLocale.h"
180 #include "platform/text/SegmentedString.h" 179 #include "platform/text/SegmentedString.h"
181 #include "weborigin/SchemeRegistry.h" 180 #include "weborigin/SchemeRegistry.h"
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 m_scriptedAnimationController->clearDocumentPointer(); 2001 m_scriptedAnimationController->clearDocumentPointer();
2003 m_scriptedAnimationController.clear(); 2002 m_scriptedAnimationController.clear();
2004 2003
2005 if (svgExtensions()) 2004 if (svgExtensions())
2006 accessSVGExtensions()->pauseAnimations(); 2005 accessSVGExtensions()->pauseAnimations();
2007 2006
2008 RenderView* renderView = m_renderView; 2007 RenderView* renderView = m_renderView;
2009 2008
2010 documentWillBecomeInactive(); 2009 documentWillBecomeInactive();
2011 2010
2012 SharedWorkerRepository::documentDetached(this);
2013
2014 if (m_frame) { 2011 if (m_frame) {
2015 FrameView* view = m_frame->view(); 2012 FrameView* view = m_frame->view();
2016 if (view) 2013 if (view)
2017 view->detachCustomScrollbars(); 2014 view->detachCustomScrollbars();
2018 } 2015 }
2019 2016
2020 // indicate destruction mode, i.e. confusingAndOftenMisusedAttached() but re nderer == 0 2017 // indicate destruction mode, i.e. confusingAndOftenMisusedAttached() but re nderer == 0
2021 setRenderer(0); 2018 setRenderer(0);
2022 m_renderView = 0; 2019 m_renderView = 0;
2023 2020
(...skipping 3325 matching lines...) Expand 10 before | Expand all | Expand 10 after
5349 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style ResolverUpdateMode updateMode) 5346 void Document::modifiedStyleSheet(StyleSheet* sheet, RecalcStyleTime when, Style ResolverUpdateMode updateMode)
5350 { 5347 {
5351 if (!isActive()) 5348 if (!isActive())
5352 return; 5349 return;
5353 5350
5354 styleEngine()->modifiedStyleSheet(sheet); 5351 styleEngine()->modifiedStyleSheet(sheet);
5355 styleResolverChanged(when, updateMode); 5352 styleResolverChanged(when, updateMode);
5356 } 5353 }
5357 5354
5358 } // namespace WebCore 5355 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698