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

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: Add DCHECK and assign nullptr in constructor 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 5478be0cd969217b3f8a38bb51aec88ca25237df..eaef989be935740987699c64d2e9a7fb4018a28f 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(); }
@@ -1449,10 +1446,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.

Powered by Google App Engine
This is Rietveld 408576698