Commit Graph

116 Commits

Author SHA1 Message Date
William Chen
98b54468ba Bug 1032654 - Remove invalid assertion from HTML parser. r=smaug 2014-07-07 18:09:39 -07:00
Kyle Huey
fcaab74dfe Bug 737976: Remove nsINodeInfo. r=smaug
--HG--
rename : content/base/src/nsNodeInfo.cpp => dom/base/NodeInfo.cpp
rename : content/base/public/nsINodeInfo.h => dom/base/NodeInfo.h
rename : content/base/src/nsNodeInfo.h => dom/base/NodeInfoInlines.h
2014-06-19 19:01:40 -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
Boris Zbarsky
0b14b0cdf7 Bug 998356. Don't completely fail out of the parser if we can't format one of our string error messages. r=hsivonen 2014-05-23 17:32:37 -04:00
Birunthan Mohanathas
62570a8716 Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:50 +03:00
Henri Sivonen
ba42c93bf5 Bug 959150 part 7 - Retain probable bugs instead of changing behavior right now. 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
b5550f6f7c Bug 959150 part 3 - Move the parts of nsHtml5TreeOpExecutor that the static methods in nsHtml5TreeOperation need to access into a new superclass. r=smaug. 2014-03-05 21:38:49 +02:00
Henri Sivonen
e372bd3e62 Bug 959150 part 2 - Split reusable operations out of nsHtml5TreeOperation::Perform into static methods. 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
2d8c480f4b Bug 959150 part 7 - Retain probable bugs instead of changing behavior right now. 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
c8cfbf7ab3 Bug 959150 part 3 - Move the parts of nsHtml5TreeOpExecutor that the static methods in nsHtml5TreeOperation need to access into a new superclass. r=smaug. 2014-03-05 21:38:49 +02:00
Henri Sivonen
af339b6323 Bug 959150 part 2 - Split reusable operations out of nsHtml5TreeOperation::Perform into static methods. r=smaug. 2014-03-05 21:38:49 +02: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
7e3d257959 Bug 856140 - Sync our document.registerElement implementation to the current version of the spec. r=mrbkap 2014-02-23 13:01:26 -08:00
James Kitchener
aa71f2ee3a Bug 964239 - Ignore invalid URIs rather than stopping completely. r=hsivonen 2014-02-06 09:46:29 -05: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
Benjamin Smedberg
17e6bce69c Bug 943519 - If we don't have a valid nsIFormProcessor, the HTML parser should continue and should not mark the entire document as broken, r=hsivonen 2013-12-19 09:08:59 -05:00
Boris Zbarsky
58a7c3f5a4 Bug 945572 part 6. Make NS_NewElement take an Element** outparam instead of an nsIContent** one. r=smaug 2013-12-03 09:40:11 -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
Henri Sivonen
8be3895281 Bug 930281 - Use nsINode instead of nsIContent. r=smaug. 2013-11-12 10:45:22 +02:00
Ehsan Akhgari
04370d5ca2 Bug 936927 - Build the HTML parser in unified mode; r=hsivonen 2013-11-11 09:07:50 -05:00
Andrea Marchesini
74b148c97f Bug 870787 - Improve named getter for form, r=bz 2013-06-18 08:53:23 -04:00
Joshua Cranmer
41c5d7997f Bug 856108 - Port static analyses to clang, part 2h: use MOZ_STACK_CLASS everywhere else. r=bsmedberg 2013-04-11 22:22:09 -05:00
Aryeh Gregor
3e99dc4f10 Bug 857102 part 4 - Make NS_NewCommentNode and nsIDocument::CreateCommentNode infallible; r=bz 2013-04-04 15:02:22 +03:00
Aryeh Gregor
c446dbef0c Bug 857102 part 2 - Make NS_NewTextNode and nsIDocument::CreateTextNode infallible; r=bz 2013-04-04 15:01:08 +03:00
William Chen
0fc22c7d14 Bug 818976 - Part 1: Add supplement code and new tree op to support generated code in HTML5 parser. r=hsivonen 2013-03-26 00:15:23 -07:00
Ms2ger
f8e13f3750 Bug 845374 - Part f: Create a new nsDocElementCreatedNotificationRunner.h; r=khuey
--HG--
rename : content/base/public/nsContentUtils.h => content/base/public/nsDocElementCreatedNotificationRunner.h
2013-03-17 08:55:12 +01: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
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
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04: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
Henri Sivonen
80c8bb96d3 Bug 765620 - When parsing from stream without executing scripts, avoid script execution-related tree ops. r=smaug 2012-06-20 10:05:39 +03:00
Ed Morley
bb3f6c2bad Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-02 10:03:16 +01:00
Ms2ger
a4ebdb8e6a Bug 767790 - Remove nsIHTMLDocument::{Get,Set}IsFrameset; r=mounir 2012-07-02 08:22:37 +02:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Gervase Markham
d4eb7d5782 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Daniel Holbert
95002fef4b Bug 743404: In nsHtml5TreeOperation::Perform, store the return-value of nsINode::IndexOf in a PRInt32 instead of a PRUint32, so we can range-check it. r=hsivonen 2012-04-10 10:44:49 -07:00
Ms2ger
968425f97e Bug 738654 - Part b: RemoveChildAt can't fail; r=sicking 2012-03-29 23:09:07 +02:00
Henri Sivonen
95b45892e6 Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
--HG--
rename : extensions/universalchardet/tests/bug631751be_text.html => parser/htmlparser/tests/mochitest/file_bug672453_bomless_utf16.html
2012-03-24 13:34:42 +02:00
Henri Sivonen
cd61e269c7 Bug 717488 part 1. r=smaug. 2012-03-21 14:39:25 +02:00
Jacob Holzinger
acfe99c129 Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
2012-03-08 18:22:57 -08:00
Ms2ger
e3e8b35541 Bug 718504 - Remove some GetChildAt callers; r=smaug 2012-01-25 08:50:07 +01:00
Henri Sivonen
60292745ec Bug 102699 - Support text/html in DOMParser.parseFromString(). r=smaug.
--HG--
rename : content/base/test/file_html_in_xhr.sjs => parser/htmlparser/tests/mochitest/file_bug102699.sjs
2012-01-20 14:03:49 +02:00
Gabor Krizsanits
873b2b62fc Bug 678465 - 'document-element-inserted' doesn't fire on ImageDocument; r=bz 2011-12-15 15:10:36 +00:00
Ms2ger
8c93cf88ec Bug 698261 - Remove the aElementType argument of NS_NewElement; r=bz 2011-11-16 08:50:19 +01:00
Henri Sivonen
e434910347 Bug 482921 part 14 - Address review comments. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
31b733036d Bug 482921 part 10 - Support parametrized error messages in new View Source. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00