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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1913833002: Current work-in-progress crbug.com/567021 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More assert fixes Created 4 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, 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 class VisualViewport; 169 class VisualViewport;
170 class WebGLRenderingContext; 170 class WebGLRenderingContext;
171 enum class SelectionBehaviorOnFocus; 171 enum class SelectionBehaviorOnFocus;
172 struct AnnotatedRegionValue; 172 struct AnnotatedRegionValue;
173 struct FocusParams; 173 struct FocusParams;
174 struct IconURL; 174 struct IconURL;
175 175
176 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ; 176 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ;
177 using ExceptionCode = int; 177 using ExceptionCode = int;
178 178
179 enum StyleResolverUpdateMode {
180 // Discards the StyleResolver and rebuilds it.
181 FullStyleUpdate,
182 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver.
183 AnalyzedStyleUpdate
184 };
185
186 enum NodeListInvalidationType { 179 enum NodeListInvalidationType {
187 DoNotInvalidateOnAttributeChanges = 0, 180 DoNotInvalidateOnAttributeChanges = 0,
188 InvalidateOnClassAttrChange, 181 InvalidateOnClassAttrChange,
189 InvalidateOnIdNameAttrChange, 182 InvalidateOnIdNameAttrChange,
190 InvalidateOnNameAttrChange, 183 InvalidateOnNameAttrChange,
191 InvalidateOnForAttrChange, 184 InvalidateOnForAttrChange,
192 InvalidateForFormControls, 185 InvalidateForFormControls,
193 InvalidateOnHRefAttrChange, 186 InvalidateOnHRefAttrChange,
194 InvalidateOnAnyAttrChange, 187 InvalidateOnAnyAttrChange,
195 }; 188 };
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 HttpRefreshFromMetaTag 1012 HttpRefreshFromMetaTag
1020 }; 1013 };
1021 void maybeHandleHttpRefresh(const String&, HttpRefreshType); 1014 void maybeHandleHttpRefresh(const String&, HttpRefreshType);
1022 1015
1023 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); 1016 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>);
1024 1017
1025 void setHasViewportUnits() { m_hasViewportUnits = true; } 1018 void setHasViewportUnits() { m_hasViewportUnits = true; }
1026 bool hasViewportUnits() const { return m_hasViewportUnits; } 1019 bool hasViewportUnits() const { return m_hasViewportUnits; }
1027 void notifyResizeForViewportUnits(); 1020 void notifyResizeForViewportUnits();
1028 1021
1029 void updateStyleInvalidationIfNeeded();
1030
1031 DECLARE_VIRTUAL_TRACE(); 1022 DECLARE_VIRTUAL_TRACE();
1032 1023
1033 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 1024 DECLARE_VIRTUAL_TRACE_WRAPPERS();
1034 1025
1035 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); } 1026 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate SVGFilterElements.size(); }
1036 1027
1037 AtomicString convertLocalName(const AtomicString&); 1028 AtomicString convertLocalName(const AtomicString&);
1038 1029
1039 void platformColorsChanged(); 1030 void platformColorsChanged();
1040 1031
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 1114
1124 bool needsFullLayoutTreeUpdate() const; 1115 bool needsFullLayoutTreeUpdate() const;
1125 1116
1126 void inheritHtmlAndBodyElementStyles(StyleRecalcChange); 1117 void inheritHtmlAndBodyElementStyles(StyleRecalcChange);
1127 1118
1128 bool dirtyElementsForLayerUpdate(); 1119 bool dirtyElementsForLayerUpdate();
1129 1120
1130 void updateUseShadowTreesIfNeeded(); 1121 void updateUseShadowTreesIfNeeded();
1131 void evaluateMediaQueryListIfNeeded(); 1122 void evaluateMediaQueryListIfNeeded();
1132 1123
1124 void updateStyleInvalidation();
1133 void updateStyle(); 1125 void updateStyle();
1134 void notifyLayoutTreeOfSubtreeChanges(); 1126 void notifyLayoutTreeOfSubtreeChanges();
1135 1127
1136 void detachParser(); 1128 void detachParser();
1137 1129
1138 void beginLifecycleUpdatesIfRenderingReady(); 1130 void beginLifecycleUpdatesIfRenderingReady();
1139 1131
1140 bool isDocument() const final { return true; } 1132 bool isDocument() const final { return true; }
1141 1133
1142 void childrenChanged(const ChildrenChange&) override; 1134 void childrenChanged(const ChildrenChange&) override;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1446 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1455 1447
1456 } // namespace blink 1448 } // namespace blink
1457 1449
1458 #ifndef NDEBUG 1450 #ifndef NDEBUG
1459 // Outside the WebCore namespace for ease of invocation from gdb. 1451 // Outside the WebCore namespace for ease of invocation from gdb.
1460 CORE_EXPORT void showLiveDocumentInstances(); 1452 CORE_EXPORT void showLiveDocumentInstances();
1461 #endif 1453 #endif
1462 1454
1463 #endif // Document_h 1455 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698