~jconti/ubuntu/oneiric/webkit/fix_doc_path

« back to all changes in this revision

Viewing changes to WebCore/dom/ProcessingInstruction.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2008-09-27 08:57:48 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080927085748-yhzld00w0rekp961
Tags: 1.0.1-4
WebCore/dom/Document.*, WebCore/loader/DocLoader.*: Avoid DoS via
crafted CSS import statements. Fixes: CVE-2008-3632. Closes: #499771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * You should have received a copy of the GNU Library General Public License
18
18
 * along with this library; see the file COPYING.LIB.  If not, write to
19
 
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
 
 * Boston, MA 02111-1307, USA.
 
19
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
20
 * Boston, MA 02110-1301, USA.
21
21
 *
22
22
 */
23
23
 
51
51
    virtual PassRefPtr<Node> cloneNode(bool deep);
52
52
    virtual bool childTypeAllowed(NodeType);
53
53
    virtual bool offsetInCharacters() const;
 
54
    virtual int maxCharacterOffset() const;
54
55
 
55
56
    // Other methods (not part of DOM)
56
57
    String localHref() const { return m_localHref; }
57
58
    StyleSheet* sheet() const { return m_sheet.get(); }
58
59
    bool checkStyleSheet();
59
 
    virtual void setCSSStyleSheet(const String& URL, const String& charset, const String& sheet);
 
60
    virtual void setCSSStyleSheet(const String& url, const String& charset, const CachedCSSStyleSheet*);
60
61
#if ENABLE(XSLT)
61
 
    virtual void setXSLStyleSheet(const String& URL, const String& sheet);
 
62
    virtual void setXSLStyleSheet(const String& url, const String& sheet);
62
63
#endif
63
64
    void setCSSStyleSheet(CSSStyleSheet*);
64
65
    bool isLoading() const;
65
66
    virtual bool sheetLoaded();
66
 
    virtual String toString() const;
67
67
 
68
68
#if ENABLE(XSLT)
69
69
    bool isXSL() const { return m_isXSL; }
70
70
#endif
71
71
 
 
72
    virtual void getSubresourceAttributeStrings(Vector<String>&) const;
 
73
 
72
74
private:
73
75
    void parseStyleSheet(const String& sheet);
74
76
 
75
77
    String m_target;
76
78
    String m_data;
77
79
    String m_localHref;
 
80
    String m_title;
 
81
    String m_media;
78
82
    CachedResource* m_cachedSheet;
79
83
    RefPtr<StyleSheet> m_sheet;
80
84
    bool m_loading;
 
85
    bool m_alternate;
81
86
#if ENABLE(XSLT)
82
87
    bool m_isXSL;
83
88
#endif