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

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

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 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/dom/Document.h ('k') | Source/core/dom/ExecutionContext.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 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2807 if (!p) 2807 if (!p)
2808 return DOMTimer::visiblePageAlignmentInterval(); 2808 return DOMTimer::visiblePageAlignmentInterval();
2809 return p->timerAlignmentInterval(); 2809 return p->timerAlignmentInterval();
2810 } 2810 }
2811 2811
2812 EventTarget* Document::errorEventTarget() 2812 EventTarget* Document::errorEventTarget()
2813 { 2813 {
2814 return domWindow(); 2814 return domWindow();
2815 } 2815 }
2816 2816
2817 void Document::logExceptionToConsole(const String& errorMessage, const String& s ourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack> callStac k) 2817 void Document::logExceptionToConsole(const String& errorMessage, const String& s ourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallSta ck> callStack)
2818 { 2818 {
2819 internalAddMessage(JSMessageSource, ErrorMessageLevel, errorMessage, sourceU RL, lineNumber, callStack, 0); 2819 internalAddMessage(JSMessageSource, ErrorMessageLevel, errorMessage, sourceU RL, lineNumber, callStack, 0);
2820 } 2820 }
2821 2821
2822 void Document::setURL(const KURL& url) 2822 void Document::setURL(const KURL& url)
2823 { 2823 {
2824 const KURL& newURL = url.isEmpty() ? blankURL() : url; 2824 const KURL& newURL = url.isEmpty() ? blankURL() : url;
2825 if (newURL == m_url) 2825 if (newURL == m_url)
2826 return; 2826 return;
2827 2827
(...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after
5005 void Document::reportBlockedScriptExecutionToInspector(const String& directiveTe xt) 5005 void Document::reportBlockedScriptExecutionToInspector(const String& directiveTe xt)
5006 { 5006 {
5007 InspectorInstrumentation::scriptExecutionBlockedByCSP(this, directiveText); 5007 InspectorInstrumentation::scriptExecutionBlockedByCSP(this, directiveText);
5008 } 5008 }
5009 5009
5010 void Document::addMessage(MessageSource source, MessageLevel level, const String & message, const String& sourceURL, unsigned lineNumber, ScriptState* scriptStat e) 5010 void Document::addMessage(MessageSource source, MessageLevel level, const String & message, const String& sourceURL, unsigned lineNumber, ScriptState* scriptStat e)
5011 { 5011 {
5012 internalAddMessage(source, level, message, sourceURL, lineNumber, nullptr, s criptState); 5012 internalAddMessage(source, level, message, sourceURL, lineNumber, nullptr, s criptState);
5013 } 5013 }
5014 5014
5015 void Document::internalAddMessage(MessageSource source, MessageLevel level, cons t String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<Scri ptCallStack> callStack, ScriptState* scriptState) 5015 void Document::internalAddMessage(MessageSource source, MessageLevel level, cons t String& message, const String& sourceURL, unsigned lineNumber, PassRefPtrWillB eRawPtr<ScriptCallStack> callStack, ScriptState* scriptState)
5016 { 5016 {
5017 if (!isContextThread()) { 5017 if (!isContextThread()) {
5018 m_taskRunner->postTask(AddConsoleMessageTask::create(source, level, mess age)); 5018 m_taskRunner->postTask(AddConsoleMessageTask::create(source, level, mess age));
5019 return; 5019 return;
5020 } 5020 }
5021 5021
5022 if (!m_frame) 5022 if (!m_frame)
5023 return; 5023 return;
5024 5024
5025 String messageURL = sourceURL; 5025 String messageURL = sourceURL;
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
5838 visitor->trace(m_compositorPendingAnimations); 5838 visitor->trace(m_compositorPendingAnimations);
5839 visitor->trace(m_contextDocument); 5839 visitor->trace(m_contextDocument);
5840 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5840 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5841 DocumentSupplementable::trace(visitor); 5841 DocumentSupplementable::trace(visitor);
5842 TreeScope::trace(visitor); 5842 TreeScope::trace(visitor);
5843 ContainerNode::trace(visitor); 5843 ContainerNode::trace(visitor);
5844 ExecutionContext::trace(visitor); 5844 ExecutionContext::trace(visitor);
5845 } 5845 }
5846 5846
5847 } // namespace WebCore 5847 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698