| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 6f6aa1f26a94ecabfb16cc4b7f83b79bbe850c21..f5d6e674eb7bec2631125e00060583b463bc750d 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -1698,7 +1698,7 @@ void Document::recalcStyle(StyleChange change)
|
| renderer()->setStyle(documentStyle.release());
|
| }
|
|
|
| - for (Node* n = firstChild(); n; n = n->nextSibling()) {
|
| + for (Node* n = lastChild(); n; n = n->previousSibling()) {
|
| if (!n->isElementNode())
|
| continue;
|
| Element* element = toElement(n);
|
|
|