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

Unified Diff: Source/web/tests/ViewportTest.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/web/tests/URLTestHelpers.h ('k') | Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/ViewportTest.cpp
diff --git a/Source/web/tests/ViewportTest.cpp b/Source/web/tests/ViewportTest.cpp
index 9484b631239465d0bbb167d1d0e61bafd9f586d9..3e5345486996fa5f410a035135583e69102cec82 100644
--- a/Source/web/tests/ViewportTest.cpp
+++ b/Source/web/tests/ViewportTest.cpp
@@ -56,14 +56,14 @@
#include <vector>
using namespace blink;
-using WebCore::LocalFrame;
-using WebCore::FrameView;
-using WebCore::IntPoint;
-using WebCore::IntRect;
-using WebCore::IntSize;
-using WebCore::Page;
-using WebCore::PageScaleConstraints;
-using WebCore::ViewportDescription;
+using blink::LocalFrame;
+using blink::FrameView;
+using blink::IntPoint;
+using blink::IntRect;
+using blink::IntSize;
+using blink::Page;
+using blink::PageScaleConstraints;
+using blink::ViewportDescription;
using blink::FrameTestHelpers::runPendingTasks;
namespace {
@@ -105,15 +105,15 @@ class UseMockScrollbarSettings {
public:
UseMockScrollbarSettings()
{
- WebCore::Settings::setMockScrollbarsEnabled(true);
- WebCore::RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(true);
- EXPECT_TRUE(WebCore::ScrollbarTheme::theme()->usesOverlayScrollbars());
+ blink::Settings::setMockScrollbarsEnabled(true);
+ blink::RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(true);
+ EXPECT_TRUE(blink::ScrollbarTheme::theme()->usesOverlayScrollbars());
}
~UseMockScrollbarSettings()
{
- WebCore::Settings::setMockScrollbarsEnabled(false);
- WebCore::RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(false);
+ blink::Settings::setMockScrollbarsEnabled(false);
+ blink::RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(false);
}
};
@@ -129,7 +129,7 @@ static PageScaleConstraints runViewportTest(Page* page, int initialWidth, int in
IntSize initialViewportSize(initialWidth, initialHeight);
toLocalFrame(page->mainFrame())->view()->setFrameRect(IntRect(IntPoint::zero(), initialViewportSize));
ViewportDescription description = page->viewportDescription();
- PageScaleConstraints constraints = description.resolve(initialViewportSize, WebCore::Length(980, WebCore::Fixed));
+ PageScaleConstraints constraints = description.resolve(initialViewportSize, blink::Length(980, blink::Fixed));
constraints.fitToContentsWidth(constraints.layoutSize.width(), initialWidth);
return constraints;
« no previous file with comments | « Source/web/tests/URLTestHelpers.h ('k') | Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698