OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 return virtualCompleteURL(url); | 268 return virtualCompleteURL(url); |
269 } | 269 } |
270 | 270 |
271 void ExecutionContext::disableEval(const String& errorMessage) | 271 void ExecutionContext::disableEval(const String& errorMessage) |
272 { | 272 { |
273 if (!m_client) | 273 if (!m_client) |
274 return; | 274 return; |
275 return m_client->disableEval(errorMessage); | 275 return m_client->disableEval(errorMessage); |
276 } | 276 } |
277 | 277 |
278 DOMWindow* ExecutionContext::executingWindow() const | 278 LocalDOMWindow* ExecutionContext::executingWindow() const |
279 { | 279 { |
280 RELEASE_ASSERT(m_client); | 280 RELEASE_ASSERT(m_client); |
281 return m_client->executingWindow(); | 281 return m_client->executingWindow(); |
282 } | 282 } |
283 | 283 |
284 String ExecutionContext::userAgent(const KURL& url) const | 284 String ExecutionContext::userAgent(const KURL& url) const |
285 { | 285 { |
286 if (!m_client) | 286 if (!m_client) |
287 return String(); | 287 return String(); |
288 return m_client->userAgent(url); | 288 return m_client->userAgent(url); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 void ExecutionContext::trace(Visitor* visitor) | 339 void ExecutionContext::trace(Visitor* visitor) |
340 { | 340 { |
341 #if ENABLE(OILPAN) | 341 #if ENABLE(OILPAN) |
342 visitor->trace(m_pendingExceptions); | 342 visitor->trace(m_pendingExceptions); |
343 #endif | 343 #endif |
344 Supplementable<WebCore::ExecutionContext>::trace(visitor); | 344 Supplementable<WebCore::ExecutionContext>::trace(visitor); |
345 } | 345 } |
346 | 346 |
347 } // namespace WebCore | 347 } // namespace WebCore |
OLD | NEW |