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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 706403002: Remove all the now dead Locale code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 class FrameView; 89 class FrameView;
90 class HTMLCanvasElement; 90 class HTMLCanvasElement;
91 class HTMLDocumentParser; 91 class HTMLDocumentParser;
92 class HTMLElement; 92 class HTMLElement;
93 class HTMLImport; 93 class HTMLImport;
94 class HTMLImportLoader; 94 class HTMLImportLoader;
95 class HTMLImportsController; 95 class HTMLImportsController;
96 class HTMLScriptElement; 96 class HTMLScriptElement;
97 class HitTestRequest; 97 class HitTestRequest;
98 class LayoutPoint; 98 class LayoutPoint;
99 class Locale;
100 class LocalDOMWindow; 99 class LocalDOMWindow;
101 class LocalFrame; 100 class LocalFrame;
102 class Location; 101 class Location;
103 class MediaQueryListListener; 102 class MediaQueryListListener;
104 class MediaQueryMatcher; 103 class MediaQueryMatcher;
105 class Page; 104 class Page;
106 class PlatformMouseEvent; 105 class PlatformMouseEvent;
107 class QualifiedName; 106 class QualifiedName;
108 class Range; 107 class Range;
109 class RenderView; 108 class RenderView;
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 void decrementActiveParserCount(); 600 void decrementActiveParserCount();
602 601
603 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } 602 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); }
604 603
605 void didLoadAllScriptBlockingResources(); 604 void didLoadAllScriptBlockingResources();
606 void didRemoveAllPendingStylesheet(); 605 void didRemoveAllPendingStylesheet();
607 void clearStyleResolver(); 606 void clearStyleResolver();
608 607
609 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; } 608 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; }
610 609
611 // Return a Locale for the default locale if the argument is null or empty.
612 Locale& getCachedLocale(const AtomicString& locale = nullAtom);
613
614 AnimationClock& animationClock() { return m_animationClock; } 610 AnimationClock& animationClock() { return m_animationClock; }
615 AnimationTimeline& timeline() const { return *m_timeline; } 611 AnimationTimeline& timeline() const { return *m_timeline; }
616 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos itorPendingAnimations; } 612 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos itorPendingAnimations; }
617 613
618 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument(). 614 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument().
619 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 615 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
620 Document& ensureTemplateDocument(); 616 Document& ensureTemplateDocument();
621 Document* templateDocumentHost() { return m_templateDocumentHost; } 617 Document* templateDocumentHost() { return m_templateDocumentHost; }
622 618
623 virtual void addMessage(PassRefPtr<ConsoleMessage>) override final; 619 virtual void addMessage(PassRefPtr<ConsoleMessage>) override final;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; 838 RefPtr<ScriptedAnimationController> m_scriptedAnimationController;
843 839
844 RefPtr<CustomElementRegistrationContext> m_registrationContext; 840 RefPtr<CustomElementRegistrationContext> m_registrationContext;
845 RefPtr<CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue; 841 RefPtr<CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue;
846 842
847 void elementDataCacheClearTimerFired(Timer<Document>*); 843 void elementDataCacheClearTimerFired(Timer<Document>*);
848 Timer<Document> m_elementDataCacheClearTimer; 844 Timer<Document> m_elementDataCacheClearTimer;
849 845
850 OwnPtr<ElementDataCache> m_elementDataCache; 846 OwnPtr<ElementDataCache> m_elementDataCache;
851 847
852 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap;
853 LocaleIdentifierToLocaleMap m_localeCache;
854
855 AnimationClock m_animationClock; 848 AnimationClock m_animationClock;
856 RefPtr<AnimationTimeline> m_timeline; 849 RefPtr<AnimationTimeline> m_timeline;
857 CompositorPendingAnimations m_compositorPendingAnimations; 850 CompositorPendingAnimations m_compositorPendingAnimations;
858 851
859 RefPtr<Document> m_templateDocument; 852 RefPtr<Document> m_templateDocument;
860 // With Oilpan the templateDocument and the templateDocumentHost 853 // With Oilpan the templateDocument and the templateDocumentHost
861 // live and die together. Without Oilpan, the templateDocumentHost 854 // live and die together. Without Oilpan, the templateDocumentHost
862 // is a manually managed backpointer from m_templateDocument. 855 // is a manually managed backpointer from m_templateDocument.
863 RawPtr<Document> m_templateDocumentHost; 856 RawPtr<Document> m_templateDocumentHost;
864 857
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 Node* eventTargetNodeForDocument(Document*); 893 Node* eventTargetNodeForDocument(Document*);
901 894
902 } // namespace blink 895 } // namespace blink
903 896
904 #ifndef NDEBUG 897 #ifndef NDEBUG
905 // Outside the WebCore namespace for ease of invocation from gdb. 898 // Outside the WebCore namespace for ease of invocation from gdb.
906 void showLiveDocumentInstances(); 899 void showLiveDocumentInstances();
907 #endif 900 #endif
908 901
909 #endif // Document_h 902 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698