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

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed)

Created:
9 years, 3 months ago by Fady Samuel
Modified:
8 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, varunjain, klobag.chromium
Visibility:
Public.

Description

Compute pageScaleFactor on page so that fixed layout page fits width of window. Fixed layout mode can now be enabled with the command line flag --enable-fixed-layout. This mode does not interact well with zoom at this point in time. This will be fixed shortly. This bug replaces http://codereview.chromium.org/7764006/ which is no longer relevant. BUG=none TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123126

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated according to jamesr and jam #

Patch Set 3 : Can only be enabled for TOUCH_UI builds. #

Patch Set 4 : Implement Viewport and Fixed Layout #

Patch Set 5 : Compile time flag to enable viewport tag. Runtime flag to enable fixed layout. #

Patch Set 6 : Refreshed patch to fix position:fixed elements #

Patch Set 7 : Small fix (workaround) to work on Aura #

Total comments: 1

Patch Set 8 : Removed unnecsssary changes in build/common.gypi #

Total comments: 10

Patch Set 9 : Fixed based on comments (missing fishd's first comment) #

Patch Set 10 : Minimizes render_view_impl changes and introduces a defaultDeviceScaleFactor argument #

Total comments: 9

Patch Set 11 : Updated according to Darin #

Patch Set 12 : Updated according to discussion with rjkroege #

Total comments: 6

Patch Set 13 : Fixed some comments according to rjkroege #

Total comments: 1

Patch Set 14 : Removed unnecessary getter #

Patch Set 15 : Fixed common.gypi to have default value for enable_viewport #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
jam
I'm only able to give superficial review comments. someone more familiar with this should review. ...
9 years, 3 months ago (2011-09-02 17:11:41 UTC) #1
jamesr
Is there a test plan for this? Should any of this be guarded by TOUCH_UI ...
9 years, 3 months ago (2011-09-02 17:43:09 UTC) #2
Fady Samuel
On 2011/09/02 17:43:09, jamesr wrote: > Is there a test plan for this? > > ...
9 years, 3 months ago (2011-09-07 14:17:19 UTC) #3
jam
On 2011/09/07 14:17:19, Fady Samuel wrote: > On 2011/09/02 17:43:09, jamesr wrote: > > Is ...
9 years, 3 months ago (2011-09-07 15:56:24 UTC) #4
Fady Samuel
FYI, my intention is to test fixed layout in WebKit. Link: https://bugs.webkit.org/show_bug.cgi?id=67723
9 years, 3 months ago (2011-09-07 18:55:58 UTC) #5
Fady Samuel
On 2011/09/07 18:55:58, Fady Samuel wrote: > FYI, my intention is to test fixed layout ...
9 years, 3 months ago (2011-09-08 23:07:19 UTC) #6
Fady Samuel
http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc#newcode1241 content/renderer/render_view.cc:1241: frame_url.SchemeIs(chrome::kHttpsScheme)) { On 2011/09/02 17:43:09, jamesr wrote: > I ...
9 years, 3 months ago (2011-09-08 23:46:39 UTC) #7
jamesr
http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc File content/renderer/render_view.cc (right): http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc#newcode1241 content/renderer/render_view.cc:1241: frame_url.SchemeIs(chrome::kHttpsScheme)) { On 2011/09/08 23:46:39, Fady Samuel wrote: > ...
9 years, 3 months ago (2011-09-09 00:11:40 UTC) #8
Fady Samuel
On 2011/09/09 00:11:40, jamesr wrote: > http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc > File content/renderer/render_view.cc (right): > > http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc#newcode1241 > ...
9 years, 3 months ago (2011-09-09 18:21:13 UTC) #9
Fady Samuel
On 2011/09/09 18:21:13, Fady Samuel wrote: > On 2011/09/09 00:11:40, jamesr wrote: > > http://codereview.chromium.org/7831028/diff/1/content/renderer/render_view.cc ...
9 years, 3 months ago (2011-09-09 19:41:08 UTC) #10
fsamuel
James, could you please advise me as to what kind of testing you'd like to ...
9 years, 3 months ago (2011-09-16 13:19:07 UTC) #11
fsamuel
James, I'd like to get unblocked on this because this is a prerequisite to a ...
9 years, 2 months ago (2011-10-11 22:54:28 UTC) #12
jamesr1
On Tue, Oct 11, 2011 at 3:54 PM, <fsamuel@google.com> wrote: > James, I'd like to ...
9 years, 2 months ago (2011-10-11 23:21:50 UTC) #13
fsamuel
1. I agree about the testing issue but I don't know how to test this. ...
9 years, 2 months ago (2011-10-12 17:58:17 UTC) #14
Fady Samuel
On 2011/10/12 17:58:17, fsamuel wrote: > 1. I agree about the testing issue but I ...
9 years, 1 month ago (2011-11-03 22:31:47 UTC) #15
Fady Samuel
Now that most of the viewport logic has been moved into webkit, there's very little ...
8 years, 11 months ago (2012-01-04 16:23:07 UTC) #16
darin (slow to review)
http://codereview.chromium.org/7831028/diff/36001/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7831028/diff/36001/build/common.gypi#newcode49 build/common.gypi:49: 'enable_viewport%': 0, I may not be the best reviewer ...
8 years, 11 months ago (2012-01-12 19:18:01 UTC) #17
Aaron Boodman
http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc#newcode381 chrome/renderer/chrome_render_view_observer.cc:381: ExtensionHelper* extension_helper = ExtensionHelper::Get(render_view()); What are you trying to ...
8 years, 11 months ago (2012-01-20 18:49:23 UTC) #18
Aaron Boodman
On 2012/01/20 18:49:23, Aaron Boodman wrote: > http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc > File chrome/renderer/chrome_render_view_observer.cc (right): > > http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc#newcode381 ...
8 years, 11 months ago (2012-01-20 18:57:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/7831028/40001
8 years, 11 months ago (2012-01-20 18:58:04 UTC) #20
commit-bot: I haz the power
Presubmit check for 7831028-40001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-20 18:58:09 UTC) #21
darin (slow to review)
http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc#newcode383 chrome/renderer/chrome_render_view_observer.cc:383: extension_helper->view_type() == content::VIEW_TYPE_TAB_CONTENTS; it seems a little hacky to ...
8 years, 11 months ago (2012-01-20 19:10:19 UTC) #22
Fady Samuel
Added jam to address a comment Darin made. I'm not sure if there is a ...
8 years, 11 months ago (2012-01-20 21:05:04 UTC) #23
jam
http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/7831028/diff/40001/chrome/renderer/chrome_render_view_observer.cc#newcode383 chrome/renderer/chrome_render_view_observer.cc:383: extension_helper->view_type() == content::VIEW_TYPE_TAB_CONTENTS; On 2012/01/20 21:05:04, Fady Samuel wrote: ...
8 years, 11 months ago (2012-01-20 21:08:05 UTC) #24
Fady Samuel
Darin, could you please take a look at this patch. It minimizes changes to render_view_impl, ...
8 years, 10 months ago (2012-02-15 04:40:58 UTC) #25
darin (slow to review)
https://chromiumcodereview.appspot.com/7831028/diff/47001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://chromiumcodereview.appspot.com/7831028/diff/47001/chrome/renderer/chrome_content_renderer_client.cc#newcode267 chrome/renderer/chrome_content_renderer_client.cc:267: if (CommandLine::ForCurrentProcess()->HasSwitch( nit: probably should cache a pointer to ...
8 years, 10 months ago (2012-02-15 06:13:23 UTC) #26
Fady Samuel
Updated according to your comments, Darin. I believe it should be in Chrome not content ...
8 years, 10 months ago (2012-02-15 17:46:05 UTC) #27
rjkroege
Sorry for the drive-by. I was talking to Fady about this CL. darin@: I wasn't ...
8 years, 10 months ago (2012-02-16 21:55:54 UTC) #28
Fady Samuel
Updated according to discussion with rjkroege.
8 years, 10 months ago (2012-02-16 23:21:35 UTC) #29
rjkroege
On 2012/02/16 23:21:35, Fady Samuel wrote: > Updated according to discussion with rjkroege. Seems to ...
8 years, 10 months ago (2012-02-16 23:34:45 UTC) #30
rjkroege
http://codereview.chromium.org/7831028/diff/56001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): http://codereview.chromium.org/7831028/diff/56001/content/public/common/content_switches.cc#newcode39 content/public/common/content_switches.cc:39: // The default device scale factor to apply to ...
8 years, 10 months ago (2012-02-16 23:35:05 UTC) #31
Fady Samuel
Fixed nits. http://codereview.chromium.org/7831028/diff/56001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): http://codereview.chromium.org/7831028/diff/56001/content/public/common/content_switches.cc#newcode39 content/public/common/content_switches.cc:39: // The default device scale factor to ...
8 years, 10 months ago (2012-02-17 00:05:47 UTC) #32
darin (slow to review)
LGTM http://codereview.chromium.org/7831028/diff/56003/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): http://codereview.chromium.org/7831028/diff/56003/content/renderer/render_view_impl.cc#newcode3390 content/renderer/render_view_impl.cc:3390: int RenderViewImpl::GetDefaultDeviceScaleFactor() const { until we have a ...
8 years, 10 months ago (2012-02-17 00:47:41 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/7831028/58008
8 years, 10 months ago (2012-02-17 00:54:40 UTC) #34
commit-bot: I haz the power
Presubmit check for 7831028-58008 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-17 00:54:46 UTC) #35
jam
content/public lgtm
8 years, 10 months ago (2012-02-17 00:59:58 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/7831028/58008
8 years, 10 months ago (2012-02-17 01:04:29 UTC) #37
commit-bot: I haz the power
Try job failure for 7831028-58008 (retry) on android for step "update". It's a second try, ...
8 years, 10 months ago (2012-02-17 01:09:24 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/7831028/63001
8 years, 10 months ago (2012-02-22 20:00:09 UTC) #39
commit-bot: I haz the power
8 years, 10 months ago (2012-02-22 23:08:08 UTC) #40
Change committed as 123126

Powered by Google App Engine
This is Rietveld 408576698