]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/html/m_style.cpp
fix crash which happened if you called SetAttr(NULL) followed by SetAttr(attr) (...
[wxWidgets.git] / src / html / m_style.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/html/m_style.cpp
3// Purpose: wxHtml module for parsing <style> tag
4// Author: Vaclav Slavik
5// RCS-ID: $Id$
6// Copyright: (c) 2002 Vaclav Slavik
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#include "wx/wxprec.h"
11
12#ifdef __BORLANDC__
13 #pragma hdrstop
14#endif
15
16#if wxUSE_HTML && wxUSE_STREAMS
17
18#ifndef WX_PRECOMP
19#endif
20
21#include "wx/html/forcelnk.h"
22#include "wx/html/m_templ.h"
23
24FORCE_LINK_ME(m_style)
25
26
27TAG_HANDLER_BEGIN(STYLE, "STYLE")
28 TAG_HANDLER_CONSTR(STYLE) { }
29
30 TAG_HANDLER_PROC(WXUNUSED(tag))
31 {
32 // VS: Ignore styles for now. We must have this handler present,
33 // because CSS style text would be rendered verbatim otherwise
34 return true;
35 }
36
37TAG_HANDLER_END(STYLE)
38
39
40TAGS_MODULE_BEGIN(StyleTag)
41
42 TAGS_MODULE_ADD(STYLE)
43
44TAGS_MODULE_END(StyleTag)
45
46#endif