⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 182880 in webkit


Ignore:
Timestamp:
Apr 15, 2015, 10:59:18 PM (11 years ago)
Author:
Simon Fraser
Message:

We should dump GraphicsLayer's anchorPoint z component
https://bugs.webkit.org/show_bug.cgi?id=143815

Reviewed by Tim Horton.

We didn't include the z component of a layer's anchor point when dumping.
Dump if it's non-zero (to avoid having to change lots of test output).
No test with non-zero z appears to dump layers.

  • platform/graphics/GraphicsLayer.cpp:

(WebCore::GraphicsLayer::dumpProperties):

  • rendering/style/RenderStyle.cpp:

(WebCore::requireTransformOrigin): Remove a FIXME which, on further consideration,
is wrong.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182879 r182880  
     12015-04-15  Simon Fraser  <simon.fraser@apple.com>
     2
     3        We should dump GraphicsLayer's anchorPoint z component
     4        https://bugs.webkit.org/show_bug.cgi?id=143815
     5
     6        Reviewed by Tim Horton.
     7
     8        We didn't include the z component of a layer's anchor point when dumping.
     9        Dump if it's non-zero (to avoid having to change lots of test output).
     10        No test with non-zero z appears to dump layers.
     11
     12        * platform/graphics/GraphicsLayer.cpp:
     13        (WebCore::GraphicsLayer::dumpProperties):
     14        * rendering/style/RenderStyle.cpp:
     15        (WebCore::requireTransformOrigin): Remove a FIXME which, on further consideration,
     16        is wrong.
     17
    1182015-04-15  Brent Fulgham  <bfulgham@apple.com>
    219
  • trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp

    r181832 r182880  
    692692    if (m_anchorPoint != FloatPoint3D(0.5f, 0.5f, 0)) {
    693693        writeIndent(ts, indent + 1);
    694         ts << "(anchor " << m_anchorPoint.x() << " " << m_anchorPoint.y() << ")\n";
     694        ts << "(anchor " << m_anchorPoint.x() << " " << m_anchorPoint.y();
     695        if (m_anchorPoint.z())
     696            ts << " " << m_anchorPoint.z();
     697        ts << ")\n";
    695698    }
    696699
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r182743 r182880  
    10141014            && type != TransformOperation::TRANSLATE_Y
    10151015            && type != TransformOperation::TRANSLATE
    1016             && type != TransformOperation::TRANSLATE_Z // FIXME: doesn't this depend on transform origin?
     1016            && type != TransformOperation::TRANSLATE_Z
    10171017            && type != TransformOperation::TRANSLATE_3D)
    10181018            return true;
Note: See TracChangeset for help on using the changeset viewer.