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 5415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5426 { | 5426 { |
5427 AtomicString localeKey = locale; | 5427 AtomicString localeKey = locale; |
5428 if (locale.isEmpty() || !RuntimeEnabledFeatures::langAttributeAwareFormContr
olUIEnabled()) | 5428 if (locale.isEmpty() || !RuntimeEnabledFeatures::langAttributeAwareFormContr
olUIEnabled()) |
5429 return Locale::defaultLocale(); | 5429 return Locale::defaultLocale(); |
5430 LocaleIdentifierToLocaleMap::AddResult result = m_localeCache.add(localeKey,
nullptr); | 5430 LocaleIdentifierToLocaleMap::AddResult result = m_localeCache.add(localeKey,
nullptr); |
5431 if (result.isNewEntry) | 5431 if (result.isNewEntry) |
5432 result.storedValue->value = Locale::create(localeKey); | 5432 result.storedValue->value = Locale::create(localeKey); |
5433 return *(result.storedValue->value); | 5433 return *(result.storedValue->value); |
5434 } | 5434 } |
5435 | 5435 |
5436 AnimationClock& Document::animationClock() | |
5437 { | |
5438 ASSERT(page()); | |
5439 return page()->animator().clock(); | |
5440 } | |
5441 | |
5442 Document& Document::ensureTemplateDocument() | 5436 Document& Document::ensureTemplateDocument() |
5443 { | 5437 { |
5444 if (isTemplateDocument()) | 5438 if (isTemplateDocument()) |
5445 return *this; | 5439 return *this; |
5446 | 5440 |
5447 if (m_templateDocument) | 5441 if (m_templateDocument) |
5448 return *m_templateDocument; | 5442 return *m_templateDocument; |
5449 | 5443 |
5450 if (isHTMLDocument()) { | 5444 if (isHTMLDocument()) { |
5451 DocumentInit init = DocumentInit::fromContext(contextDocument(), blankUR
L()).withNewRegistrationContext(); | 5445 DocumentInit init = DocumentInit::fromContext(contextDocument(), blankUR
L()).withNewRegistrationContext(); |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5807 #ifndef NDEBUG | 5801 #ifndef NDEBUG |
5808 using namespace blink; | 5802 using namespace blink; |
5809 void showLiveDocumentInstances() | 5803 void showLiveDocumentInstances() |
5810 { | 5804 { |
5811 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5805 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5812 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5806 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5813 for (Document* document : set) | 5807 for (Document* document : set) |
5814 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5808 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5815 } | 5809 } |
5816 #endif | 5810 #endif |
OLD | NEW |