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

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

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index d0f114d51664943dd1145651b7ef74ac0300210e..8a68e0f64542653caf292c70ba7a351a174b1cf2 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1519,8 +1519,8 @@ bool Internals::scrollsWithRespectTo(Element* element1, Element* element2, Excep
return false;
}
- Layer* layer1 = toRenderBox(renderer1)->layer();
- Layer* layer2 = toRenderBox(renderer2)->layer();
+ Layer* layer1 = toLayoutBox(renderer1)->layer();
+ Layer* layer2 = toLayoutBox(renderer2)->layer();
if (!layer1 || !layer2) {
exceptionState.throwDOMException(InvalidAccessError, String::format("No render layer can be obtained from the %s provided element.", layer1 ? "second" : "first"));
return false;
@@ -1553,7 +1553,7 @@ String Internals::elementLayerTreeAsText(Element* element, unsigned flags, Excep
return String();
}
- Layer* layer = toRenderBox(renderer)->layer();
+ Layer* layer = toLayoutBox(renderer)->layer();
if (!layer
|| !layer->hasCompositedLayerMapping()
|| !layer->compositedLayerMapping()->mainGraphicsLayer()) {
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698