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

Unified Diff: third_party/WebKit/Source/core/layout/ng/geometry/ng_margin_strut.h

Issue 2723023003: Revert of [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Created 3 years, 10 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/layout/ng/geometry/ng_margin_strut.h
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_margin_strut.h b/third_party/WebKit/Source/core/layout/ng/geometry/ng_margin_strut.h
deleted file mode 100644
index d67239d1c9c584bee163e0bdf9399e22daa41a12..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_margin_strut.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef NGMarginStrut_h
-#define NGMarginStrut_h
-
-#include "core/CoreExport.h"
-#include "platform/LayoutUnit.h"
-
-namespace blink {
-
-// This struct is used for the margin collapsing calculation.
-struct CORE_EXPORT NGMarginStrut {
- LayoutUnit margin;
- LayoutUnit negative_margin;
-
- // Appends negative or positive value to the current margin strut.
- void Append(const LayoutUnit& value);
-
- // Sum up negative and positive margins of this strut.
- LayoutUnit Sum() const;
-
- bool operator==(const NGMarginStrut& other) const;
-
- String ToString() const;
-};
-
-CORE_EXPORT std::ostream& operator<<(std::ostream&, const NGMarginStrut&);
-
-} // namespace blink
-
-#endif // NGMarginStrut_h

Powered by Google App Engine
This is Rietveld 408576698