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

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: ASSERT on ownerElement->widget() == this causes many tests to fail. 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 #include "core/page/EventHandler.h" 157 #include "core/page/EventHandler.h"
158 #include "core/page/FocusController.h" 158 #include "core/page/FocusController.h"
159 #include "core/page/FrameTree.h" 159 #include "core/page/FrameTree.h"
160 #include "core/page/MouseEventWithHitTestResults.h" 160 #include "core/page/MouseEventWithHitTestResults.h"
161 #include "core/page/Page.h" 161 #include "core/page/Page.h"
162 #include "core/page/PointerLockController.h" 162 #include "core/page/PointerLockController.h"
163 #include "core/page/scrolling/ScrollingCoordinator.h" 163 #include "core/page/scrolling/ScrollingCoordinator.h"
164 #include "core/rendering/FastTextAutosizer.h" 164 #include "core/rendering/FastTextAutosizer.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"
168 #include "core/rendering/TextAutosizer.h" 167 #include "core/rendering/TextAutosizer.h"
169 #include "core/svg/SVGDocumentExtensions.h" 168 #include "core/svg/SVGDocumentExtensions.h"
170 #include "core/svg/SVGFontFaceElement.h" 169 #include "core/svg/SVGFontFaceElement.h"
171 #include "core/svg/SVGStyleElement.h" 170 #include "core/svg/SVGStyleElement.h"
172 #include "core/workers/SharedWorkerRepositoryClient.h" 171 #include "core/workers/SharedWorkerRepositoryClient.h"
173 #include "core/xml/XSLTProcessor.h" 172 #include "core/xml/XSLTProcessor.h"
174 #include "core/xml/parser/XMLDocumentParser.h" 173 #include "core/xml/parser/XMLDocumentParser.h"
175 #include "platform/DateComponents.h" 174 #include "platform/DateComponents.h"
176 #include "platform/Language.h" 175 #include "platform/Language.h"
177 #include "platform/TraceEvent.h" 176 #include "platform/TraceEvent.h"
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin. 1672 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin.
1674 1673
1675 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc()) 1674 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc())
1676 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate); 1675 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate);
1677 1676
1678 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) 1677 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits())
1679 m_styleEngine->setUsesRemUnit(true); 1678 m_styleEngine->setUsesRemUnit(true);
1680 1679
1681 { 1680 {
1682 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks; 1681 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks;
1683 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; 1682 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
1684 FrameView::DeferredRepaintScope deferRepaints(*view()); 1683 FrameView::DeferredRepaintScope deferRepaints(*view());
1685 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true); 1684 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true);
1686 1685
1687 if (styleChangeType() >= SubtreeStyleChange) 1686 if (styleChangeType() >= SubtreeStyleChange)
1688 change = Force; 1687 change = Force;
1689 1688
1690 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because 1689 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because
1691 // apparently the StyleResolver's constructor has side effects. We shoul d fix it. 1690 // apparently the StyleResolver's constructor has side effects. We shoul d fix it.
1692 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on 1691 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on
1693 // mac when accessing the resolver by what appears to be a viewport size difference. 1692 // mac when accessing the resolver by what appears to be a viewport size difference.
(...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after
5270 } 5269 }
5271 5270
5272 FastTextAutosizer* Document::fastTextAutosizer() 5271 FastTextAutosizer* Document::fastTextAutosizer()
5273 { 5272 {
5274 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) 5273 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d())
5275 m_fastTextAutosizer = FastTextAutosizer::create(this); 5274 m_fastTextAutosizer = FastTextAutosizer::create(this);
5276 return m_fastTextAutosizer.get(); 5275 return m_fastTextAutosizer.get();
5277 } 5276 }
5278 5277
5279 } // namespace WebCore 5278 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698