Changeset 140063 in webkit


Ignore:
Timestamp:
Jan 17, 2013 4:04:37 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[TexMap] Match initializing members in GraphicsLayerTransform to initializing members in GraphicsLayer.
https://bugs.webkit.org/show_bug.cgi?id=107090

Patch by Huang Dongsung <luxtella@company100.net> on 2013-01-17
Reviewed by Noam Rosenthal.

GraphicsLayer initializes m_anchorPoint to FloatPoint3D(0.5, 0.5, 0) and
m_preserves3D to false, while GraphicsLayerTransform initializes m_anchorPoint
to FloatPoint3D(0, 0, 0) and m_flattening (= !m_preserves3D) to false. It is a
potential bug. This patch corrects initialization of GraphicsLayerTransform.

Covered by existing compositing pixel tests.

  • platform/graphics/GraphicsLayerTransform.cpp:

(WebCore::GraphicsLayerTransform::GraphicsLayerTransform):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140062 r140063  
     12013-01-17  Huang Dongsung  <luxtella@company100.net>
     2
     3        [TexMap] Match initializing members in GraphicsLayerTransform to initializing members in GraphicsLayer.
     4        https://bugs.webkit.org/show_bug.cgi?id=107090
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        GraphicsLayer initializes m_anchorPoint to FloatPoint3D(0.5, 0.5, 0) and
     9        m_preserves3D to false, while GraphicsLayerTransform initializes m_anchorPoint
     10        to FloatPoint3D(0, 0, 0) and m_flattening (= !m_preserves3D) to false. It is a
     11        potential bug. This patch corrects initialization of GraphicsLayerTransform.
     12
     13        Covered by existing compositing pixel tests.
     14
     15        * platform/graphics/GraphicsLayerTransform.cpp:
     16        (WebCore::GraphicsLayerTransform::GraphicsLayerTransform):
     17
    1182013-01-17  Filip Pizlo  <fpizlo@apple.com>
    219
  • trunk/Source/WebCore/platform/graphics/GraphicsLayerTransform.cpp

    r138487 r140063  
    2424
    2525GraphicsLayerTransform::GraphicsLayerTransform()
    26     : m_flattening(false)
     26    : m_anchorPoint(0.5, 0.5, 0)
     27    , m_flattening(true)
    2728    , m_dirty(false) // false by default since all default values would be combined as the identity matrix
    2829    , m_childrenDirty(false)
Note: See TracChangeset for help on using the changeset viewer.