Commit e0c7f959 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Get rid ot unused enum member NGOffsetMappingUnitType::kExpanded

This patch gets rid of unused enum member |NGOffsetMappingUnitType::kExpanded|
for improving code health.

Change-Id: I13331a6974e30e6b7b583be2cee1d1989b003ca0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2167637
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762731}
parent 788154c9
......@@ -138,7 +138,7 @@ const Node& NGOffsetMappingUnit::GetOwner() const {
bool NGOffsetMappingUnit::Concatenate(const NGOffsetMappingUnit& other) {
if (layout_object_ != other.layout_object_)
return false;
if (type_ != other.type_ || type_ == NGOffsetMappingUnitType::kExpanded)
if (type_ != other.type_)
return false;
if (dom_end_ != other.dom_start_)
return false;
......
......@@ -21,7 +21,7 @@ namespace blink {
class LayoutBlockFlow;
class LayoutObject;
enum class NGOffsetMappingUnitType { kIdentity, kCollapsed, kExpanded };
enum class NGOffsetMappingUnitType { kIdentity, kCollapsed };
// An NGOffsetMappingUnit indicates a "simple" offset mapping between dom offset
// range [dom_start, dom_end] on node |owner| and text content offset range
......
......@@ -92,7 +92,6 @@ class NGOffsetMappingTest : public NGLayoutTest {
protected:
static const auto kCollapsed = NGOffsetMappingUnitType::kCollapsed;
static const auto kIdentity = NGOffsetMappingUnitType::kIdentity;
static const auto kExpanded = NGOffsetMappingUnitType::kExpanded;
void SetUp() override {
NGLayoutTest::SetUp();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment