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

Side by Side Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 451153002: Oilpan: Move ConsoleMessage to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 dispatchMessageEventWithOriginCheck(timer->targetOrigin(), event, timer->sta ckTrace()); 898 dispatchMessageEventWithOriginCheck(timer->targetOrigin(), event, timer->sta ckTrace());
899 m_postMessageTimers.remove(timer); 899 m_postMessageTimers.remove(timer);
900 } 900 }
901 901
902 void LocalDOMWindow::dispatchMessageEventWithOriginCheck(SecurityOrigin* intende dTargetOrigin, PassRefPtrWillBeRawPtr<Event> event, PassRefPtrWillBeRawPtr<Scrip tCallStack> stackTrace) 902 void LocalDOMWindow::dispatchMessageEventWithOriginCheck(SecurityOrigin* intende dTargetOrigin, PassRefPtrWillBeRawPtr<Event> event, PassRefPtrWillBeRawPtr<Scrip tCallStack> stackTrace)
903 { 903 {
904 if (intendedTargetOrigin) { 904 if (intendedTargetOrigin) {
905 // Check target origin now since the target document may have changed si nce the timer was scheduled. 905 // Check target origin now since the target document may have changed si nce the timer was scheduled.
906 if (!intendedTargetOrigin->isSameSchemeHostPort(document()->securityOrig in())) { 906 if (!intendedTargetOrigin->isSameSchemeHostPort(document()->securityOrig in())) {
907 String message = ExceptionMessages::failedToExecute("postMessage", " DOMWindow", "The target origin provided ('" + intendedTargetOrigin->toString() + "') does not match the recipient window's origin ('" + document()->securityOrig in()->toString() + "')."); 907 String message = ExceptionMessages::failedToExecute("postMessage", " DOMWindow", "The target origin provided ('" + intendedTargetOrigin->toString() + "') does not match the recipient window's origin ('" + document()->securityOrig in()->toString() + "').");
908 RefPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(Secur ityMessageSource, ErrorMessageLevel, message); 908 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage:: create(SecurityMessageSource, ErrorMessageLevel, message);
909 consoleMessage->setCallStack(stackTrace); 909 consoleMessage->setCallStack(stackTrace);
910 frameConsole()->addMessage(consoleMessage.release()); 910 frameConsole()->addMessage(consoleMessage.release());
911 return; 911 return;
912 } 912 }
913 } 913 }
914 914
915 dispatchEvent(event); 915 dispatchEvent(event);
916 } 916 }
917 917
918 DOMSelection* LocalDOMWindow::getSelection() 918 DOMSelection* LocalDOMWindow::getSelection()
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 visitor->trace(m_localStorage); 1928 visitor->trace(m_localStorage);
1929 visitor->trace(m_applicationCache); 1929 visitor->trace(m_applicationCache);
1930 visitor->trace(m_performance); 1930 visitor->trace(m_performance);
1931 visitor->trace(m_css); 1931 visitor->trace(m_css);
1932 visitor->trace(m_eventQueue); 1932 visitor->trace(m_eventQueue);
1933 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); 1933 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor);
1934 EventTargetWithInlineData::trace(visitor); 1934 EventTargetWithInlineData::trace(visitor);
1935 } 1935 }
1936 1936
1937 } // namespace blink 1937 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698