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

Changeset 121132 in webkit


Ignore:
Timestamp:
Jun 24, 2012, 8:16:07 PM (14 years ago)
Author:
mikelawther@chromium.org
Message:

CSS3 calc: transitions starting and ending with a calc expression move to end state
https://bugs.webkit.org/show_bug.cgi?id=89738

Reviewed by Tony Chang.

Source/WebCore:

The equality operator for CalculationValue was not working as expected. The
equality operator for OwnPtr is private, as OwnPtrs should always be different.
The OwnPtrs ended up getting cast to bool before being compared, and the
comparison was always returning true.

The comparison between OwnPtrs has been removed. It doesn't add value to compare
the raw pointers either, since OwnPtrs should always be unique. We cannot
ASSERT the uniqueness though, as it is legitimate to compare a CalculationValue
to itself.

Test: css3/calc/transition-start-end-with-calc.html

  • platform/CalculationValue.h:

(WebCore::CalculationValue::operator==):

LayoutTests:

  • css3/calc/transition-start-end-with-calc-expected.txt: Added.
  • css3/calc/transition-start-end-with-calc.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r121128 r121132  
     12012-06-24  Mike Lawther  <mikelawther@chromium.org>
     2
     3        CSS3 calc: transitions starting and ending with a calc expression move to end state
     4        https://bugs.webkit.org/show_bug.cgi?id=89738
     5
     6        Reviewed by Tony Chang.
     7
     8        * css3/calc/transition-start-end-with-calc-expected.txt: Added.
     9        * css3/calc/transition-start-end-with-calc.html: Added.
     10
    1112012-06-21  Kent Tamura  <tkent@chromium.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r121131 r121132  
     12012-06-24  Mike Lawther  <mikelawther@chromium.org>
     2
     3        CSS3 calc: transitions starting and ending with a calc expression move to end state
     4        https://bugs.webkit.org/show_bug.cgi?id=89738
     5
     6        Reviewed by Tony Chang.
     7
     8        The equality operator for CalculationValue was not working as expected. The
     9        equality operator for OwnPtr is private, as OwnPtrs should always be different.
     10        The OwnPtrs ended up getting cast to bool before being compared, and the
     11        comparison was always returning true.
     12
     13        The comparison between OwnPtrs has been removed. It doesn't add value to compare
     14        the raw pointers either, since OwnPtrs should always be unique. We cannot
     15        ASSERT the uniqueness though, as it is legitimate to compare a CalculationValue
     16        to itself.
     17
     18        Test: css3/calc/transition-start-end-with-calc.html
     19
     20        * platform/CalculationValue.h:
     21        (WebCore::CalculationValue::operator==):
     22
    1232012-06-24  MORITA Hajime  <morrita@google.com>
    224
  • trunk/Source/WebCore/platform/CalculationValue.h

    r116914 r121132  
    8787    bool operator==(const CalculationValue& o) const
    8888    {
    89         return m_value == o.m_value || *(m_value.get()) == *(o.m_value.get());
     89        return *(m_value.get()) == *(o.m_value.get());
    9090    }
    9191   
Note: See TracChangeset for help on using the changeset viewer.