]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/winpars.cpp
using new method for implementing Maximize
[wxWidgets.git] / src / html / winpars.cpp
index e702952b46752f0fe4b7d316939f6450ba2dd26b..6c7d8dab0fca30297258d71cc6dd89ab126b688c 100644 (file)
 #ifndef WXPRECOMP
     #include "wx/intl.h"
     #include "wx/dc.h"
+    #include "wx/log.h"
+    #include "wx/settings.h"
 #endif
 
 #include "wx/html/htmldefs.h"
 #include "wx/html/winpars.h"
 #include "wx/html/htmlwin.h"
 #include "wx/fontmap.h"
-#include "wx/log.h"
-#include "wx/settings.h"
 #include "wx/uri.h"
 
 
@@ -196,7 +196,11 @@ void wxHtmlWinParser::InitParser(const wxString& source)
     m_tmpLastWasSpace = false;
     m_lastWordCell = NULL;
 
+    // open the toplevel container that contains everything else and that
+    // is never closed (this makes parser's life easier):
     OpenContainer();
+
+    // then open the first container into which page's content will go:
     OpenContainer();
 
 #if !wxUSE_UNICODE