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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2813563005: Remove fast path checks that look into the Groups in ComputedStyle (Closed)
Patch Set: Reintroduce comparison of objects 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.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/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index b91538efcfaa7eb5ae14c5775966265e5ac000d0..bf2a5e12ca78cdb4aba7c2759446feab31b4bd62 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -310,10 +310,13 @@ NodeRareData& Node::EnsureRareData() {
if (HasRareData())
return *RareData();
- if (IsElementNode())
- data_.rare_data_ = ElementRareData::Create(data_.layout_object_);
- else
- data_.rare_data_ = NodeRareData::Create(data_.layout_object_);
+ if (IsElementNode()) {
+ data_.rare_data_ =
+ ElementRareData::Create(data_.layout_data_->GetLayoutObject());
+ } else {
+ data_.rare_data_ =
+ NodeRareData::Create(data_.layout_data_->GetLayoutObject());
+ }
DCHECK(data_.rare_data_);
SetFlag(kHasRareDataFlag);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698