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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 CreatedByCreateElement = SynchronousCustomElements, | 233 CreatedByCreateElement = SynchronousCustomElements, |
| 234 // https://html.spec.whatwg.org/#create-an-element-for-the-token | 234 // https://html.spec.whatwg.org/#create-an-element-for-the-token |
| 235 CreatedByFragmentParser = CreatedByParser | AsynchronousCustomElements, | 235 CreatedByFragmentParser = CreatedByParser | AsynchronousCustomElements, |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 using DocumentClassFlags = unsigned char; | 238 using DocumentClassFlags = unsigned char; |
| 239 | 239 |
| 240 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu rityContext, public ExecutionContext, public Supplementable<Document> { | 240 class CORE_EXPORT Document : public ContainerNode, public TreeScope, public Secu rityContext, public ExecutionContext, public Supplementable<Document> { |
| 241 DEFINE_WRAPPERTYPEINFO(); | 241 DEFINE_WRAPPERTYPEINFO(); |
| 242 USING_GARBAGE_COLLECTED_MIXIN(Document); | 242 USING_GARBAGE_COLLECTED_MIXIN(Document); |
| 243 friend class Settings; | |
| 243 public: | 244 public: |
| 244 static Document* create(const DocumentInit& initializer = DocumentInit()) | 245 static Document* create(const DocumentInit& initializer = DocumentInit()) |
| 245 { | 246 { |
| 246 return new Document(initializer); | 247 return new Document(initializer); |
| 247 } | 248 } |
| 248 ~Document() override; | 249 ~Document() override; |
| 249 | 250 |
| 250 MediaQueryMatcher& mediaQueryMatcher(); | 251 MediaQueryMatcher& mediaQueryMatcher(); |
| 251 | 252 |
| 252 void mediaQueryAffectingValueChanged(); | 253 void mediaQueryAffectingValueChanged(); |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1427 | 1428 |
| 1428 int m_nodeCount; | 1429 int m_nodeCount; |
| 1429 | 1430 |
| 1430 bool m_mayContainV0Shadow = false; | 1431 bool m_mayContainV0Shadow = false; |
| 1431 | 1432 |
| 1432 Member<SnapCoordinator> m_snapCoordinator; | 1433 Member<SnapCoordinator> m_snapCoordinator; |
| 1433 | 1434 |
| 1434 bool m_visibilityWasLogged; | 1435 bool m_visibilityWasLogged; |
| 1435 | 1436 |
| 1436 Member<PropertyRegistry> m_propertyRegistry; | 1437 Member<PropertyRegistry> m_propertyRegistry; |
| 1438 | |
| 1439 std::unique_ptr<Settings> m_settings; | |
|
Justin Novosad
2016/09/12 18:44:59
You should call this m_defaultSettings
zakerinasab
2016/09/12 19:47:33
Done.
| |
| 1437 }; | 1440 }; |
| 1438 | 1441 |
| 1439 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1442 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
| 1440 | 1443 |
| 1441 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) const | 1444 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) const |
| 1442 { | 1445 { |
| 1443 // The different (legacy) meta tags have different priorities based on the t ype | 1446 // The different (legacy) meta tags have different priorities based on the t ype |
| 1444 // regardless of which order they appear in the DOM. The priority is given b y the | 1447 // regardless of which order they appear in the DOM. The priority is given b y the |
| 1445 // ViewportDescription::Type enum. | 1448 // ViewportDescription::Type enum. |
| 1446 return origin >= m_legacyViewportDescription.type; | 1449 return origin >= m_legacyViewportDescription.type; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 1476 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1479 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1477 | 1480 |
| 1478 } // namespace blink | 1481 } // namespace blink |
| 1479 | 1482 |
| 1480 #ifndef NDEBUG | 1483 #ifndef NDEBUG |
| 1481 // Outside the WebCore namespace for ease of invocation from gdb. | 1484 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1482 CORE_EXPORT void showLiveDocumentInstances(); | 1485 CORE_EXPORT void showLiveDocumentInstances(); |
| 1483 #endif | 1486 #endif |
| 1484 | 1487 |
| 1485 #endif // Document_h | 1488 #endif // Document_h |
| OLD | NEW |