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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc

Issue 2525033002: Deprecate NGPhysicalConstraintSpace (Closed)
Patch Set: update TestExpectations 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
deleted file mode 100644
index 4d71ef91b40cd30ae3444257ade3601d000af276..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
+++ /dev/null
@@ -1,48 +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.
-
-#include "core/layout/ng/ng_physical_constraint_space.h"
-
-namespace blink {
-
-NGPhysicalConstraintSpace::NGPhysicalConstraintSpace(
- NGPhysicalSize available_size,
- NGPhysicalSize percentage_resolution_size,
- bool fixed_width,
- bool fixed_height,
- bool width_direction_triggers_scrollbar,
- bool height_direction_triggers_scrollbar,
- NGFragmentationType width_direction_fragmentation_type,
- NGFragmentationType height_direction_fragmentation_type,
- bool is_new_fc)
- : available_size_(available_size),
- percentage_resolution_size_(percentage_resolution_size),
- fixed_width_(fixed_width),
- fixed_height_(fixed_height),
- width_direction_triggers_scrollbar_(width_direction_triggers_scrollbar),
- height_direction_triggers_scrollbar_(height_direction_triggers_scrollbar),
- width_direction_fragmentation_type_(width_direction_fragmentation_type),
- height_direction_fragmentation_type_(height_direction_fragmentation_type),
- is_new_fc_(is_new_fc),
- last_left_float_exclusion_(nullptr),
- last_right_float_exclusion_(nullptr) {}
-
-void NGPhysicalConstraintSpace::AddExclusion(const NGExclusion& exclusion) {
- NGExclusion* exclusion_ptr = new NGExclusion(exclusion);
- exclusions_.append(WTF::wrapUnique(exclusion_ptr));
- if (exclusion.type == NGExclusion::kFloatLeft) {
- last_left_float_exclusion_ = exclusions_.rbegin()->get();
- } else if (exclusion.type == NGExclusion::kFloatRight) {
- last_right_float_exclusion_ = exclusions_.rbegin()->get();
- }
-}
-
-const Vector<std::unique_ptr<const NGExclusion>>&
-NGPhysicalConstraintSpace::Exclusions(unsigned options) const {
- // TODO(layout-ng): Filter based on options? Perhaps layout Opportunities
- // should filter instead?
- return exclusions_;
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698