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

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: Fix mac compile issue. 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 #include "core/page/FrameTree.h" 155 #include "core/page/FrameTree.h"
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/frame/Settings.h" 160 #include "core/frame/Settings.h"
161 #include "core/page/scrolling/ScrollingCoordinator.h" 161 #include "core/page/scrolling/ScrollingCoordinator.h"
162 #include "core/rendering/FastTextAutosizer.h" 162 #include "core/rendering/FastTextAutosizer.h"
163 #include "core/rendering/HitTestResult.h" 163 #include "core/rendering/HitTestResult.h"
164 #include "core/rendering/RenderView.h" 164 #include "core/rendering/RenderView.h"
165 #include "core/rendering/RenderWidget.h"
166 #include "core/rendering/TextAutosizer.h" 165 #include "core/rendering/TextAutosizer.h"
167 #include "core/svg/SVGDocumentExtensions.h" 166 #include "core/svg/SVGDocumentExtensions.h"
168 #include "core/svg/SVGFontFaceElement.h" 167 #include "core/svg/SVGFontFaceElement.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"
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin. 1652 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin.
1654 1653
1655 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc()) 1654 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc())
1656 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate); 1655 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate);
1657 1656
1658 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) 1657 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits())
1659 m_styleEngine->setUsesRemUnit(true); 1658 m_styleEngine->setUsesRemUnit(true);
1660 1659
1661 { 1660 {
1662 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks; 1661 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks;
1663 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; 1662 HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
1664 FrameView::DeferredRepaintScope deferRepaints(*view()); 1663 FrameView::DeferredRepaintScope deferRepaints(*view());
1665 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true); 1664 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true);
1666 1665
1667 if (styleChangeType() >= SubtreeStyleChange) 1666 if (styleChangeType() >= SubtreeStyleChange)
1668 change = Force; 1667 change = Force;
1669 1668
1670 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because 1669 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because
1671 // apparently the StyleResolver's constructor has side effects. We shoul d fix it. 1670 // apparently the StyleResolver's constructor has side effects. We shoul d fix it.
1672 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on 1671 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on
1673 // mac when accessing the resolver by what appears to be a viewport size difference. 1672 // mac when accessing the resolver by what appears to be a viewport size difference.
(...skipping 3552 matching lines...) Expand 10 before | Expand all | Expand 10 after
5226 } 5225 }
5227 5226
5228 FastTextAutosizer* Document::fastTextAutosizer() 5227 FastTextAutosizer* Document::fastTextAutosizer()
5229 { 5228 {
5230 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) 5229 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d())
5231 m_fastTextAutosizer = FastTextAutosizer::create(this); 5230 m_fastTextAutosizer = FastTextAutosizer::create(this);
5232 return m_fastTextAutosizer.get(); 5231 return m_fastTextAutosizer.get();
5233 } 5232 }
5234 5233
5235 } // namespace WebCore 5234 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698