Commit Graph

36 Commits

Author SHA1 Message Date
Henri Sivonen
cc83c1cd0f Bug 1266495 - Remove <isindex>. r=wchen
MozReview-Commit-ID: KM0sTMM1GaD
2017-07-05 11:42:04 +03:00
William Chen
9399923726 Bug 1366241 - Change memory layout of element name and attribute name hashes in HTML parser from sorted to level order BST in order to take advantage of cache during lookup. r=hsivonen 2017-06-27 13:48:25 -07:00
Henri Sivonen
3b050334d4 Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName. r=wchen
Moving methods that refer to constant to the header that defines the
constants makes it infeasible to #define the constants at the end
of the header. To avoid introducing a new pass over the Java AST,
this patch turns the primitive constants that were
previously #defined into C++ contants, which, according to
Stroustrup 3rd ed., are handled at compile-time and don't consume
storage.

MozReview-Commit-ID: JnaDgW2OM7t
2017-04-20 10:34:32 +03:00
Henri Sivonen
759c770926 Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen
MozReview-Commit-ID: 77Hqo24F2nB
2017-04-13 11:14:48 +03:00
Henri Sivonen
89dc7f5ddb Bug 1355779 - Skip interned nsHtml5ElementName lookup for Custom Elements (ones with hyphen). r=wchen
MozReview-Commit-ID: 4xQlhExyo7d
2017-04-12 14:28:49 +03:00
Henri Sivonen
6274301b73 Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a non-interned element name. r=wchen
MozReview-Commit-ID: 4In5wo0flOB
2017-04-12 13:21:03 +03:00
Henri Sivonen
d333738e61 Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements. r=wchen.
MozReview-Commit-ID: 1fiqOuGUOBG
2017-04-11 17:43:54 +03:00
Henri Sivonen
61d189d87f Bug 1352082 - Avoid shifting a signed integer left in C++. r=wchen
MozReview-Commit-ID: 52YqyHAz2c3
2017-04-07 13:26:31 +03:00
Henri Sivonen
751a46a740 Bug 1322938 - Make the HTML tree builder aware of <dialog>. r=wchen
Original patch by :hsivonen

MozReview-Commit-ID: C8UK7m7V9tn
2016-12-22 11:30:41 +02:00
Boris Zbarsky
e7fcf1b1a1 Bug 1268852. Change <label> elements to not be form-associated anymore. r=bkelly,hsivonen,surkov
The web platform tests changes are just a cherrypick of
https://github.com/w3c/web-platform-tests/pull/2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
2016-05-26 19:39:03 -04:00
Yuki Sekiguchi
4700627e63 Bug 1042885 - Part 1: A rp element should not auto close a rtc element. r=wchen 2014-08-18 22:33:45 -07:00
John Schoenick
62330b16da Bug 870022 - Part 5.3 - Teach parser about <picture> (non-generated bits). r=hsivonen 2014-06-25 11:47:49 -07:00
Yuki Sekiguchi
510ac08043 Bug 664104 - Part 1: Implement new ruby model in HTML parser. r=wchen 2014-06-20 17:08:31 -07:00
Robert Longson
62850bea68 Bug 964200 (Part 2) - Add HTML parser support for SVG <feDropShadow>. r=wchen 2014-02-05 15:04:08 +00:00
William Chen
b0e6b247fb Bug 937259 - Remove <command> element from the parser. r=hsivonen 2013-11-13 15:17:13 -08:00
William Chen
952b0d1ecd Bug 897153 - Update parsing of template element to spec as of July 15, 2013. r=hsivonen 2013-08-12 14:46:12 -07:00
Henri Sivonen
17c19c799e 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
d46f74e162 Bug 818976 - Part 3: Generated code for HTML5 parser. r=hsivonen 2013-03-26 00:15:23 -07:00
Henri Sivonen
775a9691b3 Bug 820508 part 1 - Parser support for <main>. r=smaug. 2013-01-29 14:31:45 +02:00
Henri Sivonen
383d5e3079 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
e99efa93f4 Bug 503190 - Include assertions in the C++ translator output. r=smaug. 2012-10-01 11:52:32 +03:00
Henri Sivonen
7834b7ffa2 Bug 765381 - Make the destructors on nsHtml5ElementName and nsHtml5AttributeName virtual to avoid warnings in clang. r=ehsan 2012-07-13 15:04:11 +03:00
Henri Sivonen
2d37e6c0db Bug 704058 - Sync HTML parser .java sources in m-c with the htmlparser repo. rs=smaug. DONTBUILD 2011-11-21 16:12:15 +02:00
Henri Sivonen
cb3cedf1bc Bug 643395 - Update the HTML parser Java code to the state in the htmlparser repo (NPOTB). rs=jonas. 2011-04-08 09:07:27 +03:00
Michael(tm) Smith
e3156c4365 Bug 620664 - Add support for the track element to the HTML5 parser. r=hsivonen, a=jst. 2011-01-12 10:05:09 +02:00
Henri Sivonen
d3fc35ebd5 Bug 612529 part 2 - Rework how scopingness and specialness is handled in stack nodes; refresh the set of scoping elements to spec. rs=jonas, a=blocking2.0-betaN. 2010-12-09 11:27:58 +02:00
Henri Sivonen
b40e883623 Bug 612529 part 1 - Pack the dispatch group and the flags of an element into one 32-bit bitfield. r=jonas, a=blocking2.0-betaN. 2010-12-09 11:27:57 +02:00
Henri Sivonen
45c1d01727 Bug 596169 - Make <summary> and <figcaption> behave per spec. Remove <datagrid>. rs=jonas, a=blocking2.0-betaN. 2010-10-07 10:27:16 +03:00
Henri Sivonen
a00ca20e07 Bug 502176 - Replace static use of jArray with a plain old data staticJArray, introduce an autoJArray for nicer memory management. r=tglek, a=jst. 2010-09-28 10:32:31 +03:00
Henri Sivonen
805ba079f4 Bug 569528 - Make <p> not close implicitly across a <button> on stack. rs=jonas, a=blocking2.0-final. 2010-09-08 19:31:22 +03:00
Henri Sivonen
8c27c20f4a Bug 531056 - Make the HTML5 parser unaware of <spacer>. r=jonas, a=jst. 2010-09-15 11:37:55 +03:00
Henri Sivonen
b8c6cd4e34 Bug 571389 - Make <basefont> and <bgsound> parse like <link>. r=jonas. 2010-06-11 18:08:13 +03:00
Henri Sivonen
ba8fdf3a36 Bug 558302 - Make <button> non-scoping in the HTML5 parser. r=bnewman. 2010-04-16 13:52:06 +03:00
Henri Sivonen
c0974bfcc8 Bug 555906 - </datalist> does not implicitly close an <option> in the HTML5 parser. r=bnewman. 2010-04-09 18:48:30 +03:00
Henri Sivonen
070ff9188e Bug 539434 follow-up - Sync the Java sources of the HTML5 parser with the htmlparser repository. rs=sicking. NPOTB. 2010-03-26 09:50:20 +02:00
Ben Newman
0a1825f5bf Bug 504442 - Remove content/html/parser and land parser/html/javasrc/*.java. 2009-07-17 13:50:20 -07:00