Changeset 244188 in webkit


Ignore:
Timestamp:
Apr 11, 2019 6:30:01 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[WPE] Build error with ENABLE_VIDEO=OFF after r244078
https://bugs.webkit.org/show_bug.cgi?id=196811

createGenericCue() is only defined when VIDEO_TRACK is enabled.

Patch by Pablo Saavedra <Pablo Saavedra> on 2019-04-11
Reviewed by Eric Carlson.

  • testing/Internals.cpp:

(WebCore::Internals::createGenericCue):

  • testing/Internals.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r244187 r244188  
     12019-04-11  Pablo Saavedra  <psaavedra@igalia.com>
     2
     3        [WPE] Build error with ENABLE_VIDEO=OFF after r244078
     4        https://bugs.webkit.org/show_bug.cgi?id=196811
     5
     6        createGenericCue() is only defined when VIDEO_TRACK is enabled.
     7
     8        Reviewed by Eric Carlson.
     9
     10        * testing/Internals.cpp:
     11        (WebCore::Internals::createGenericCue):
     12        * testing/Internals.h:
     13
    1142019-04-11  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebCore/testing/Internals.cpp

    r244180 r244188  
    35783578}
    35793579
     3580#if ENABLE(VIDEO_TRACK)
    35803581RefPtr<TextTrackCueGeneric> Internals::createGenericCue(double startTime, double endTime, String text)
    35813582{
     
    35833584    if (!document || !document->page())
    35843585        return nullptr;
    3585 #if ENABLE(VIDEO_TRACK)
    35863586    return TextTrackCueGeneric::create(*document, MediaTime::createWithDouble(startTime), MediaTime::createWithDouble(endTime), text);
    3587 #else
    3588     UNUSED_PARAM(startTime);
    3589     UNUSED_PARAM(endTime);
    3590     UNUSED_PARAM(text);
    3591     return nullptr;
    3592 #endif
    3593 }
     3587}
     3588#endif
    35943589
    35953590#if ENABLE(VIDEO)
  • trunk/Source/WebCore/testing/Internals.h

    r244098 r244188  
    9292class StringCallback;
    9393class StyleSheet;
    94 class TextTrackCueGeneric;
    9594class TimeRanges;
    9695class TypeConversions;
     
    9897class WebGLRenderingContext;
    9998class XMLHttpRequest;
     99
     100#if ENABLE(VIDEO_TRACK)
     101class TextTrackCueGeneric;
     102#endif
    100103
    101104#if ENABLE(SERVICE_WORKER)
     
    545548    ExceptionOr<void> setPrimaryAudioTrackLanguageOverride(const String&);
    546549    ExceptionOr<void> setCaptionDisplayMode(const String&);
     550#if ENABLE(VIDEO_TRACK)
    547551    RefPtr<TextTrackCueGeneric> createGenericCue(double startTime, double endTime, String text);
     552#endif
    548553
    549554#if ENABLE(VIDEO)
Note: See TracChangeset for help on using the changeset viewer.