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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Address esprehn's comments Created 4 years 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef StyleReattachData_h 5 #ifndef StyleReattachData_h
6 #define StyleReattachData_h 6 #define StyleReattachData_h
7 7
8 #include "core/style/ComputedStyle.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 struct StyleReattachData { 12 struct StyleReattachData {
13 StyleReattachData() : computedStyle(nullptr) {}
esprehn 2016/12/14 04:30:48 RefPtr actually defaults to nullptr, no reason to
nainar 2016/12/14 22:21:54 Done.
11 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 14 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
12 DEFINE_INLINE_TRACE() { visitor->trace(nextTextSibling); } 15 DEFINE_INLINE_TRACE() { visitor->trace(nextTextSibling); }
13 16
14 RefPtr<ComputedStyle> computedStyle; 17 RefPtr<ComputedStyle> computedStyle;
15 Member<Text> nextTextSibling; 18 Member<Text> nextTextSibling;
16 }; 19 };
17 20
18 } // namespace blink 21 } // namespace blink
19 22
20 #endif // StyleReattachData_h 23 #endif // StyleReattachData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698