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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2376453004: Stash ComputedStyles on new HeapHashMap on Document. (Closed)
Patch Set: Post LGTM with nits changes Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index bf6b2ec2e7cc0b3d9532c6c99dcda7366683bb39..31e6fa093898b30380fa398822e1db26da368d18 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -328,6 +328,9 @@ class CORE_EXPORT Document : public ContainerNode,
Range* caretRangeFromPoint(int x, int y);
Element* scrollingElement();
+ void addNonAttachedStyle(Element&, RefPtr<ComputedStyle>);
+ ComputedStyle* getNonAttachedStyle(Element&);
+
String readyState() const;
AtomicString characterSet() const { return Document::encodingName(); }
@@ -1411,6 +1414,8 @@ class CORE_EXPORT Document : public ContainerNode,
Member<DocumentParser> m_parser;
Member<ContextFeatures> m_contextFeatures;
+ HeapHashMap<Member<Element>, RefPtr<ComputedStyle>> m_nonAttachedStyle;
+
bool m_wellFormed;
// Document URLs.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698