Changeset 139032 in webkit


Ignore:
Timestamp:
Jan 7, 2013 10:07:55 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Use explicit constructor to convert from Int/FloatSize to Int/FloatPoint
https://bugs.webkit.org/show_bug.cgi?id=106209

Patch by Steve Block <steveblock@chromium.org> on 2013-01-07
Reviewed by Kentaro Hara.

Refactoring only, no functional change.

  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139030 r139032  
     12013-01-07  Steve Block  <steveblock@chromium.org>
     2
     3        Use explicit constructor to convert from Int/FloatSize to Int/FloatPoint
     4        https://bugs.webkit.org/show_bug.cgi?id=106209
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Refactoring only, no functional change.
     9
     10        * rendering/RenderLayerBacking.cpp:
     11        (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
     12
    1132013-01-07  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
    214
  • trunk/Source/WebCore/rendering/RenderLayerBacking.cpp

    r138997 r139032  
    625625        IntRect parentClipRect = pixelSnappedIntRect(m_owningLayer->backgroundClipRect(clipRectsContext).rect()); // FIXME: Incorrect for CSS regions.
    626626        ASSERT(parentClipRect != PaintInfo::infiniteRect());
    627         m_ancestorClippingLayer->setPosition(FloatPoint() + (parentClipRect.location() - graphicsLayerParentLocation));
     627        m_ancestorClippingLayer->setPosition(FloatPoint(parentClipRect.location() - graphicsLayerParentLocation));
    628628        m_ancestorClippingLayer->setSize(parentClipRect.size());
    629629
     
    635635    }
    636636
    637     m_graphicsLayer->setPosition(FloatPoint() + (relativeCompositingBounds.location() - graphicsLayerParentLocation));
     637    m_graphicsLayer->setPosition(FloatPoint(relativeCompositingBounds.location() - graphicsLayerParentLocation));
    638638    m_graphicsLayer->setOffsetFromRenderer(localCompositingBounds.location() - IntPoint());
    639639   
     
    653653    if (GraphicsLayer* clipLayer = clippingLayer()) {
    654654        clippingBox = clipBox(toRenderBox(renderer()));
    655         clipLayer->setPosition(FloatPoint() + (clippingBox.location() - localCompositingBounds.location()));
     655        clipLayer->setPosition(FloatPoint(clippingBox.location() - localCompositingBounds.location()));
    656656        clipLayer->setSize(clippingBox.size());
    657657        clipLayer->setOffsetFromRenderer(clippingBox.location() - IntPoint());
     
    729729        FloatRect layerBounds = compositedBounds();
    730730        FloatRect reflectionLayerBounds = reflectionBacking->compositedBounds();
    731         reflectionBacking->graphicsLayer()->setReplicatedLayerPosition(FloatPoint() + (layerBounds.location() - reflectionLayerBounds.location()));
     731        reflectionBacking->graphicsLayer()->setReplicatedLayerPosition(FloatPoint(layerBounds.location() - reflectionLayerBounds.location()));
    732732    }
    733733
     
    738738        IntSize scrollOffset = m_owningLayer->scrolledContentOffset();
    739739
    740         m_scrollingLayer->setPosition(FloatPoint() + (paddingBox.location() - localCompositingBounds.location()));
     740        m_scrollingLayer->setPosition(FloatPoint(paddingBox.location() - localCompositingBounds.location()));
    741741
    742742        m_scrollingLayer->setSize(paddingBox.size());
Note: See TracChangeset for help on using the changeset viewer.