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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments from fs Created 5 years, 6 months 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
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, 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #include "core/html/HTMLCanvasElement.h" 137 #include "core/html/HTMLCanvasElement.h"
138 #include "core/html/HTMLCollection.h" 138 #include "core/html/HTMLCollection.h"
139 #include "core/html/HTMLDialogElement.h" 139 #include "core/html/HTMLDialogElement.h"
140 #include "core/html/HTMLDocument.h" 140 #include "core/html/HTMLDocument.h"
141 #include "core/html/HTMLFrameOwnerElement.h" 141 #include "core/html/HTMLFrameOwnerElement.h"
142 #include "core/html/HTMLHeadElement.h" 142 #include "core/html/HTMLHeadElement.h"
143 #include "core/html/HTMLHtmlElement.h" 143 #include "core/html/HTMLHtmlElement.h"
144 #include "core/html/HTMLIFrameElement.h" 144 #include "core/html/HTMLIFrameElement.h"
145 #include "core/html/HTMLInputElement.h" 145 #include "core/html/HTMLInputElement.h"
146 #include "core/html/HTMLLinkElement.h" 146 #include "core/html/HTMLLinkElement.h"
147 #include "core/html/HTMLMediaElement.h"
147 #include "core/html/HTMLMetaElement.h" 148 #include "core/html/HTMLMetaElement.h"
148 #include "core/html/HTMLScriptElement.h" 149 #include "core/html/HTMLScriptElement.h"
149 #include "core/html/HTMLStyleElement.h" 150 #include "core/html/HTMLStyleElement.h"
150 #include "core/html/HTMLTemplateElement.h" 151 #include "core/html/HTMLTemplateElement.h"
151 #include "core/html/HTMLTitleElement.h" 152 #include "core/html/HTMLTitleElement.h"
152 #include "core/html/PluginDocument.h" 153 #include "core/html/PluginDocument.h"
153 #include "core/html/WindowNameCollection.h" 154 #include "core/html/WindowNameCollection.h"
154 #include "core/html/canvas/CanvasContextCreationAttributes.h" 155 #include "core/html/canvas/CanvasContextCreationAttributes.h"
155 #include "core/html/canvas/CanvasRenderingContext.h" 156 #include "core/html/canvas/CanvasRenderingContext.h"
156 #include "core/html/canvas/CanvasRenderingContext2D.h" 157 #include "core/html/canvas/CanvasRenderingContext2D.h"
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 return *m_mediaQueryMatcher; 654 return *m_mediaQueryMatcher;
654 } 655 }
655 656
656 void Document::mediaQueryAffectingValueChanged() 657 void Document::mediaQueryAffectingValueChanged()
657 { 658 {
658 m_evaluateMediaQueriesOnStyleRecalc = true; 659 m_evaluateMediaQueriesOnStyleRecalc = true;
659 styleEngine().clearMediaQueryRuleSetStyleSheets(); 660 styleEngine().clearMediaQueryRuleSetStyleSheets();
660 InspectorInstrumentation::mediaQueryResultChanged(this); 661 InspectorInstrumentation::mediaQueryResultChanged(this);
661 } 662 }
662 663
664 void Document::textTrackKindUserPreferenceChanged()
665 {
666 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaElements(this);
667 }
668
663 void Document::setCompatibilityMode(CompatibilityMode mode) 669 void Document::setCompatibilityMode(CompatibilityMode mode)
664 { 670 {
665 if (m_compatibilityModeLocked || mode == m_compatibilityMode) 671 if (m_compatibilityModeLocked || mode == m_compatibilityMode)
666 return; 672 return;
667 m_compatibilityMode = mode; 673 m_compatibilityMode = mode;
668 selectorQueryCache().invalidate(); 674 selectorQueryCache().invalidate();
669 } 675 }
670 676
671 String Document::compatMode() const 677 String Document::compatMode() const
672 { 678 {
(...skipping 5093 matching lines...) Expand 10 before | Expand all | Expand 10 after
5766 #ifndef NDEBUG 5772 #ifndef NDEBUG
5767 using namespace blink; 5773 using namespace blink;
5768 void showLiveDocumentInstances() 5774 void showLiveDocumentInstances()
5769 { 5775 {
5770 WeakDocumentSet& set = liveDocumentSet(); 5776 WeakDocumentSet& set = liveDocumentSet();
5771 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 5777 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
5772 for (Document* document : set) 5778 for (Document* document : set)
5773 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data()); 5779 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str ing().utf8().data());
5774 } 5780 }
5775 #endif 5781 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698