diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-02 18:38:22 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-12-23 02:22:50 +0100 |
commit | f3635faf14a7521e7e9263f197d071a98bdda171 (patch) | |
tree | 2b4fc2f411b813c3fbd03ac51dc091220ea580d3 /khtml/html/htmltokenizer.cpp | |
parent | e25c6429ea1c1578452eb329a7a03457d57948f0 (diff) | |
download | tdelibs-f3635faf14a7521e7e9263f197d071a98bdda171.tar.gz tdelibs-f3635faf14a7521e7e9263f197d071a98bdda171.zip |
Don't use insane (negative) layout values if layout engine does not allocate sufficient space for a text string
This resolves Bug 1950
Make most debugging statements work again
Add new debugging statements
Fix several annoying build warnings
(cherry picked from commit cc5fd88be313142d3996c81f8bdfc1290485858c)
Diffstat (limited to 'khtml/html/htmltokenizer.cpp')
-rw-r--r-- | khtml/html/htmltokenizer.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/khtml/html/htmltokenizer.cpp b/khtml/html/htmltokenizer.cpp index 5da6edd14..9de68e708 100644 --- a/khtml/html/htmltokenizer.cpp +++ b/khtml/html/htmltokenizer.cpp @@ -1385,11 +1385,11 @@ void HTMLTokenizer::write( const TokenizerString &str, bool appendData ) else if ( startTag ) { startTag = false; - bool endTag = false; + // bool endTag = false; switch(cc) { case '/': - endTag = true; + // endTag = true; break; case '!': { @@ -1440,11 +1440,14 @@ void HTMLTokenizer::write( const TokenizerString &str, bool appendData ) // immediately before an endtag should be ignored. // ### Gecko and MSIE though only ignores LF immediately after // starttags and only for PRE elements -- asj (28/06-2005) - if ( pending ) - if (!select) + if ( pending ) { + if (!select) { addPending(); - else + } + else { pending = NonePending; + } + } // Cancel unused discards discard = NoneDiscard; |