Changeset 136231 in webkit
- Timestamp:
- Nov 30, 2012 5:56:54 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r136230 r136231 1 2012-11-30 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 [WK2] TiledBackingStore: Frame view re-layouts with wrong Fixed Visible Content Rect. 4 https://bugs.webkit.org/show_bug.cgi?id=103428 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Unskipped corresponding test cases for EFL WK2. 9 10 * platform/efl-wk2/TestExpectations: 11 1 12 2012-11-30 Sudarsana Nagineni <sudarsana.nagineni@intel.com> 2 13 -
trunk/LayoutTests/platform/efl-wk2/TestExpectations
r136121 r136231 269 269 # Page client doesn't react to orientation changes from CSS Viewport rules. 270 270 webkit.org/b/103130 css3/device-adapt/opera/orientation-001.xhtml [ Failure ] 271 272 # Issue with viewport width and relative units.273 webkit.org/b/102922 css3/device-adapt/opera/constrain-006.xhtml [ Failure ]274 webkit.org/b/102922 css3/device-adapt/opera/constrain-007.xhtml [ Failure ]275 271 276 272 # Text input controller needs selectedRange implementation -
trunk/Source/WebKit2/ChangeLog
r136230 r136231 1 2012-11-30 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 [WK2] TiledBackingStore: Frame view re-layouts with wrong Fixed Visible Content Rect. 4 https://bugs.webkit.org/show_bug.cgi?id=103428 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Set now appropriate fixed visible content rect before layout when viewport 9 attributes change. 10 11 * UIProcess/PageViewportController.cpp: 12 (WebKit::PageViewportController::syncVisibleContents): 13 (WebKit::PageViewportController::didChangeViewportAttributes): 14 * WebProcess/WebPage/WebPage.cpp: 15 (WebKit::WebPage::sendViewportAttributesChanged): 16 1 17 2012-11-30 Sudarsana Nagineni <sudarsana.nagineni@intel.com> 2 18 -
trunk/Source/WebKit2/UIProcess/PageViewportController.cpp
r136129 r136231 210 210 void PageViewportController::syncVisibleContents(const FloatPoint& trajectoryVector) 211 211 { 212 DrawingAreaProxy* constdrawingArea = m_webPageProxy->drawingArea();212 DrawingAreaProxy* drawingArea = m_webPageProxy->drawingArea(); 213 213 if (!drawingArea || m_viewportSize.isEmpty() || m_contentsSize.isEmpty()) 214 214 return; … … 235 235 if (updateMinimumScaleToFit(true)) 236 236 m_client->didChangeViewportAttributes(); 237 238 syncVisibleContents();239 237 } 240 238 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r136210 r136231 1028 1028 attr.initialScale = m_page->viewportArguments().zoom; // Resets auto (-1) if no value was set by user. 1029 1029 1030 // Keep the current position, update size only. 1031 // For the new loads position is already reset to (0,0). 1032 FrameView* view = m_page->mainFrame()->view(); 1033 IntPoint contentFixedOrigin = view->fixedVisibleContentRect().location(); 1034 1035 // Put the width and height to the viewport width and height. In css units however. 1036 // FIXME: This should be in scaled units but this currently affects viewport attributes calculation. 1037 IntSize contentFixedSize = m_viewportSize; 1038 contentFixedSize.scale(1 / m_page->deviceScaleFactor()); 1039 1040 setFixedVisibleContentRect(IntRect(contentFixedOrigin, contentFixedSize)); 1041 1030 1042 // This also takes care of the relayout. 1031 setFixedLayoutSize(IntSize(static_cast<int>(attr.layoutSize.width()), static_cast<int>(attr.layoutSize.height()))); 1043 setFixedLayoutSize(roundedIntSize(attr.layoutSize)); 1044 1032 1045 send(Messages::WebPageProxy::DidChangeViewportProperties(attr)); 1033 1046 }
Note: See TracChangeset
for help on using the changeset viewer.