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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp

Issue 1662483002: Introduce RenderingTest::getLayoutObjectByElementId(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
index c62946e1c6896bb4809b8be9f4e1b79de0b9b381..9b579140b8e36dbaae22b22fd3f7ecc8eb4a5c11 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp
@@ -113,7 +113,7 @@ TEST_F(LayoutObjectTest, MapToVisibleRectInContainerSpace)
" <span><img style='width: 20px; height: 100px'></span>"
" text text text text text text text"
"</div>");
- LayoutBlock* container = toLayoutBlock(document().getElementById("container")->layoutObject());
+ LayoutBlock* container = toLayoutBlock(getLayoutObjectByElementId("container"));
LayoutText* text = toLayoutText(container->lastChild());
container->setScrollTop(LayoutUnit(50));

Powered by Google App Engine
This is Rietveld 408576698