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

Changeset 98394 in webkit


Ignore:
Timestamp:
Oct 25, 2011, 2:11:00 PM (15 years ago)
Author:
andersca@apple.com
Message:

Assertion failure when zooming a PDF in an iframe
https://bugs.webkit.org/show_bug.cgi?id=70849

Reviewed by Alexey Proskuryakov.

If the plug-in doesn't want window relative coordinates, we shouldn't give the plug-in window relative coordinates.

  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::viewGeometryDidChange):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r98386 r98394  
     12011-10-25  Anders Carlsson  <andersca@apple.com>
     2
     3        Assertion failure when zooming a PDF in an iframe
     4        https://bugs.webkit.org/show_bug.cgi?id=70849
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        If the plug-in doesn't want window relative coordinates, we shouldn't give the plug-in window relative coordinates.
     9
     10        * WebProcess/Plugins/PluginView.cpp:
     11        (WebKit::PluginView::viewGeometryDidChange):
     12
    1132011-10-25  Sam Weinig  <sam@webkit.org>
    214
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp

    r98369 r98394  
    709709        return;
    710710
    711     // Get the frame rect in window coordinates.
    712     // FIXME: Figure out what we should pass here when m_plugin->wantsWindowRelativeCoordinates() returns false.
    713     IntRect frameRectInWindowCoordinates = parent()->contentsToWindow(frameRect());
    714     m_plugin->geometryDidChange(frameRectInWindowCoordinates, clipRectInWindowCoordinates());
     711    IntRect rect;
     712
     713    if (m_plugin->wantsWindowRelativeCoordinates()) {
     714        // Get the frame rect in window coordinates.
     715        rect = parent()->contentsToWindow(frameRect());
     716    } else {
     717        // FIXME: The plug-in shouldn't know its location relative to its parent frame.
     718        rect = frameRect();
     719    }
     720
     721    m_plugin->geometryDidChange(rect, clipRectInWindowCoordinates());
    715722}
    716723
Note: See TracChangeset for help on using the changeset viewer.