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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 #include "core/html/HTMLCanvasElement.h" | 136 #include "core/html/HTMLCanvasElement.h" |
137 #include "core/html/HTMLCollection.h" | 137 #include "core/html/HTMLCollection.h" |
138 #include "core/html/HTMLDialogElement.h" | 138 #include "core/html/HTMLDialogElement.h" |
139 #include "core/html/HTMLDocument.h" | 139 #include "core/html/HTMLDocument.h" |
140 #include "core/html/HTMLFrameOwnerElement.h" | 140 #include "core/html/HTMLFrameOwnerElement.h" |
141 #include "core/html/HTMLHeadElement.h" | 141 #include "core/html/HTMLHeadElement.h" |
142 #include "core/html/HTMLHtmlElement.h" | 142 #include "core/html/HTMLHtmlElement.h" |
143 #include "core/html/HTMLIFrameElement.h" | 143 #include "core/html/HTMLIFrameElement.h" |
144 #include "core/html/HTMLInputElement.h" | 144 #include "core/html/HTMLInputElement.h" |
145 #include "core/html/HTMLLinkElement.h" | 145 #include "core/html/HTMLLinkElement.h" |
| 146 #include "core/html/HTMLMediaElement.h" |
146 #include "core/html/HTMLMetaElement.h" | 147 #include "core/html/HTMLMetaElement.h" |
147 #include "core/html/HTMLScriptElement.h" | 148 #include "core/html/HTMLScriptElement.h" |
148 #include "core/html/HTMLStyleElement.h" | 149 #include "core/html/HTMLStyleElement.h" |
149 #include "core/html/HTMLTemplateElement.h" | 150 #include "core/html/HTMLTemplateElement.h" |
150 #include "core/html/HTMLTitleElement.h" | 151 #include "core/html/HTMLTitleElement.h" |
151 #include "core/html/PluginDocument.h" | 152 #include "core/html/PluginDocument.h" |
152 #include "core/html/WindowNameCollection.h" | 153 #include "core/html/WindowNameCollection.h" |
153 #include "core/html/canvas/CanvasContextCreationAttributes.h" | 154 #include "core/html/canvas/CanvasContextCreationAttributes.h" |
154 #include "core/html/canvas/CanvasRenderingContext.h" | 155 #include "core/html/canvas/CanvasRenderingContext.h" |
155 #include "core/html/canvas/CanvasRenderingContext2D.h" | 156 #include "core/html/canvas/CanvasRenderingContext2D.h" |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 return *m_mediaQueryMatcher; | 653 return *m_mediaQueryMatcher; |
653 } | 654 } |
654 | 655 |
655 void Document::mediaQueryAffectingValueChanged() | 656 void Document::mediaQueryAffectingValueChanged() |
656 { | 657 { |
657 m_evaluateMediaQueriesOnStyleRecalc = true; | 658 m_evaluateMediaQueriesOnStyleRecalc = true; |
658 styleEngine().clearMediaQueryRuleSetStyleSheets(); | 659 styleEngine().clearMediaQueryRuleSetStyleSheets(); |
659 InspectorInstrumentation::mediaQueryResultChanged(this); | 660 InspectorInstrumentation::mediaQueryResultChanged(this); |
660 } | 661 } |
661 | 662 |
| 663 void Document::textTrackKindUserPreferenceChanged() |
| 664 { |
| 665 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaElements(this); |
| 666 } |
| 667 |
662 void Document::setCompatibilityMode(CompatibilityMode mode) | 668 void Document::setCompatibilityMode(CompatibilityMode mode) |
663 { | 669 { |
664 if (m_compatibilityModeLocked || mode == m_compatibilityMode) | 670 if (m_compatibilityModeLocked || mode == m_compatibilityMode) |
665 return; | 671 return; |
666 m_compatibilityMode = mode; | 672 m_compatibilityMode = mode; |
667 selectorQueryCache().invalidate(); | 673 selectorQueryCache().invalidate(); |
668 } | 674 } |
669 | 675 |
670 String Document::compatMode() const | 676 String Document::compatMode() const |
671 { | 677 { |
(...skipping 5015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5687 #ifndef NDEBUG | 5693 #ifndef NDEBUG |
5688 using namespace blink; | 5694 using namespace blink; |
5689 void showLiveDocumentInstances() | 5695 void showLiveDocumentInstances() |
5690 { | 5696 { |
5691 WeakDocumentSet& set = liveDocumentSet(); | 5697 WeakDocumentSet& set = liveDocumentSet(); |
5692 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5698 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5693 for (Document* document : set) | 5699 for (Document* document : set) |
5694 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5700 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5695 } | 5701 } |
5696 #endif | 5702 #endif |
OLD | NEW |