| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "core/XMLNSNames.h" | 46 #include "core/XMLNSNames.h" |
| 47 #include "core/XMLNames.h" | 47 #include "core/XMLNames.h" |
| 48 #include "core/animation/CompositorPendingAnimations.h" | 48 #include "core/animation/CompositorPendingAnimations.h" |
| 49 #include "core/animation/DocumentAnimations.h" | 49 #include "core/animation/DocumentAnimations.h" |
| 50 #include "core/animation/DocumentTimeline.h" | 50 #include "core/animation/DocumentTimeline.h" |
| 51 #include "core/css/CSSFontSelector.h" | 51 #include "core/css/CSSFontSelector.h" |
| 52 #include "core/css/CSSStyleDeclaration.h" | 52 #include "core/css/CSSStyleDeclaration.h" |
| 53 #include "core/css/CSSStyleSheet.h" | 53 #include "core/css/CSSStyleSheet.h" |
| 54 #include "core/css/FontFaceSet.h" | 54 #include "core/css/FontFaceSet.h" |
| 55 #include "core/css/MediaQueryMatcher.h" | 55 #include "core/css/MediaQueryMatcher.h" |
| 56 #include "core/css/PropertyRegistry.h" |
| 56 #include "core/css/StylePropertySet.h" | 57 #include "core/css/StylePropertySet.h" |
| 57 #include "core/css/StyleSheetContents.h" | 58 #include "core/css/StyleSheetContents.h" |
| 58 #include "core/css/StyleSheetList.h" | 59 #include "core/css/StyleSheetList.h" |
| 59 #include "core/css/invalidation/StyleInvalidator.h" | 60 #include "core/css/invalidation/StyleInvalidator.h" |
| 60 #include "core/css/parser/CSSParser.h" | 61 #include "core/css/parser/CSSParser.h" |
| 61 #include "core/css/resolver/FontBuilder.h" | 62 #include "core/css/resolver/FontBuilder.h" |
| 62 #include "core/css/resolver/StyleResolver.h" | 63 #include "core/css/resolver/StyleResolver.h" |
| 63 #include "core/css/resolver/StyleResolverStats.h" | 64 #include "core/css/resolver/StyleResolverStats.h" |
| 64 #include "core/dom/AXObjectCache.h" | 65 #include "core/dom/AXObjectCache.h" |
| 65 #include "core/dom/Attr.h" | 66 #include "core/dom/Attr.h" |
| (...skipping 5881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5947 | 5948 |
| 5948 if (order > m_shadowCascadeOrder) | 5949 if (order > m_shadowCascadeOrder) |
| 5949 m_shadowCascadeOrder = order; | 5950 m_shadowCascadeOrder = order; |
| 5950 } | 5951 } |
| 5951 | 5952 |
| 5952 LayoutViewItem Document::layoutViewItem() const | 5953 LayoutViewItem Document::layoutViewItem() const |
| 5953 { | 5954 { |
| 5954 return LayoutViewItem(m_layoutView); | 5955 return LayoutViewItem(m_layoutView); |
| 5955 } | 5956 } |
| 5956 | 5957 |
| 5958 PropertyRegistry* Document::propertyRegistry() |
| 5959 { |
| 5960 // TODO(timloh): When the flag is removed, return a reference instead. |
| 5961 if (!m_propertyRegistry && RuntimeEnabledFeatures::cssVariables2Enabled()) |
| 5962 m_propertyRegistry = PropertyRegistry::create(); |
| 5963 return m_propertyRegistry; |
| 5964 } |
| 5965 |
| 5957 DEFINE_TRACE(Document) | 5966 DEFINE_TRACE(Document) |
| 5958 { | 5967 { |
| 5959 visitor->trace(m_importsController); | 5968 visitor->trace(m_importsController); |
| 5960 visitor->trace(m_docType); | 5969 visitor->trace(m_docType); |
| 5961 visitor->trace(m_implementation); | 5970 visitor->trace(m_implementation); |
| 5962 visitor->trace(m_autofocusElement); | 5971 visitor->trace(m_autofocusElement); |
| 5963 visitor->trace(m_focusedElement); | 5972 visitor->trace(m_focusedElement); |
| 5964 visitor->trace(m_sequentialFocusNavigationStartingPoint); | 5973 visitor->trace(m_sequentialFocusNavigationStartingPoint); |
| 5965 visitor->trace(m_hoverNode); | 5974 visitor->trace(m_hoverNode); |
| 5966 visitor->trace(m_activeHoverElement); | 5975 visitor->trace(m_activeHoverElement); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6004 visitor->trace(m_userActionElements); | 6013 visitor->trace(m_userActionElements); |
| 6005 visitor->trace(m_svgExtensions); | 6014 visitor->trace(m_svgExtensions); |
| 6006 visitor->trace(m_timeline); | 6015 visitor->trace(m_timeline); |
| 6007 visitor->trace(m_compositorPendingAnimations); | 6016 visitor->trace(m_compositorPendingAnimations); |
| 6008 visitor->trace(m_contextDocument); | 6017 visitor->trace(m_contextDocument); |
| 6009 visitor->trace(m_canvasFontCache); | 6018 visitor->trace(m_canvasFontCache); |
| 6010 visitor->trace(m_intersectionObserverController); | 6019 visitor->trace(m_intersectionObserverController); |
| 6011 visitor->trace(m_intersectionObserverData); | 6020 visitor->trace(m_intersectionObserverData); |
| 6012 visitor->trace(m_snapCoordinator); | 6021 visitor->trace(m_snapCoordinator); |
| 6013 visitor->trace(m_resizeObserverController); | 6022 visitor->trace(m_resizeObserverController); |
| 6023 visitor->trace(m_propertyRegistry); |
| 6014 Supplementable<Document>::trace(visitor); | 6024 Supplementable<Document>::trace(visitor); |
| 6015 TreeScope::trace(visitor); | 6025 TreeScope::trace(visitor); |
| 6016 ContainerNode::trace(visitor); | 6026 ContainerNode::trace(visitor); |
| 6017 ExecutionContext::trace(visitor); | 6027 ExecutionContext::trace(visitor); |
| 6018 SecurityContext::trace(visitor); | 6028 SecurityContext::trace(visitor); |
| 6019 } | 6029 } |
| 6020 | 6030 |
| 6021 DEFINE_TRACE_WRAPPERS(Document) | 6031 DEFINE_TRACE_WRAPPERS(Document) |
| 6022 { | 6032 { |
| 6023 visitor->traceWrappers(m_importsController); | 6033 visitor->traceWrappers(m_importsController); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6049 } | 6059 } |
| 6050 | 6060 |
| 6051 void showLiveDocumentInstances() | 6061 void showLiveDocumentInstances() |
| 6052 { | 6062 { |
| 6053 WeakDocumentSet& set = liveDocumentSet(); | 6063 WeakDocumentSet& set = liveDocumentSet(); |
| 6054 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6064 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6055 for (Document* document : set) | 6065 for (Document* document : set) |
| 6056 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6066 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6057 } | 6067 } |
| 6058 #endif | 6068 #endif |
| OLD | NEW |