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

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

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests, make plugin creation synchronous. Created 7 years 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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 #include "core/page/MouseEventWithHitTestResults.h" 156 #include "core/page/MouseEventWithHitTestResults.h"
157 #include "core/page/Page.h" 157 #include "core/page/Page.h"
158 #include "core/page/PageConsole.h" 158 #include "core/page/PageConsole.h"
159 #include "core/page/PointerLockController.h" 159 #include "core/page/PointerLockController.h"
160 #include "core/page/Settings.h" 160 #include "core/page/Settings.h"
161 #include "core/page/scrolling/ScrollingCoordinator.h" 161 #include "core/page/scrolling/ScrollingCoordinator.h"
162 #include "core/platform/ScrollbarTheme.h" 162 #include "core/platform/ScrollbarTheme.h"
163 #include "core/rendering/FastTextAutosizer.h" 163 #include "core/rendering/FastTextAutosizer.h"
164 #include "core/rendering/HitTestResult.h" 164 #include "core/rendering/HitTestResult.h"
165 #include "core/rendering/RenderView.h" 165 #include "core/rendering/RenderView.h"
166 #include "core/rendering/RenderWidget.h"
167 #include "core/rendering/TextAutosizer.h" 166 #include "core/rendering/TextAutosizer.h"
168 #include "core/svg/SVGDocumentExtensions.h" 167 #include "core/svg/SVGDocumentExtensions.h"
169 #include "core/svg/SVGStyleElement.h" 168 #include "core/svg/SVGStyleElement.h"
170 #include "core/xml/XSLTProcessor.h" 169 #include "core/xml/XSLTProcessor.h"
171 #include "core/xml/parser/XMLDocumentParser.h" 170 #include "core/xml/parser/XMLDocumentParser.h"
172 #include "platform/DateComponents.h" 171 #include "platform/DateComponents.h"
173 #include "platform/Language.h" 172 #include "platform/Language.h"
174 #include "platform/TraceEvent.h" 173 #include "platform/TraceEvent.h"
175 #include "platform/network/HTTPParsers.h" 174 #include "platform/network/HTTPParsers.h"
176 #include "platform/text/PlatformLocale.h" 175 #include "platform/text/PlatformLocale.h"
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin. 1669 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin.
1671 1670
1672 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc()) 1671 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc())
1673 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate); 1672 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate);
1674 1673
1675 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) 1674 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits())
1676 m_styleEngine->setUsesRemUnit(true); 1675 m_styleEngine->setUsesRemUnit(true);
1677 1676
1678 { 1677 {
1679 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks; 1678 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks;
1680 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; 1679 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
1681 FrameView::DeferredRepaintScope deferRepaints(*view()); 1680 FrameView::DeferredRepaintScope deferRepaints(*view());
1682 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true); 1681 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true);
1683 1682
1684 if (styleChangeType() >= SubtreeStyleChange) 1683 if (styleChangeType() >= SubtreeStyleChange)
1685 change = Force; 1684 change = Force;
1686 1685
1687 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because 1686 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because
1688 // apparently the StyleResolver's constructor has side effects. We shoul d fix it. 1687 // apparently the StyleResolver's constructor has side effects. We shoul d fix it.
1689 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on 1688 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on
1690 // mac when accessing the resolver by what appears to be a viewport size difference. 1689 // mac when accessing the resolver by what appears to be a viewport size difference.
(...skipping 3540 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 } 5230 }
5232 5231
5233 FastTextAutosizer* Document::fastTextAutosizer() 5232 FastTextAutosizer* Document::fastTextAutosizer()
5234 { 5233 {
5235 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) 5234 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d())
5236 m_fastTextAutosizer = FastTextAutosizer::create(this); 5235 m_fastTextAutosizer = FastTextAutosizer::create(this);
5237 return m_fastTextAutosizer.get(); 5236 return m_fastTextAutosizer.get();
5238 } 5237 }
5239 5238
5240 } // namespace WebCore 5239 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698