Changeset 145233 in webkit
- Timestamp:
- Mar 8, 2013 9:19:58 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r145231 r145233 1 2013-03-08 John Mellor <johnme@chromium.org> 2 3 @media queries do not take zooming into account 4 https://bugs.webkit.org/show_bug.cgi?id=53186 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * fast/media/mq-width-pagezoom-expected.html: Added. 9 * fast/media/mq-width-pagezoom.html: Added. 10 1 11 2013-03-08 Chris Fleizach <cfleizach@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r145232 r145233 1 2013-03-08 John Mellor <johnme@chromium.org> 2 3 @media queries do not take zooming into account 4 https://bugs.webkit.org/show_bug.cgi?id=53186 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Fixes @media width and height to take into account full page zoom, by 9 adding code to MediaQueryEvaluator's width/heightMediaFeatureEval, 10 corresponding to the existing code in Element::clientWidth which makes 11 document.documentElement.clientWidth take into account page zoom. 12 13 Test: fast/media/mq-width-pagezoom.html 14 15 * css/MediaQueryEvaluator.cpp: 16 (WebCore::heightMediaFeatureEval): 17 (WebCore::widthMediaFeatureEval): 18 1 19 2013-03-08 Carlos Garcia Campos <cgarcia@igalia.com> 2 20 -
trunk/Source/WebCore/css/MediaQueryEvaluator.cpp
r132633 r145233 479 479 480 480 if (value) { 481 int height = view->layoutHeight(); 482 if (RenderView* renderView = frame->document()->renderView()) 483 height = adjustForAbsoluteZoom(height, renderView); 481 484 RenderStyle* rootStyle = frame->document()->documentElement()->renderStyle(); 482 485 int length; 483 return computeLength(value, !frame->document()->inQuirksMode(), style, rootStyle, length) && compareValue( view->layoutHeight(), length, op);486 return computeLength(value, !frame->document()->inQuirksMode(), style, rootStyle, length) && compareValue(height, length, op); 484 487 } 485 488 … … 492 495 493 496 if (value) { 497 int width = view->layoutWidth(); 498 if (RenderView* renderView = frame->document()->renderView()) 499 width = adjustForAbsoluteZoom(width, renderView); 494 500 RenderStyle* rootStyle = frame->document()->documentElement()->renderStyle(); 495 501 int length; 496 return computeLength(value, !frame->document()->inQuirksMode(), style, rootStyle, length) && compareValue( view->layoutWidth(), length, op);502 return computeLength(value, !frame->document()->inQuirksMode(), style, rootStyle, length) && compareValue(width, length, op); 497 503 } 498 504
Note: See TracChangeset
for help on using the changeset viewer.