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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleDifference.cpp

Issue 2776413002: Reland of Add StyleDifference::needsVisualRectUpdate (Closed)
Patch Set: Fix webkit_unit_tests 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "core/style/StyleDifference.h" 5 #include "core/style/StyleDifference.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 std::ostream& operator<<(std::ostream& out, const StyleDifference& diff) { 9 std::ostream& operator<<(std::ostream& out, const StyleDifference& diff) {
10 out << "StyleDifference{layoutType="; 10 out << "StyleDifference{layoutType=";
(...skipping 23 matching lines...) Expand all
34 break; 34 break;
35 case StyleDifference::PaintInvalidationSubtree: 35 case StyleDifference::PaintInvalidationSubtree:
36 out << "PaintInvalidationSubtree"; 36 out << "PaintInvalidationSubtree";
37 break; 37 break;
38 default: 38 default:
39 NOTREACHED(); 39 NOTREACHED();
40 break; 40 break;
41 } 41 }
42 42
43 out << ", recomputeOverflow=" << diff.m_recomputeOverflow; 43 out << ", recomputeOverflow=" << diff.m_recomputeOverflow;
44 out << ", visualRectUpdate=" << diff.m_visualRectUpdate;
44 45
45 out << ", propertySpecificDifferences="; 46 out << ", propertySpecificDifferences=";
46 int diffCount = 0; 47 int diffCount = 0;
47 for (int i = 0; i < StyleDifference::kPropertyDifferenceCount; i++) { 48 for (int i = 0; i < StyleDifference::kPropertyDifferenceCount; i++) {
48 unsigned bitTest = 1 << i; 49 unsigned bitTest = 1 << i;
49 if (diff.m_propertySpecificDifferences & bitTest) { 50 if (diff.m_propertySpecificDifferences & bitTest) {
50 if (diffCount++ > 0) 51 if (diffCount++ > 0)
51 out << "|"; 52 out << "|";
52 switch (bitTest) { 53 switch (bitTest) {
53 case StyleDifference::TransformChanged: 54 case StyleDifference::TransformChanged:
(...skipping 24 matching lines...) Expand all
78 } 79 }
79 } 80 }
80 81
81 out << ", scrollAnchorDisablingPropertyChanged=" 82 out << ", scrollAnchorDisablingPropertyChanged="
82 << diff.m_scrollAnchorDisablingPropertyChanged; 83 << diff.m_scrollAnchorDisablingPropertyChanged;
83 84
84 return out << "}"; 85 return out << "}";
85 } 86 }
86 87
87 } // namespace blink 88 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleDifference.h ('k') | third_party/WebKit/Source/core/style/StyleDifferenceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698