| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |