Changeset 144687 in webkit
- Timestamp:
- Mar 4, 2013, 3:25:14 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r144683 r144687 1 2013-03-04 Simon Fraser <simon.fraser@apple.com> 2 3 Give ViewportConstraints classes copy constructors 4 https://bugs.webkit.org/show_bug.cgi?id=111367 5 6 Reviewed by Beth Dakin. 7 8 Downstream code requires that ViewportConstraints objects have 9 copy constructors, so add them. 10 11 Also clean up some redundant initialization of stack objects 12 in RenderLayerCompositor. 13 14 No behavior change. 15 16 * page/scrolling/ScrollingConstraints.h: 17 (WebCore::ViewportConstraints::ViewportConstraints): 18 (ViewportConstraints): 19 (WebCore::FixedPositionViewportConstraints::FixedPositionViewportConstraints): 20 (FixedPositionViewportConstraints): 21 (WebCore::StickyPositionViewportConstraints::StickyPositionViewportConstraints): 22 (StickyPositionViewportConstraints): 23 * rendering/RenderLayerCompositor.cpp: 24 (WebCore::RenderLayerCompositor::computeFixedViewportConstraints): 25 (WebCore::RenderLayerCompositor::computeStickyViewportConstraints): 26 1 27 2013-03-04 Roger Fong <roger_fong@apple.com> 2 28 -
trunk/Source/WebCore/page/scrolling/ScrollingConstraints.h
r138076 r144687 48 48 typedef unsigned AnchorEdges; 49 49 50 ViewportConstraints(const ViewportConstraints& other) 51 : m_alignmentOffset(other.m_alignmentOffset) 52 , m_anchorEdges(other.m_anchorEdges) 53 { } 54 50 55 virtual ~ViewportConstraints() { } 51 56 … … 71 76 class FixedPositionViewportConstraints : public ViewportConstraints { 72 77 public: 78 FixedPositionViewportConstraints() 79 : ViewportConstraints() 80 { } 81 82 FixedPositionViewportConstraints(const FixedPositionViewportConstraints& other) 83 : ViewportConstraints(other) 84 , m_viewportRectAtLastLayout(other.m_viewportRectAtLastLayout) 85 , m_layerPositionAtLastLayout(other.m_layerPositionAtLastLayout) 86 { } 87 73 88 FloatPoint layerPositionForViewportRect(const FloatRect& viewportRect) const; 74 89 … … 103 118 , m_topOffset(0) 104 119 , m_bottomOffset(0) 120 { } 121 122 StickyPositionViewportConstraints(const StickyPositionViewportConstraints& other) 123 : ViewportConstraints(other) 124 , m_leftOffset(other.m_leftOffset) 125 , m_rightOffset(other.m_rightOffset) 126 , m_topOffset(other.m_topOffset) 127 , m_bottomOffset(other.m_bottomOffset) 128 , m_absoluteContainingBlockRect(other.m_absoluteContainingBlockRect) 129 , m_absoluteStickyBoxRect(other.m_absoluteStickyBoxRect) 130 , m_stickyOffsetAtLastLayout(other.m_stickyOffsetAtLastLayout) 131 , m_layerPositionAtLastLayout(other.m_layerPositionAtLastLayout) 105 132 { } 106 133 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r144642 r144687 2869 2869 LayoutRect viewportRect = frameView->viewportConstrainedVisibleContentRect(); 2870 2870 2871 FixedPositionViewportConstraints constraints = FixedPositionViewportConstraints();2871 FixedPositionViewportConstraints constraints; 2872 2872 2873 2873 GraphicsLayer* graphicsLayer = layer->backing()->graphicsLayer(); … … 2907 2907 LayoutRect viewportRect = frameView->viewportConstrainedVisibleContentRect(); 2908 2908 2909 StickyPositionViewportConstraints constraints = StickyPositionViewportConstraints();2909 StickyPositionViewportConstraints constraints; 2910 2910 2911 2911 RenderBoxModelObject* renderer = toRenderBoxModelObject(layer->renderer());
Note:
See TracChangeset
for help on using the changeset viewer.