| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/layout/ng/inline/ng_inline_items_builder.h" | 5 #include "core/layout/ng/inline/ng_inline_items_builder.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutInline.h" | 7 #include "core/layout/LayoutInline.h" |
| 8 #include "core/layout/ng/inline/ng_inline_node.h" | 8 #include "core/layout/ng/inline/ng_inline_node.h" |
| 9 #include "core/style/ComputedStyle.h" | 9 #include "core/style/ComputedStyle.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 static PassRefPtr<ComputedStyle> CreateWhitespaceStyle(EWhiteSpace whitespace) { | 16 static PassRefPtr<ComputedStyle> CreateWhitespaceStyle(EWhiteSpace whitespace) { |
| 17 RefPtr<ComputedStyle> style(ComputedStyle::Create()); | 17 RefPtr<ComputedStyle> style(ComputedStyle::Create()); |
| 18 style->SetWhiteSpace(whitespace); | 18 style->SetWhiteSpace(whitespace); |
| 19 return style.Release(); | 19 return style; |
| 20 } | 20 } |
| 21 | 21 |
| 22 class NGInlineItemsBuilderTest : public ::testing::Test { | 22 class NGInlineItemsBuilderTest : public ::testing::Test { |
| 23 protected: | 23 protected: |
| 24 void SetUp() override { style_ = ComputedStyle::Create(); } | 24 void SetUp() override { style_ = ComputedStyle::Create(); } |
| 25 | 25 |
| 26 void SetWhiteSpace(EWhiteSpace whitespace) { | 26 void SetWhiteSpace(EWhiteSpace whitespace) { |
| 27 style_->SetWhiteSpace(whitespace); | 27 style_->SetWhiteSpace(whitespace); |
| 28 } | 28 } |
| 29 | 29 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 u"\u2068\u202E" | 338 u"\u2068\u202E" |
| 339 u"\u05E2\u05D1\u05E8\u05D9\u05EA" | 339 u"\u05E2\u05D1\u05E8\u05D9\u05EA" |
| 340 u"\u202C\u2069" | 340 u"\u202C\u2069" |
| 341 u" World"), | 341 u" World"), |
| 342 builder.ToString()); | 342 builder.ToString()); |
| 343 } | 343 } |
| 344 | 344 |
| 345 } // namespace | 345 } // namespace |
| 346 | 346 |
| 347 } // namespace blink | 347 } // namespace blink |
| OLD | NEW |