Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp |
| diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp |
| index 34506d1809171ca1ef41fdc04d995e252f4aa773..732f9746ef9cdbf6c61b57f605a3823cfe4608db 100644 |
| --- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp |
| +++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp |
| @@ -213,7 +213,7 @@ static void updateMarkerRenderedRect(const Node& node, |
| range->setEnd(&const_cast<Node&>(node), marker.endOffset(), |
| IGNORE_EXCEPTION_FOR_TESTING); |
| } |
| - if (!exceptionState.hadException()) { |
| + if (!exceptionState.hadException() && range->isConnected()) { |
|
yosin_UTC9
2017/04/04 01:20:39
This change should not be in this patch.
If we nee
Hwanseung Lee
2017/04/05 15:21:30
Done.
|
| // TODO(yosin): Once we have a |EphemeralRange| version of |boundingBox()|, |
| // we should use it instead of |Range| version. |
| marker.setRenderedRect(LayoutRect(range->boundingBox())); |