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

Unified Diff: third_party/WebKit/Source/core/style/StyleDifference.cpp

Issue 2777803002: Revert of Add operator<< to StyleDifference for debug logging. (Closed)
Patch Set: resolve conflict Created 3 years, 9 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/style/StyleDifference.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleDifference.cpp b/third_party/WebKit/Source/core/style/StyleDifference.cpp
deleted file mode 100644
index ec4d70e7044c1970c6e966331b250a4a0970b09d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/style/StyleDifference.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/style/StyleDifference.h"
-
-namespace blink {
-
-std::ostream& operator<<(std::ostream& out, const StyleDifference& diff) {
- out << "StyleDifference{layoutType=";
-
- switch (diff.m_layoutType) {
- case StyleDifference::NoLayout:
- out << "NoLayout";
- break;
- case StyleDifference::PositionedMovement:
- out << "PositionedMovement";
- break;
- case StyleDifference::FullLayout:
- out << "FullLayout";
- break;
- default:
- NOTREACHED();
- break;
- }
-
- out << ", paintInvalidationType=";
- switch (diff.m_paintInvalidationType) {
- case StyleDifference::NoPaintInvalidation:
- out << "NoPaintInvalidation";
- break;
- case StyleDifference::PaintInvalidationObject:
- out << "PaintInvalidationObject";
- break;
- case StyleDifference::PaintInvalidationSubtree:
- out << "PaintInvalidationSubtree";
- break;
- default:
- NOTREACHED();
- break;
- }
-
- out << ", recomputeOverflow=" << diff.m_recomputeOverflow;
- out << ", visualRectUpdate=" << diff.m_visualRectUpdate;
-
- out << ", propertySpecificDifferences=";
- int diffCount = 0;
- for (int i = 0; i < StyleDifference::PropertyDifferenceMax; i++) {
- unsigned bitTest = 1 << i;
- if (diff.m_propertySpecificDifferences & bitTest) {
- if (diffCount++ > 0)
- out << "|";
- switch (bitTest) {
- case StyleDifference::TransformChanged:
- out << "TransformChanged";
- break;
- case StyleDifference::OpacityChanged:
- out << "OpacityChanged";
- break;
- case StyleDifference::ZIndexChanged:
- out << "ZIndexChanged";
- break;
- case StyleDifference::FilterChanged:
- out << "FilterChanged";
- break;
- case StyleDifference::BackdropFilterChanged:
- out << "BackdropFilterChanged";
- break;
- case StyleDifference::CSSClipChanged:
- out << "CSSClipChanged";
- break;
- case StyleDifference::TextDecorationOrColorChanged:
- out << "TextDecorationOrColorChanged";
- break;
- case StyleDifference::ScrollAnchorDisablingPropertyChanged:
- out << "ScrollAnchorDisablingPropertyChanged";
- break;
- default:
- NOTREACHED();
- break;
- }
- }
- }
-
- return out << "}";
-}
-
-} // namespace blink
« 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