Changeset 149989 in webkit


Ignore:
Timestamp:
May 12, 2013 11:40:52 PM (11 years ago)
Author:
eric.carlson@apple.com
Message:

REGRESSION (r149749): Video becomes invisible when it starts playing at newyorkbygehry.com
https://bugs.webkit.org/show_bug.cgi?id=115963

Reviewed by Dean Jackson.

Source/WebCore:

Test: media/video-remove-insert-repaints.html

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::insertedInto): Set m_inActiveDocument when inserted into a document.
(WebCore::HTMLMediaElement::removedFrom): Fix logging.

LayoutTests:

  • media/video-remove-insert-repaints.html: Added.
  • media/video-remove-insert-repaints-expected.txt: Added.
  • platform/mac/media/video-remove-insert-repaints-expected.png: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r149988 r149989  
     12013-05-12  Eric Carlson  <eric.carlson@apple.com>
     2
     3        REGRESSION (r149749): Video becomes invisible when it starts playing at newyorkbygehry.com
     4        https://bugs.webkit.org/show_bug.cgi?id=115963
     5
     6        Reviewed by Dean Jackson.
     7
     8        * media/video-remove-insert-repaints.html: Added.
     9        * media/video-remove-insert-repaints-expected.txt: Added.
     10        * platform/mac/media/video-remove-insert-repaints-expected.png: Added.
     11
    1122013-05-12  Jinwoo Song  <jinwoo7.song@samsung.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r149987 r149989  
     12013-05-12  Eric Carlson  <eric.carlson@apple.com>
     2
     3        REGRESSION (r149749): Video becomes invisible when it starts playing at newyorkbygehry.com
     4        https://bugs.webkit.org/show_bug.cgi?id=115963
     5
     6        Reviewed by Dean Jackson.
     7
     8        Test: media/video-remove-insert-repaints.html
     9
     10        * html/HTMLMediaElement.cpp:
     11        (WebCore::HTMLMediaElement::insertedInto): Set m_inActiveDocument when inserted into a document.
     12        (WebCore::HTMLMediaElement::removedFrom): Fix logging.
     13
    1142013-05-12  David Kilzer  <ddkilzer@apple.com>
    215
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r149906 r149989  
    579579{
    580580    LOG(Media, "HTMLMediaElement::insertedInto");
     581
    581582    HTMLElement::insertedInto(insertionPoint);
    582     if (insertionPoint->inDocument() && !getAttribute(srcAttr).isEmpty() && m_networkState == NETWORK_EMPTY)
    583         scheduleDelayedAction(LoadMediaResource);
     583    if (insertionPoint->inDocument()) {
     584        m_inActiveDocument = true;
     585
     586        if (m_networkState == NETWORK_EMPTY && !getAttribute(srcAttr).isEmpty())
     587            scheduleDelayedAction(LoadMediaResource);
     588    }
     589
    584590    configureMediaControls();
    585591    return InsertionDone;
     
    588594void HTMLMediaElement::removedFrom(ContainerNode* insertionPoint)
    589595{
     596    LOG(Media, "HTMLMediaElement::removedFrom");
     597
    590598    m_inActiveDocument = false;
    591 
    592599    if (insertionPoint->inDocument()) {
    593         LOG(Media, "HTMLMediaElement::removedFrom");
    594600        configureMediaControls();
    595601        if (m_networkState > NETWORK_EMPTY)
Note: See TracChangeset for help on using the changeset viewer.