Chromium Code Reviews| 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, 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 class HTMLAllCollection; | 110 class HTMLAllCollection; |
| 111 class HTMLCanvasElement; | 111 class HTMLCanvasElement; |
| 112 class HTMLCollection; | 112 class HTMLCollection; |
| 113 class HTMLDialogElement; | 113 class HTMLDialogElement; |
| 114 class HTMLElement; | 114 class HTMLElement; |
| 115 class HTMLFrameOwnerElement; | 115 class HTMLFrameOwnerElement; |
| 116 class HTMLHeadElement; | 116 class HTMLHeadElement; |
| 117 class HTMLImportLoader; | 117 class HTMLImportLoader; |
| 118 class HTMLImportsController; | 118 class HTMLImportsController; |
| 119 class HTMLLinkElement; | 119 class HTMLLinkElement; |
| 120 class HTMLMediaElement; | |
| 120 class HTMLScriptElement; | 121 class HTMLScriptElement; |
| 121 class HitTestRequest; | 122 class HitTestRequest; |
| 122 class LayoutPoint; | 123 class LayoutPoint; |
| 123 class LiveNodeListBase; | 124 class LiveNodeListBase; |
| 124 class Locale; | 125 class Locale; |
| 125 class LocalFrame; | 126 class LocalFrame; |
| 126 class Location; | 127 class Location; |
| 127 class MainThreadTaskRunner; | 128 class MainThreadTaskRunner; |
| 128 class MediaQueryListListener; | 129 class MediaQueryListListener; |
| 129 class MediaQueryMatcher; | 130 class MediaQueryMatcher; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ er = DocumentInit()) | 231 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ er = DocumentInit()) |
| 231 { | 232 { |
| 232 return adoptRefWillBeNoop(new Document(initializer)); | 233 return adoptRefWillBeNoop(new Document(initializer)); |
| 233 } | 234 } |
| 234 virtual ~Document(); | 235 virtual ~Document(); |
| 235 | 236 |
| 236 MediaQueryMatcher& mediaQueryMatcher(); | 237 MediaQueryMatcher& mediaQueryMatcher(); |
| 237 | 238 |
| 238 void mediaQueryAffectingValueChanged(); | 239 void mediaQueryAffectingValueChanged(); |
| 239 | 240 |
| 241 void registerForTextTracksVisibilityChangedCallback(HTMLMediaElement*); | |
| 242 void unregisterFromTextTracksVisibilityChangedCallback(HTMLMediaElement*); | |
| 243 void textTracksVisibilityChanged(bool visible); | |
| 244 | |
| 240 #if !ENABLE(OILPAN) | 245 #if !ENABLE(OILPAN) |
| 241 using ContainerNode::ref; | 246 using ContainerNode::ref; |
| 242 using ContainerNode::deref; | 247 using ContainerNode::deref; |
| 243 #endif | 248 #endif |
| 244 using SecurityContext::securityOrigin; | 249 using SecurityContext::securityOrigin; |
| 245 using SecurityContext::contentSecurityPolicy; | 250 using SecurityContext::contentSecurityPolicy; |
| 246 using TreeScope::getElementById; | 251 using TreeScope::getElementById; |
| 247 | 252 |
| 248 virtual bool canContainRangeEndPoint() const override { return true; } | 253 virtual bool canContainRangeEndPoint() const override { return true; } |
| 249 | 254 |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1404 bool m_hasViewportUnits; | 1409 bool m_hasViewportUnits; |
| 1405 | 1410 |
| 1406 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb er<DocumentVisibilityObserver>>; | 1411 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb er<DocumentVisibilityObserver>>; |
| 1407 DocumentVisibilityObserverSet m_visibilityObservers; | 1412 DocumentVisibilityObserverSet m_visibilityObservers; |
| 1408 | 1413 |
| 1409 int m_styleRecalcElementCounter; | 1414 int m_styleRecalcElementCounter; |
| 1410 | 1415 |
| 1411 ParserSynchronizationPolicy m_parserSyncPolicy; | 1416 ParserSynchronizationPolicy m_parserSyncPolicy; |
| 1412 | 1417 |
| 1413 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; | 1418 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; |
| 1419 | |
| 1420 Vector<HTMLMediaElement*> m_textTracksVisibilityChangedElements; | |
|
tkent
2015/04/29 23:58:44
Setting change won't happen so frequently, and doe
srivats
2015/05/01 23:03:31
Done.
| |
| 1414 }; | 1421 }; |
| 1415 | 1422 |
| 1416 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) | 1423 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) |
| 1417 { | 1424 { |
| 1418 // The different (legacy) meta tags have different priorities based on the t ype | 1425 // The different (legacy) meta tags have different priorities based on the t ype |
| 1419 // regardless of which order they appear in the DOM. The priority is given b y the | 1426 // regardless of which order they appear in the DOM. The priority is given b y the |
| 1420 // ViewportDescription::Type enum. | 1427 // ViewportDescription::Type enum. |
| 1421 return origin >= m_legacyViewportDescription.type; | 1428 return origin >= m_legacyViewportDescription.type; |
| 1422 } | 1429 } |
| 1423 | 1430 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 1451 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1458 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1452 | 1459 |
| 1453 } // namespace blink | 1460 } // namespace blink |
| 1454 | 1461 |
| 1455 #ifndef NDEBUG | 1462 #ifndef NDEBUG |
| 1456 // Outside the WebCore namespace for ease of invocation from gdb. | 1463 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1457 void showLiveDocumentInstances(); | 1464 void showLiveDocumentInstances(); |
| 1458 #endif | 1465 #endif |
| 1459 | 1466 |
| 1460 #endif // Document_h | 1467 #endif // Document_h |
| OLD | NEW |