Changeset 50670 in webkit


Ignore:
Timestamp:
Nov 9, 2009 11:26:20 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-09 Laszlo Gombos <Laszlo Gombos>

Reviewed by Jan Alonzo.

Make XP_UNIX tests consistent
https://bugs.webkit.org/show_bug.cgi?id=31250

No new tests as there is no functional change.

  • plugins/PluginView.cpp: (WebCore::PluginView::setFrameRect): Test if XP_UNIX is defined instead of the value of the macro
  • plugins/gtk/PluginViewGtk.cpp: (WebCore::PluginView::setNPWindowIfNeeded): Test if the XP_UNIX is defined instead of using the PLATFORM macro to be consistent (WebCore::PluginView::getValue): Ditto.
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50666 r50670  
     12009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        Make XP_UNIX tests consistent
     6        https://bugs.webkit.org/show_bug.cgi?id=31250
     7
     8        No new tests as there is no functional change.
     9
     10        * plugins/PluginView.cpp:
     11        (WebCore::PluginView::setFrameRect): Test if XP_UNIX is defined
     12        instead of the value of the macro
     13
     14        * plugins/gtk/PluginViewGtk.cpp:
     15        (WebCore::PluginView::setNPWindowIfNeeded): Test if the XP_UNIX is
     16        defined instead of using the PLATFORM macro to be consistent
     17        (WebCore::PluginView::getValue): Ditto.
     18
    1192009-11-09  Kevin Watters  <kevinwatters@gmail.com>
    220
  • trunk/WebCore/plugins/PluginView.cpp

    r49963 r50670  
    128128    // On Windows and Symbian, always call plugin to change geometry.
    129129    setNPWindowRect(rect);
    130 #elif XP_UNIX
     130#elif defined(XP_UNIX)
    131131    // On Unix, multiple calls to setNPWindow() in windowed mode causes Flash to crash
    132132    if (m_mode == NP_FULL || !m_isWindowed)
  • trunk/WebCore/plugins/gtk/PluginViewGtk.cpp

    r49060 r50670  
    228228    GtkAllocation allocation = { m_windowRect.x(), m_windowRect.y(), m_windowRect.width(), m_windowRect.height() };
    229229    gtk_widget_size_allocate(platformPluginWidget(), &allocation);
    230 #if PLATFORM(XP_UNIX)
     230#if defined(XP_UNIX)
    231231    if (!m_needsXEmbed) {
    232232        gtk_xtbin_set_position(GTK_XTBIN(platformPluginWidget()), m_windowRect.x(), m_windowRect.y());
     
    333333#endif
    334334
    335 #if PLATFORM(XP_UNIX)
     335#if defined(XP_UNIX)
    336336    case NPNVxtAppContext:
    337337        if (!m_needsXEmbed) {
Note: See TracChangeset for help on using the changeset viewer.