Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp |
| index 75337eeed2189260acf05984ac6533c62046f20a..1829d1790d2a3d460fc6d2af5c04abc116393f21 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp |
| @@ -503,7 +503,7 @@ void LayoutText::absoluteQuadsForRange(Vector<FloatQuad>& quads, |
| start = std::min(std::max(caretMinOffset, start), caretMaxOffset); |
| end = std::min(std::max(caretMinOffset, end), caretMaxOffset); |
| - bool hasCheckedBoxInRange = false; |
| + bool hasCheckedBoxInRange = quads.isEmpty() ? false : true; |
|
mstensho (USE GERRIT)
2017/04/03 11:16:35
bool hasCheckedBoxInRange = !quads.isEmpty();
wanchang
2017/04/03 11:43:36
Done.
|
| for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) { |
| // Note: box->end() returns the index of the last character, not the index |