Changeset 88109 in webkit


Ignore:
Timestamp:
Jun 4, 2011 4:14:49 AM (13 years ago)
Author:
thakis@chromium.org
Message:

2011-06-04 Nico Weber <thakis@chromium.org>

Reviewed by James Robinson.

[chromium] Make ChromePrintContext's destructor virtual
https://bugs.webkit.org/show_bug.cgi?id=62076

Since WebFrameImpl's m_printContext is a OnwPtr<ChromePrintContext>
that is dynamically set to either a ChromePrintContext or a
ChromePluginPrintContext, this fixes an actual bug.

  • src/WebFrameImpl.cpp: (WebKit::ChromePrintContext::~ChromePrintContext): (WebKit::ChromePluginPrintContext::~ChromePluginPrintContext):
Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r88108 r88109  
     12011-06-04  Nico Weber  <thakis@chromium.org>
     2
     3        Reviewed by James Robinson.
     4
     5        [chromium] Make ChromePrintContext's destructor virtual
     6        https://bugs.webkit.org/show_bug.cgi?id=62076
     7
     8        Since WebFrameImpl's m_printContext is a OnwPtr<ChromePrintContext>
     9        that is dynamically set to either a ChromePrintContext or a
     10        ChromePluginPrintContext, this fixes an actual bug.
     11
     12        * src/WebFrameImpl.cpp:
     13        (WebKit::ChromePrintContext::~ChromePrintContext):
     14        (WebKit::ChromePluginPrintContext::~ChromePluginPrintContext):
     15
    1162011-06-04  Nico Weber  <thakis@chromium.org>
    217
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r87469 r88109  
    307307    }
    308308
     309    virtual ~ChromePrintContext() { }
     310
    309311    virtual void begin(float width, float height)
    310312    {
     
    376378    {
    377379    }
     380
     381    virtual ~ChromePluginPrintContext() { }
    378382
    379383    virtual void begin(float width, float height)
Note: See TracChangeset for help on using the changeset viewer.