| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index e8673f94e010a8a0ba0eb1813ae45824ea8fe959..ff19cd0b01ae0cba2e948246a9f9da638fe3380d 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -1626,7 +1626,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);
|
|
|