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

Issue 14659008: Include scrollbar size in @media width/height (Closed)

Created:
7 years, 7 months ago by Xianzhu
Modified:
7 years, 7 months ago
Reviewers:
jamesr
CC:
blink-reviews, jeez, apavlov+blink_chromium.org, darktears
Visibility:
Public.

Description

Include scrollbar size in @media width/height Not including scrollbar size causes bad circular dependencies when non-overlay scrollbars are created or removed. CSS spec says we should include size of scroll bars when evaluate the MQ rules about width/height. BUG=236111 TEST=LayoutTests/fast/media/mq-size-include-scrollbars.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149832

Patch Set 1 #

Total comments: 3

Patch Set 2 : layoutSize(VisibleContentRectIncludesScrollbars) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -13 lines) Patch
A LayoutTests/fast/media/mq-size-include-scrollbars.html View 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/media/mq-size-include-scrollbars-expected.html View 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 1 5 chunks +12 lines, -7 lines 0 comments Download
M Source/core/platform/ScrollView.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/platform/ScrollView.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Xianzhu
7 years, 7 months ago (2013-05-06 22:47:14 UTC) #1
jamesr
https://codereview.chromium.org/14659008/diff/1/Source/core/platform/ScrollView.h File Source/core/platform/ScrollView.h (right): https://codereview.chromium.org/14659008/diff/1/Source/core/platform/ScrollView.h#newcode151 Source/core/platform/ScrollView.h:151: IntSize mediaSize() const; is this the same as calling ...
7 years, 7 months ago (2013-05-06 22:52:03 UTC) #2
Xianzhu
https://codereview.chromium.org/14659008/diff/1/Source/core/platform/ScrollView.h File Source/core/platform/ScrollView.h (right): https://codereview.chromium.org/14659008/diff/1/Source/core/platform/ScrollView.h#newcode151 Source/core/platform/ScrollView.h:151: IntSize mediaSize() const; On 2013/05/06 22:52:03, jamesr wrote: > ...
7 years, 7 months ago (2013-05-06 22:55:44 UTC) #3
Xianzhu
In addition, in fixed-layout mode when the page is scaled, mediaSize() is the unscaledVisibleContentSize, so ...
7 years, 7 months ago (2013-05-06 22:59:09 UTC) #4
Xianzhu
#4 s/fixed-layout/non-fixed-layout/
7 years, 7 months ago (2013-05-06 22:59:25 UTC) #5
jamesr
I have what is basically a naming nit but then this lgtm. Can you also ...
7 years, 7 months ago (2013-05-06 23:38:49 UTC) #6
Xianzhu
On 2013/05/06 23:38:49, jamesr wrote: > I have what is basically a naming nit but ...
7 years, 7 months ago (2013-05-07 00:24:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/14659008/9001
7 years, 7 months ago (2013-05-07 00:35:13 UTC) #8
commit-bot: I haz the power
7 years, 7 months ago (2013-05-07 01:10:39 UTC) #9
Message was sent while issue was closed.
Change committed as 149832

Powered by Google App Engine
This is Rietveld 408576698