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

Changeset 237441 in webkit


Ignore:
Timestamp:
Oct 25, 2018, 5:39:36 PM (8 years ago)
Author:
Devin Rousso
Message:

Fix build after r237431 for platforms that don't support FULLSCREEN_API
Need the bug URL (OOPS!).

Reviewed by Joseph Pecoraro.

No new tests. No change in behavior.

  • inspector/agents/InspectorDOMAgent.cpp:

(WebCore::InspectorDOMAgent::addEventListenersToNode):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r237431 r237441  
     12018-10-25  Devin Rousso  <drousso@apple.com>
     2
     3        Fix build after r237431 for platforms that don't support FULLSCREEN_API
     4
     5        Reviewed by Joseph Pecoraro.
     6
     7        No new tests. No change in behavior.
     8
     9        * inspector/agents/InspectorDOMAgent.cpp:
     10        (WebCore::InspectorDOMAgent::addEventListenersToNode):
     11
    1122018-10-25  Devin Rousso  <drousso@apple.com>
    213
  • trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp

    r237431 r237441  
    247247        RefPtr<JSON::Object> data = JSON::Object::create();
    248248
     249#if ENABLE(FULLSCREEN_API)
    249250        if (event.type() == eventNames().webkitfullscreenchangeEvent)
    250251            data->setBoolean("enabled"_s, !!node->document().webkitFullscreenElement());
     252#endif // ENABLE(FULLSCREEN_API)
    251253
    252254        auto timestamp = m_domAgent.m_environment.executionStopwatch()->elapsedTime().seconds();
    … …  
    21502152    };
    21512153
    2152     if (is<Document>(node))
     2154#if ENABLE(FULLSCREEN_API)
     2155    if (is<Document>(node) || is<HTMLMediaElement>(node))
    21532156        createEventListener(eventNames().webkitfullscreenchangeEvent);
    2154     else if (is<HTMLMediaElement>(node)) {
    2155         createEventListener(eventNames().webkitfullscreenchangeEvent);
     2157#endif // ENABLE(FULLSCREEN_API)
     2158
     2159    if (is<HTMLMediaElement>(node)) {
    21562160        createEventListener(eventNames().abortEvent);
    21572161        createEventListener(eventNames().canplayEvent);
Note: See TracChangeset for help on using the changeset viewer.