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

Side by Side Diff: third_party/WebKit/Source/core/frame/Console.cpp

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 Console::~Console() 51 Console::~Console()
52 { 52 {
53 } 53 }
54 54
55 DEFINE_TRACE(Console) 55 DEFINE_TRACE(Console)
56 { 56 {
57 ConsoleBase::trace(visitor); 57 ConsoleBase::trace(visitor);
58 DOMWindowProperty::trace(visitor); 58 DOMWindowProperty::trace(visitor);
59 HeapSupplementable<Console>::trace(visitor); 59 Supplementable<Console>::trace(visitor);
60 } 60 }
61 61
62 ExecutionContext* Console::context() 62 ExecutionContext* Console::context()
63 { 63 {
64 if (!frame()) 64 if (!frame())
65 return 0; 65 return 0;
66 return frame()->document(); 66 return frame()->document();
67 } 67 }
68 68
69 void Console::reportMessageToConsole(RawPtr<ConsoleMessage> consoleMessage) 69 void Console::reportMessageToConsole(RawPtr<ConsoleMessage> consoleMessage)
70 { 70 {
71 if (!frame()) 71 if (!frame())
72 return; 72 return;
73 73
74 frame()->console().addMessage(consoleMessage); 74 frame()->console().addMessage(consoleMessage);
75 } 75 }
76 76
77 } // namespace blink 77 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Console.h ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698