| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/frame/LocalDOMWindow.h" | 28 #include "core/frame/LocalDOMWindow.h" |
| 29 | 29 |
| 30 #include "bindings/core/v8/ExceptionMessages.h" | 30 #include "bindings/core/v8/ExceptionMessages.h" |
| 31 #include "bindings/core/v8/ExceptionState.h" | 31 #include "bindings/core/v8/ExceptionState.h" |
| 32 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 32 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 33 #include "bindings/core/v8/ScriptCallStackFactory.h" | 33 #include "bindings/core/v8/ScriptCallStackFactory.h" |
| 34 #include "bindings/core/v8/ScriptController.h" | 34 #include "bindings/core/v8/ScriptController.h" |
| 35 #include "bindings/core/v8/SerializedScriptValue.h" | 35 #include "bindings/core/v8/SerializedScriptValue.h" |
| 36 #include "bindings/core/v8/V8DOMActivityLogger.h" |
| 36 #include "core/css/CSSComputedStyleDeclaration.h" | 37 #include "core/css/CSSComputedStyleDeclaration.h" |
| 37 #include "core/css/CSSRuleList.h" | 38 #include "core/css/CSSRuleList.h" |
| 38 #include "core/css/DOMWindowCSS.h" | 39 #include "core/css/DOMWindowCSS.h" |
| 39 #include "core/css/MediaQueryList.h" | 40 #include "core/css/MediaQueryList.h" |
| 40 #include "core/css/MediaQueryMatcher.h" | 41 #include "core/css/MediaQueryMatcher.h" |
| 41 #include "core/css/StyleMedia.h" | 42 #include "core/css/StyleMedia.h" |
| 42 #include "core/css/resolver/StyleResolver.h" | 43 #include "core/css/resolver/StyleResolver.h" |
| 43 #include "core/dom/ContextFeatures.h" | 44 #include "core/dom/ContextFeatures.h" |
| 44 #include "core/dom/DOMImplementation.h" | 45 #include "core/dom/DOMImplementation.h" |
| 45 #include "core/dom/Document.h" | 46 #include "core/dom/Document.h" |
| (...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1686 if (!firstFrame) | 1687 if (!firstFrame) |
| 1687 return; | 1688 return; |
| 1688 | 1689 |
| 1689 KURL completedURL = firstFrame->document()->completeURL(urlString); | 1690 KURL completedURL = firstFrame->document()->completeURL(urlString); |
| 1690 if (completedURL.isNull()) | 1691 if (completedURL.isNull()) |
| 1691 return; | 1692 return; |
| 1692 | 1693 |
| 1693 if (isInsecureScriptAccess(*callingWindow, completedURL)) | 1694 if (isInsecureScriptAccess(*callingWindow, completedURL)) |
| 1694 return; | 1695 return; |
| 1695 | 1696 |
| 1697 V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLo
ggerIfIsolatedWorld(); |
| 1698 if (activityLogger) { |
| 1699 Vector<String> argv; |
| 1700 argv.append("LocalDOMWindow"); |
| 1701 argv.append("url"); |
| 1702 argv.append(firstFrame->document()->url()); |
| 1703 argv.append(completedURL); |
| 1704 activityLogger->logEvent("blinkSetAttribute", argv.size(), argv.data()); |
| 1705 } |
| 1706 |
| 1696 // We want a new history item if we are processing a user gesture. | 1707 // We want a new history item if we are processing a user gesture. |
| 1697 m_frame->navigationScheduler().scheduleLocationChange(activeDocument, | 1708 m_frame->navigationScheduler().scheduleLocationChange(activeDocument, |
| 1698 // FIXME: What if activeDocument()->frame() is 0? | 1709 // FIXME: What if activeDocument()->frame() is 0? |
| 1699 completedURL, Referrer(activeDocument->outgoingReferrer(), activeDocumen
t->referrerPolicy()), | 1710 completedURL, Referrer(activeDocument->outgoingReferrer(), activeDocumen
t->referrerPolicy()), |
| 1700 locking != LockHistoryBasedOnGestureState); | 1711 locking != LockHistoryBasedOnGestureState); |
| 1701 } | 1712 } |
| 1702 | 1713 |
| 1703 void LocalDOMWindow::printErrorMessage(const String& message) | 1714 void LocalDOMWindow::printErrorMessage(const String& message) |
| 1704 { | 1715 { |
| 1705 if (message.isEmpty()) | 1716 if (message.isEmpty()) |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 visitor->trace(m_localStorage); | 1941 visitor->trace(m_localStorage); |
| 1931 visitor->trace(m_applicationCache); | 1942 visitor->trace(m_applicationCache); |
| 1932 visitor->trace(m_performance); | 1943 visitor->trace(m_performance); |
| 1933 visitor->trace(m_css); | 1944 visitor->trace(m_css); |
| 1934 visitor->trace(m_eventQueue); | 1945 visitor->trace(m_eventQueue); |
| 1935 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); | 1946 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); |
| 1936 EventTargetWithInlineData::trace(visitor); | 1947 EventTargetWithInlineData::trace(visitor); |
| 1937 } | 1948 } |
| 1938 | 1949 |
| 1939 } // namespace WebCore | 1950 } // namespace WebCore |
| OLD | NEW |