Index: third_party/WebKit/Source/core/html/HTMLOListElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLOListElement.cpp b/third_party/WebKit/Source/core/html/HTMLOListElement.cpp |
index 5dcd6c6a07a666f186888b70930559bf202ff2bc..0a0c69d8c5f1b201df0c00c6fa59d7021aa3e471 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLOListElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLOListElement.cpp |
@@ -96,6 +96,20 @@ void HTMLOListElement::ParseAttribute( |
} |
} |
+int HTMLOListElement::start() const { |
+ if (has_explicit_start_) |
+ return start_; |
+ |
+ if (is_reversed_) { |
+ UseCounter::Count( |
+ GetDocument(), |
+ UseCounter::kHTMLOListElementStartGetterReversedWithoutStartAttribute); |
+ return ItemCount(); |
+ } |
+ |
+ return 1; |
+} |
+ |
void HTMLOListElement::setStart(int start) { |
SetIntegralAttribute(startAttr, start); |
} |