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

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

Issue 2821193003: Store nonAttachedStyle on NodeLayoutData instead of on HashMap in Document. (Closed)
Patch Set: Revert back to rune@'s lgtmed patch Created 3 years, 8 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
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 c650a95bd9df0b206c80b9e9e4e8ca4b9fbbaa72..b68d1cdb7bfa46ca70c27e7f1ba4c834a7d8c3c7 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -345,9 +345,6 @@ class CORE_EXPORT Document : public ContainerNode,
// just for the web IDL implementation.
Element* ScrollingElementNoLayout();
- void AddNonAttachedStyle(const Node&, RefPtr<ComputedStyle>);
- ComputedStyle* GetNonAttachedStyle(const Node&) const;
-
String readyState() const;
AtomicString characterSet() const { return Document::EncodingName(); }
@@ -1457,10 +1454,6 @@ class CORE_EXPORT Document : public ContainerNode,
Member<DocumentParser> parser_;
Member<ContextFeatures> context_features_;
- // This HashMap is used to temporaily store the ComputedStyle generated in the
- // Style Resolution phase which is used in the Layout Tree construction phase.
- HeapHashMap<Member<const Node>, RefPtr<ComputedStyle>> non_attached_style_;
-
bool well_formed_;
// Document URLs.
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.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