Changeset 54105 in webkit


Ignore:
Timestamp:
Jan 30, 2010 4:37:43 PM (14 years ago)
Author:
kevino@webkit.org
Message:

Reviewed by Kevin Ollivier.

Add a way to get the parse mode to wxWebKit API.

https://bugs.webkit.org/show_bug.cgi?id=34341

Location:
trunk/WebKit/wx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/wx/ChangeLog

    r53757 r54105  
     12010-01-27  Kevin Watters  <kevinwatters@gmail.com>
     2
     3        Reviewed by Kevin Ollivier.
     4
     5        Add a way to get the parse mode to wxWebKit API.
     6       
     7        https://bugs.webkit.org/show_bug.cgi?id=34341
     8
     9        * WebFrame.cpp:
     10        (wxWebFrame::GetParseMode):
     11        * WebFrame.h:
     12        * WebView.cpp:
     13        (wxWebView::GetParseMode):
     14        * WebView.h:
     15
    1162010-01-22  Kevin Watters  <kevinwatters@gmail.com>
    217
  • trunk/WebKit/wx/WebFrame.cpp

    r53353 r54105  
    419419    return true;
    420420}
     421
     422wxWebKitParseMode wxWebFrame::GetParseMode() const
     423{
     424    if (m_impl->frame && m_impl->frame->document())
     425        return (wxWebKitParseMode)m_impl->frame->document()->parseMode();
     426
     427    return NoDocument;
     428}
  • trunk/WebKit/wx/WebFrame.h

    r52668 r54105  
    7878};
    7979
     80// based on enums in WebCore/dom/Document.h
     81enum wxWebKitParseMode { Compat, AlmostStrict, Strict, NoDocument };
     82
    8083class WXDLLIMPEXP_WEBKIT wxWebFrame
    8184{
     
    142145    bool ShouldClose() const;
    143146   
     147    wxWebKitParseMode GetParseMode() const;
     148   
    144149private:
    145150    float m_textMagnifier;
  • trunk/WebKit/wx/WebView.cpp

    r53756 r54105  
    973973    return wxWebSettings();
    974974}
     975
     976wxWebKitParseMode wxWebView::GetParseMode() const
     977{
     978    if (m_mainFrame)
     979        return m_mainFrame->GetParseMode();
     980
     981    return NoDocument;
     982}
  • trunk/WebKit/wx/WebView.h

    r52668 r54105  
    205205    wxWebSettings GetWebSettings();
    206206
     207    wxWebKitParseMode GetParseMode() const;
     208
    207209protected:
    208210
Note: See TracChangeset for help on using the changeset viewer.