Chromium Code Reviews
DescriptionMake CFWL_WidgetMgr{Delegate} inherit from IFWL_WidgetMgr{Delegate}.
C-style casting masked a fairly serious botch, where an
CFWL_ type would get cast to an IFWL_ type, and later we'd
invoke virtual methods against the IFWL_ type. Without the
proper inheritance, there's no reason to believe that the
vtables for each of these would line up with each other.
Fixing the inheritence allows us to remove the c-style casts.
I'm guessing these were added to make this compile without
having to understand the true nature of the flaw.
R=thestig@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/e8131137dabd2e1dcf1bcdf49e81ee6c9ae26413
Patch Set 1 #Patch Set 2 : Added one comment. #
Messages
Total messages: 4 (1 generated)
|
|||||||||||||||||||||||||||||||||||||