Commit 632f2238 authored by hyatt@apple.com's avatar hyatt@apple.com

Remove unused m_sheet variable and setCSSStyleSheet methods.

Reviewed by Anders Carlsson.

* dom/Document.cpp:
* dom/Document.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 28eddcfe
2009-09-04 Dave Hyatt <hyatt@apple.com>
Reviewed by Anders Carlsson.
Remove unused m_sheet variable and setCSSStyleSheet methods.
* dom/Document.cpp:
* dom/Document.h:
2009-09-04 Anders Carlsson <andersca@apple.com>
Reviewed by David Hyatt and Adele Peterson.
......@@ -1865,14 +1865,6 @@ String Document::userAgent(const KURL& url) const
return frame() ? frame()->loader()->userAgent(url) : String();
}
void Document::setCSSStyleSheet(const String& url, const String& charset, const CachedCSSStyleSheet* sheet)
{
m_sheet = CSSStyleSheet::create(this, url, charset);
m_sheet->parseString(sheet->sheetText());
updateStyleSelector();
}
#if FRAME_LOADS_USER_STYLESHEET
void Document::setUserStyleSheet(const String& sheet)
{
......
......@@ -871,7 +871,6 @@ private:
virtual String nodeName() const;
virtual NodeType nodeType() const;
virtual void setCSSStyleSheet(const String& url, const String& charset, const CachedCSSStyleSheet*);
virtual bool childTypeAllowed(NodeType);
virtual PassRefPtr<Node> cloneNode(bool deep);
virtual bool canReplaceChild(Node* newChild, Node* oldChild);
......@@ -922,7 +921,6 @@ private:
RefPtr<DocumentType> m_docType;
mutable RefPtr<DOMImplementation> m_implementation;
RefPtr<StyleSheet> m_sheet;
#if FRAME_LOADS_USER_STYLESHEET
String m_usersheet;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment