[iOS] Fix build of HTMLConverter.mm after r166454
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 30 Mar 2014 19:50:53 +0000 (19:50 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 30 Mar 2014 19:50:53 +0000 (19:50 +0000)
commit77beb62e8608a100bcdf1f1d48cc1de36234c92f
treefeb72729569342436e5b451488a4a1777ef61002
parentecba305893487bd256c187ba24eb3ee911a81b65
[iOS] Fix build of HTMLConverter.mm after r166454

Fixes the following build failures:

    WebCore/editing/cocoa/HTMLConverter.mm:1507:13: error: value of type 'WebCore::Element' is not contextually convertible to 'bool'
            if (element)
                ^~~~~~~
    WebCore/editing/cocoa/HTMLConverter.mm:1508:49: error: no matching function for call to 'core'
                _caches->floatPropertyValueForNode(*core(element), CSSPropertyVerticalAlign, verticalAlign);
                                                    ^~~~
    In file included from WebCore/editing/cocoa/HTMLConverter.mm:41:
    In file included from WebCore/page/Frame.h:42:
    In file included from WebCore/editing/VisibleSelection.h:30:
    In file included from WebCore/editing/VisiblePosition.h:30:
    In file included from WebCore/dom/Position.h:31:
    WebCore/editing/TextAffinity.h:54:27: note: candidate function not viable: no known conversion from 'WebCore::Element' to 'NSSelectionAffinity' (aka '_NSSelectionAffinity') for 1st argument
    inline WebCore::EAffinity core(NSSelectionAffinity affinity)
                              ^
    WebCore/editing/cocoa/HTMLConverter.mm:1509:81: error: reference to non-static member function must be called; did you mean to call it with no arguments?
            attachment.get().bounds = CGRectMake(0, (verticalAlign / 100) * element.clientHeight, element.clientWidth, element.clientHeight);
                                                                            ~~~~~~~~^~~~~~~~~~~~
                                                                                                ()
    WebCore/editing/cocoa/HTMLConverter.mm:1509:103: error: reference to non-static member function must be called; did you mean to call it with no arguments?
            attachment.get().bounds = CGRectMake(0, (verticalAlign / 100) * element.clientHeight, element.clientWidth, element.clientHeight);
                                                                                                  ~~~~~~~~^~~~~~~~~~~
                                                                                                                     ()
    WebCore/editing/cocoa/HTMLConverter.mm:1509:124: error: reference to non-static member function must be called; did you mean to call it with no arguments?
            attachment.get().bounds = CGRectMake(0, (verticalAlign / 100) * element.clientHeight, element.clientWidth, element.clientHeight);
                                                                                                                       ~~~~~~~~^~~~~~~~~~~~
                                                                                                                                           ()
    5 errors generated.

* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_addAttachmentForElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/cocoa/HTMLConverter.mm