Commit Graph

130 Commits

Author SHA1 Message Date
Henri Sivonen
ca863ef080 Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
Henri Sivonen
1dadb0c45e Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
Ehsan Akhgari
cb16e9f5cc Bug 1109311 - Fix the -Wundefined-bool-conversion warning in nsHtml5TreeBuilder.cpp resulting from checking the value of this; r=hsivonen
Clang gives the following warning for this code:

'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true

--HG--
extra : rebase_source : cd9bc242d22b0a5aa6767ce442368638d6186400
2014-12-18 10:33:28 -05:00
William Chen
eb84301072 Bug 1091425 - Use the correct document when creating nodes in the HTML5 parser. r=hsivonen 2014-11-09 22:50:18 -08:00
Henri Sivonen
24d6e9838a Bug 886390 part 2 - Disable foreign content breakout in the fragment case. r=wchen. 2014-10-27 11:48:11 +02:00
Henri Sivonen
3e8d28c188 Bug 886390 part 1 - Implement behavior equivalent to the adjusted current node concept by changing the first node on the stack. r=wchen. 2014-10-27 11:48:11 +02:00
Yuki Sekiguchi
e8960b0a35 Bug 1042885 - Part 1: A rp element should not auto close a rtc element. r=wchen 2014-08-18 22:33:45 -07:00
William Chen
f155e9748e Bug 1044118 - Fix inverted check for unclosed children in ruby tag. r=hsivonen 2014-08-04 15:54:20 -07:00
Yuki Sekiguchi
bc1a42863b Bug 664104 - Part 1: Implement new ruby model in HTML parser. r=wchen 2014-06-20 17:08:31 -07:00
Olli Pettay
42c29da4fc Bug 902618 - Parser notifies about subtree roots, but not their descendants, r=hsivonen,bz 2014-06-17 02:01:22 +03:00
William Chen
04cd6ad785 Bug 1005580 - Fix "after after frameset" insertion mode in HTML parser for handling characters. r=hsivonen 2014-05-06 13:29:31 -07:00
William Chen
d36b408e0a Bug 982285 - Update active formatting element list indices in HTML parser adoption agency algorithm. r=hsivonen 2014-03-17 17:34:47 -07:00
William Chen
da78f2c672 Bug 884795 - HTML parser AAA algorithm should only pop when the current node is not in the list of active formatting elements. r=hsivonen 2014-03-07 15:48:19 -08:00
Henri Sivonen
149dfbb23b Bug 959150 part 5 - Avoid reallocating the attribute holder when parsing with nsHtml5StringParser. r=smaug. 2014-03-05 21:38:50 +02:00
Henri Sivonen
3345c35123 Bug 959150 part 4 - Avoid using tree ops when parsing with nsHtml5StringParser. r=smaug. 2014-03-05 21:38:50 +02:00
Henri Sivonen
3fe0948716 Bug 959150 part 1 - Represent nodes as void* in the portable part of the parser. r=smaug. 2014-03-05 21:38:49 +02:00
Ryan VanderMeulen
a5b55ea49c Backed out 8 changesets (bug 959150) for Linux debug build bustage on a CLOSED TREE.
Backed out changeset 30bdc9b15e8e (bug 959150)
Backed out changeset 630e489aed30 (bug 959150)
Backed out changeset c6874004efe7 (bug 959150)
Backed out changeset ebc67518a962 (bug 959150)
Backed out changeset 14441e528582 (bug 959150)
Backed out changeset 8d0ae8bffb08 (bug 959150)
Backed out changeset 603b63c33e9a (bug 959150)
Backed out changeset 261e2d244c54 (bug 959150)
2014-03-05 15:26:07 -05:00
Henri Sivonen
ad843c93aa Bug 959150 part 5 - Avoid reallocating the attribute holder when parsing with nsHtml5StringParser. r=smaug. 2014-03-05 21:38:50 +02:00
Henri Sivonen
3537509c13 Bug 959150 part 4 - Avoid using tree ops when parsing with nsHtml5StringParser. r=smaug. 2014-03-05 21:38:50 +02:00
Henri Sivonen
ad87cad09c Bug 959150 part 1 - Represent nodes as void* in the portable part of the parser. r=smaug. 2014-03-05 21:38:49 +02:00
William Chen
e1d3d37020 Bug 901319 - Implement HTML spec change to Adoption Agency Algorithm to not reverse the order of nodes in the document, by removing nodes that we're not recreating from the stack of open elements. r=hsivonen 2014-03-04 18:06:15 -08:00
Reuben Morais
f954df12ae Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen
--HG--
rename : content/base/public/nsINameSpaceManager.h => content/base/public/nsNameSpaceManager.h
2014-02-27 20:04:46 -03:00
L. David Baron
4f04bcdc57 Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
William Chen
7dc9fbe59e Bug 946585 - Change how the form element pointer affects parsing template elements. r=hsivonen 2014-01-31 15:03:24 -08:00
Ehsan Akhgari
ebd358dfd7 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
William Chen
240a4277c8 Bug 937003 - Use correct adjusted insertion location for foster parenting in template element. r=hsivonen 2013-11-10 22:45:43 -08:00
William Chen
02d23085a6 Bug 797009 - Remove bad assertion in HTML parser. r=hsivonen 2013-11-13 15:53:12 -08:00
William Chen
ed953c8ff3 Bug 937259 - Remove <command> element from the parser. r=hsivonen 2013-11-13 15:17:13 -08:00
William Chen
d3cdfbb569 Bug 822776 - Update "after after frameset" insertion mode. r=hsivonen 2013-11-13 14:57:07 -08:00
William Chen
91bb91b158 Bug 932086 - Hoist <template> to head when found between </head> and <body>. r=hsivonen 2013-11-04 17:19:22 -08:00
William Chen
4fb3f7e4ed Bug 925907 - Check for IN_SELECT_IN_TABLE in "reset the insertion mode" in HTML5 parser. r=hsivonen 2013-10-17 13:26:49 -07:00
Michael[tm] Smith
19088f6eb2 Bug 910588 - log a parse error for <table><input></table>. r=hsivonen. 2013-09-17 15:47:32 +03:00
William Chen
3c3062971a Bug 900724 - Prevent form association when creating elements in template contents. r=hsivonen 2013-08-13 14:31:18 -07:00
William Chen
b0e155cb0a Bug 897153 - Update parsing of template element to spec as of July 15, 2013. r=hsivonen 2013-08-12 14:46:12 -07:00
William Chen
d471fc9c9f Bug 897143 - Update parser algorithms to be namespace aware. r=hsivonen 2013-08-12 14:46:12 -07:00
William Chen
bcbcfbfe2f Bug 888820 - Save template insertion mode stack information in TreeBuilderState. r=hsivonen 2013-08-12 14:46:12 -07:00
James Kitchener
881001dff5 Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen 2013-06-28 23:13:23 -04:00
Henri Sivonen
f17f395dda Bug 870787 HTML parser part - Make <img> a form-associated element in the HTML parser. r=smaug 2013-06-06 11:02:30 +03:00
William Chen
d1deac0faf Bug 818976 - Part 3: Generated code for HTML5 parser. r=hsivonen 2013-03-26 00:15:23 -07:00
Henri Sivonen
1c1feac1bf Bug 820508 part 1 - Parser support for <main>. r=smaug. 2013-01-29 14:31:45 +02:00
Henri Sivonen
e829394001 Bug 808464 - Refresh the "special" list in the HTML parser and the check for that list in the <dd> case. r=smaug. 2012-11-12 16:41:17 +02:00
Henri Sivonen
2f13dd66f6 Bug 809403 - Sync Gecko C++ version of the HTML parser with changes made for Rust. rs=smaug. 2012-11-09 11:04:28 +02:00
Jacek Szpot
0b35b0e3d8 Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Henri Sivonen
dc4ef20648 Bug 799958 - Remove prtype.h from C++ translator output. r=smaug. 2012-10-25 14:03:27 +03:00
Henri Sivonen
4eb686ec9c Bug 503190 - Include assertions in the C++ translator output. r=smaug. 2012-10-01 11:52:32 +03:00
Henri Sivonen
d91939100e Bug 792790 - Introduce NoBoundsCheck variants of accessors on nsHtml5HtmlAttributes; Make operator= in jArray nullptr-aware. r=smaug. 2012-10-01 11:49:01 +03:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
e57dd159b2 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00