| 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 542a70ff669aaf7f9d21a57097770e60df841719..8086a94eae5768719f49b6b39457f9dac91c83e9 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| @@ -136,14 +136,14 @@ static bool planCounter(LayoutObject& object, const AtomicString& identifier, bo
|
| const ComputedStyle& style = object.styleRef();
|
|
|
| switch (style.styleType()) {
|
| - case NOPSEUDO:
|
| + case PseudoIdNone:
|
| // Sometimes nodes have more then one layoutObject. Only the first one gets the counter
|
| // LayoutTests/http/tests/css/counter-crash.html
|
| if (generatingNode->layoutObject() != &object)
|
| return false;
|
| break;
|
| - case BEFORE:
|
| - case AFTER:
|
| + case PseudoIdBefore:
|
| + case PseudoIdAfter:
|
| break;
|
| default:
|
| return false; // Counters are forbidden from all other pseudo elements.
|
| @@ -401,7 +401,7 @@ PassRefPtr<StringImpl> LayoutCounter::originalText() const
|
| if (!beforeAfterContainer->isAnonymous() && !beforeAfterContainer->isPseudoElement())
|
| return nullptr; // LayoutCounters are restricted to before and after pseudo elements
|
| PseudoId containerStyle = beforeAfterContainer->style()->styleType();
|
| - if ((containerStyle == BEFORE) || (containerStyle == AFTER))
|
| + if ((containerStyle == PseudoIdBefore) || (containerStyle == PseudoIdAfter))
|
| break;
|
| beforeAfterContainer = beforeAfterContainer->parent();
|
| }
|
|
|