| OLD | NEW |
| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 #include "core/rendering/compositing/RenderLayerCompositor.h" | 133 #include "core/rendering/compositing/RenderLayerCompositor.h" |
| 134 #include "platform/DateComponents.h" | 134 #include "platform/DateComponents.h" |
| 135 #include "platform/EventDispatchForbiddenScope.h" | 135 #include "platform/EventDispatchForbiddenScope.h" |
| 136 #include "platform/Language.h" | 136 #include "platform/Language.h" |
| 137 #include "platform/Logging.h" | 137 #include "platform/Logging.h" |
| 138 #include "platform/RuntimeEnabledFeatures.h" | 138 #include "platform/RuntimeEnabledFeatures.h" |
| 139 #include "platform/ScriptForbiddenScope.h" | 139 #include "platform/ScriptForbiddenScope.h" |
| 140 #include "platform/TraceEvent.h" | 140 #include "platform/TraceEvent.h" |
| 141 #include "platform/network/HTTPParsers.h" | 141 #include "platform/network/HTTPParsers.h" |
| 142 #include "platform/scroll/Scrollbar.h" | 142 #include "platform/scroll/Scrollbar.h" |
| 143 #include "platform/text/PlatformLocale.h" | |
| 144 #include "platform/text/SegmentedString.h" | 143 #include "platform/text/SegmentedString.h" |
| 145 #include "platform/weborigin/SchemeRegistry.h" | 144 #include "platform/weborigin/SchemeRegistry.h" |
| 146 #include "public/platform/Platform.h" | 145 #include "public/platform/Platform.h" |
| 147 #include "wtf/CurrentTime.h" | 146 #include "wtf/CurrentTime.h" |
| 148 #include "wtf/DateMath.h" | 147 #include "wtf/DateMath.h" |
| 149 #include "wtf/HashFunctions.h" | 148 #include "wtf/HashFunctions.h" |
| 150 #include "wtf/MainThread.h" | 149 #include "wtf/MainThread.h" |
| 151 #include "wtf/StdLibExtras.h" | 150 #include "wtf/StdLibExtras.h" |
| 152 #include "wtf/TemporaryChange.h" | 151 #include "wtf/TemporaryChange.h" |
| 153 #include "wtf/text/StringBuffer.h" | 152 #include "wtf/text/StringBuffer.h" |
| (...skipping 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2973 if (allowActiveChanges) | 2972 if (allowActiveChanges) |
| 2974 nodesToAddToChain[i]->setActive(true); | 2973 nodesToAddToChain[i]->setActive(true); |
| 2975 if (!sawCommonAncestor) { | 2974 if (!sawCommonAncestor) { |
| 2976 nodesToAddToChain[i]->setHovered(true); | 2975 nodesToAddToChain[i]->setHovered(true); |
| 2977 if (event && (ancestorHasCapturingMouseenterListener || nodesToAddTo
Chain[i]->hasEventListeners(EventTypeNames::mouseenter))) | 2976 if (event && (ancestorHasCapturingMouseenterListener || nodesToAddTo
Chain[i]->hasEventListeners(EventTypeNames::mouseenter))) |
| 2978 nodesToAddToChain[i]->dispatchMouseEvent(*event, EventTypeNames:
:mouseenter, 0, oldHoverNode.get()); | 2977 nodesToAddToChain[i]->dispatchMouseEvent(*event, EventTypeNames:
:mouseenter, 0, oldHoverNode.get()); |
| 2979 } | 2978 } |
| 2980 } | 2979 } |
| 2981 } | 2980 } |
| 2982 | 2981 |
| 2983 Locale& Document::getCachedLocale(const AtomicString& locale) | |
| 2984 { | |
| 2985 AtomicString localeKey = locale; | |
| 2986 if (locale.isEmpty() || !RuntimeEnabledFeatures::langAttributeAwareFormContr
olUIEnabled()) | |
| 2987 return Locale::defaultLocale(); | |
| 2988 LocaleIdentifierToLocaleMap::AddResult result = m_localeCache.add(localeKey,
nullptr); | |
| 2989 if (result.isNewEntry) | |
| 2990 result.storedValue->value = Locale::create(localeKey); | |
| 2991 return *(result.storedValue->value); | |
| 2992 } | |
| 2993 | |
| 2994 Document& Document::ensureTemplateDocument() | 2982 Document& Document::ensureTemplateDocument() |
| 2995 { | 2983 { |
| 2996 if (isTemplateDocument()) | 2984 if (isTemplateDocument()) |
| 2997 return *this; | 2985 return *this; |
| 2998 | 2986 |
| 2999 if (m_templateDocument) | 2987 if (m_templateDocument) |
| 3000 return *m_templateDocument; | 2988 return *m_templateDocument; |
| 3001 | 2989 |
| 3002 if (isHTMLDocument()) { | 2990 if (isHTMLDocument()) { |
| 3003 DocumentInit init = DocumentInit::fromContext(contextDocument(), blankUR
L()).withNewRegistrationContext(); | 2991 DocumentInit init = DocumentInit::fromContext(contextDocument(), blankUR
L()).withNewRegistrationContext(); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3124 using namespace blink; | 3112 using namespace blink; |
| 3125 void showLiveDocumentInstances() | 3113 void showLiveDocumentInstances() |
| 3126 { | 3114 { |
| 3127 WeakDocumentSet& set = liveDocumentSet(); | 3115 WeakDocumentSet& set = liveDocumentSet(); |
| 3128 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 3116 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 3129 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 3117 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 3130 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 3118 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 3131 } | 3119 } |
| 3132 } | 3120 } |
| 3133 #endif | 3121 #endif |
| OLD | NEW |