| Index: third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| index a0e4be177a0dc40560d2d9dfad880e968d07180b..85fa3dd69d1412ffbea1225974cd2bc05a5c293d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| @@ -250,8 +250,9 @@ static bool findPlaceForCounter(LayoutObject& counterOwner,
|
| if (currentCounter->actsAsReset()) {
|
| // We found a reset counter that is on a layoutObject that is a
|
| // sibling of ours or a parent.
|
| - if (isReset && areLayoutObjectsElementsSiblings(
|
| - *currentLayoutObject, counterOwner)) {
|
| + if (isReset &&
|
| + areLayoutObjectsElementsSiblings(*currentLayoutObject,
|
| + counterOwner)) {
|
| // We are also a reset counter and the previous reset was on a
|
| // sibling layoutObject hence we are the next sibling of that
|
| // counter if that reset is not a root or we are a root node if
|
| @@ -296,8 +297,9 @@ static bool findPlaceForCounter(LayoutObject& counterOwner,
|
| // are a sibling of the end counter we must set previousSibling to
|
| // currentCounter.
|
| if (currentCounter->actsAsReset()) {
|
| - if (isReset && areLayoutObjectsElementsSiblings(
|
| - *currentLayoutObject, counterOwner)) {
|
| + if (isReset &&
|
| + areLayoutObjectsElementsSiblings(*currentLayoutObject,
|
| + counterOwner)) {
|
| parent = currentCounter->parent();
|
| previousSibling = currentCounter;
|
| return parent.get();
|
|
|