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

Unified Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 1167653007: Cleanup: Rename ChromeClient::setWindowRect and setWindowRectInternal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index 2a7633237cd63d059d0a205e5ae469f32aa88391..4f462b7a55a3746ca31e56cc301a64d3f3114a29 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -1236,7 +1236,7 @@ void LocalDOMWindow::moveBy(int x, int y, bool hasX, bool hasY) const
IntRect windowRect = host->chromeClient().windowRect();
windowRect.move(x, y);
// Security check (the spec talks about UniversalBrowserWrite to disable this check...)
- host->chromeClient().setWindowRect(windowRect);
+ host->chromeClient().setWindowRectWithAdjustment(windowRect);
}
void LocalDOMWindow::moveTo(int x, int y, bool hasX, bool hasY) const
@@ -1254,7 +1254,7 @@ void LocalDOMWindow::moveTo(int x, int y, bool hasX, bool hasY) const
IntRect windowRect = host->chromeClient().windowRect();
windowRect.setLocation(IntPoint(hasX ? x : windowRect.x(), hasY ? y : windowRect.y()));
// Security check (the spec talks about UniversalBrowserWrite to disable this check...)
- host->chromeClient().setWindowRect(windowRect);
+ host->chromeClient().setWindowRectWithAdjustment(windowRect);
}
void LocalDOMWindow::resizeBy(int x, int y, bool hasX, bool hasY) const
@@ -1272,7 +1272,7 @@ void LocalDOMWindow::resizeBy(int x, int y, bool hasX, bool hasY) const
IntRect fr = host->chromeClient().windowRect();
IntSize dest = fr.size() + IntSize(x, y);
IntRect update(fr.location(), dest);
- host->chromeClient().setWindowRect(update);
+ host->chromeClient().setWindowRectWithAdjustment(update);
}
void LocalDOMWindow::resizeTo(int width, int height, bool hasWidth, bool hasHeight) const
@@ -1290,7 +1290,7 @@ void LocalDOMWindow::resizeTo(int width, int height, bool hasWidth, bool hasHeig
IntRect fr = host->chromeClient().windowRect();
IntSize dest = IntSize(hasWidth ? width : fr.width(), hasHeight ? height : fr.height());
IntRect update(fr.location(), dest);
- host->chromeClient().setWindowRect(update);
+ host->chromeClient().setWindowRectWithAdjustment(update);
}
int LocalDOMWindow::requestAnimationFrame(FrameRequestCallback* callback)
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698