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

Issue 10828143: Zoom level limits must be set before setting a zoom level. (Closed)

Created:
8 years, 4 months ago by kinaba
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Zoom level limits must be set before setting a zoom level. The default zoom level upperbound of WebKit is 300%, while content::kMaximumZoomFactor is 500%. The larger limit must be set before restoring the host-URL zoom levels, otherwise 400% or 500% zoom level is clipped to 300%. BUG=139559 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150284

Patch Set 1 #

Patch Set 2 : Add test. #

Patch Set 3 : Rebase. #

Total comments: 5

Patch Set 4 : Rebase & add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -8 lines) Patch
M content/renderer/render_view_browsertest.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinaba
Darin, could you have a look?
8 years, 4 months ago (2012-08-03 06:56:19 UTC) #1
darin (slow to review)
LGTM, but can you please include a test for this bug?
8 years, 4 months ago (2012-08-03 16:52:05 UTC) #2
kinaba
Added a test exhibiting the bug. Would you mind taking one more look on the ...
8 years, 4 months ago (2012-08-04 01:09:45 UTC) #3
darin (slow to review)
http://codereview.chromium.org/10828143/diff/4002/content/renderer/render_view_browsertest.cc File content/renderer/render_view_browsertest.cc (right): http://codereview.chromium.org/10828143/diff/4002/content/renderer/render_view_browsertest.cc#newcode1702 content/renderer/render_view_browsertest.cc:1702: TEST_F(RenderViewImplTest, ZoomLimit) { it is not clear to me ...
8 years, 4 months ago (2012-08-06 20:44:16 UTC) #4
kinaba
Here is the explanation how it works. Maybe should I added this in the source ...
8 years, 4 months ago (2012-08-06 23:39:23 UTC) #5
kinaba
Added the explanation as source code comments.
8 years, 4 months ago (2012-08-07 04:27:52 UTC) #6
darin (slow to review)
8 years, 4 months ago (2012-08-07 05:30:22 UTC) #7
OK, LGTM

Powered by Google App Engine
This is Rietveld 408576698