| Index: Source/core/editing/VisibleUnits.cpp
|
| diff --git a/Source/core/editing/VisibleUnits.cpp b/Source/core/editing/VisibleUnits.cpp
|
| index ac85bc85817d472d232489ab36a93d834adb3bcb..44f12debc405518bdd33526ec90207e2c64bacd6 100644
|
| --- a/Source/core/editing/VisibleUnits.cpp
|
| +++ b/Source/core/editing/VisibleUnits.cpp
|
| @@ -1191,7 +1191,7 @@ VisiblePosition startOfParagraph(const VisiblePosition& c, EditingBoundaryCrossi
|
| continue;
|
| }
|
|
|
| - if (r->isBR() || isBlock(n))
|
| + if (r->isBR() || isEnclosingBlock(n))
|
| break;
|
|
|
| if (r->isText() && toLayoutText(r)->resolvedTextLength()) {
|
| @@ -1268,7 +1268,7 @@ VisiblePosition endOfParagraph(const VisiblePosition &c, EditingBoundaryCrossing
|
| continue;
|
| }
|
|
|
| - if (r->isBR() || isBlock(n))
|
| + if (r->isBR() || isEnclosingBlock(n))
|
| break;
|
|
|
| // FIXME: We avoid returning a position where the layoutObject can't accept the caret.
|
|
|