Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1965)

Unified Diff: Source/core/testing/Internals.cpp

Issue 14458008: Clean up RenderLayer paintOrderLists code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index ae10e588352f077617ba975d5c8d6045cbea3f19..1e9bb8fa4c41ae69bd3eaf95dc8c8c2e123fbcc6 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -68,6 +68,7 @@
#include "TypeConversions.h"
#include "ViewportArguments.h"
#include "WorkerThread.h"
+#include "core/dom/StaticNodeList.h"
#include "core/editing/Editor.h"
#include "core/editing/SpellChecker.h"
#include "core/editing/TextIterator.h"
@@ -1558,7 +1559,9 @@ static PassRefPtr<NodeList> paintOrderList(Element* element, ExceptionCode& ec,
return 0;
}
- return layer->paintOrderList(type);
+ Vector<RefPtr<Node> > nodes;
+ layer->computePaintOrderList(type, nodes);
+ return StaticNodeList::adopt(nodes);
}
PassRefPtr<NodeList> Internals::paintOrderListBeforePromote(Element* element, ExceptionCode& ec)
« Source/core/rendering/RenderLayer.cpp ('K') | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698