Commit Graph

3976 Commits

Author SHA1 Message Date
Ehsan Akhgari
74ead075de Bug 1379354 - Improve the UnicodeToEntity hashtable hash routine; r=wchen 2017-07-19 12:53:36 -04:00
Ryan VanderMeulen
019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Henri Sivonen
217ac88f04 Bug 1266495 - Remove <isindex>. r=wchen
MozReview-Commit-ID: KM0sTMM1GaD

--HG--
extra : rebase_source : 013069be4191e2ad50b5af879b690a6760e8429a
2017-07-05 11:42:04 +03:00
Nicholas Nethercote
c86dc10505 Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:

- a 16-bit C string literal, which is then converted to an 8-bit string in
  order for the lookup to occur;

- an 8-bit C string literal converted to a 16-bit string, which is then
  converted back to an 8-bit string in order for the lookup to occur.

This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.

The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.

Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.

The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)

--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Christoph Kerschbaumer
98f251e3f3 Bug 1384500 - Update test_compatmode.html to comply with new data: URI inheritance model. r=smaug 2017-07-26 12:04:20 +02:00
Carsten "Tomcat" Book
b72c4833d5 merge mozilla-inbound to mozilla-central a=merge 2017-07-05 13:01:22 +02:00
Nicholas Nethercote
77757143fb Bug 1378011 (part 2) - Remove the Legacy HTML Parser's EntityToUnicode conversions. r=mrbkap.
It's unused except in test code (nsTestEntityTable). The patch removes that
test code, which also removes testing for UnicodeToEntity conversion, but the
test code wasn't being run anyway so it's no great loss.

(UnicodeToEntity conversion is still used by
nsHTMLContentSerializer::AppendAndTranslateEntities().)
2017-07-04 16:00:55 +10:00
Nicholas Nethercote
1c45fc829f Bug 1378011 (part 1) - Remove nsToken.h, because it is unused. r=mrbkap. 2017-07-04 11:25:09 +10:00
Phil Ringnalda
22cb9f77bb Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Ehsan Akhgari
86018d0bcc Bug 1377447 - Add a new flush type between Frames and InterruptibleLayout to initialize layout if needed and use it from CheckIfFocusable; r=smaug 2017-07-04 22:00:09 -04:00
Ehsan Akhgari
dd036d1249 Backout bug 1377447 for more test failures on a CLOSED TREE 2017-07-04 17:01:42 -04:00
Ehsan Akhgari
04bd0e3db3 Bug 1377447 - Add a new flush type between Frames and InterruptibleLayout to initialize layout if needed and use it from CheckIfFocusable; r=smaug 2017-07-04 15:13:20 -04:00
Sebastian Hengst
6df5db8045 Backed out changeset bd3edebd5f20 (bug 1377447) for failing its own test 1377447-1.html on Windows 7 and OS X. r=backout 2017-07-04 18:18:30 +02:00
Ehsan Akhgari
d39018ac62 Bug 1377447 - Add a new flush type between Frames and InterruptibleLayout to initialize layout if needed and use it from CheckIfFocusable; r=smaug 2017-07-04 11:13:30 -04:00
Carsten "Tomcat" Book
75c2b6acd0 Merge mozilla-central to mozilla-inbound 2017-07-04 11:09:13 +02:00
Henri Sivonen
cd8b20334c Bug 1377859 - Make the HTML parser translation makefile use nsGkAtomList. r=wchen
MozReview-Commit-ID: 7PgZ0VB2PKt

--HG--
extra : rebase_source : 748d113720f041ae66ecf6a3328cb32461bdae60
2017-07-03 14:23:30 +03:00
Henri Sivonen
a0fe0048af Bug 562590 - Make incomplete byte sequences near HTML EOF emit a REPLACEMENT CHARACTER. r=emk
MozReview-Commit-ID: 6NF4rMWxyVu

--HG--
extra : rebase_source : 0d4f557cd14f256f9100b16c27a00df381bfbdb1
2017-06-22 14:32:34 +03:00
Christoph Kerschbaumer
b95da3262e Bug 1377176 - Use SpecialPowers to test href of data: iframe for parser/ tests. r=smaug 2017-06-29 11:20:54 -07:00
Nicholas Nethercote
3e439bb4f8 Bug 1376638 - Minimize uses of prmem.h. r=glandium.
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)

This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.

--HG--
extra : rebase_source : 0f781bca68b5bf3c4c191e09e277dfc8becffa09
2017-06-30 19:05:41 -07:00
Henri Sivonen
892c3d2d78 Bug 1376154 - Preserve nsHtml5MetaScanner::mEncoding initialization when re-translating parser. r=wchen.
MozReview-Commit-ID: I2vM178Rq6e

--HG--
extra : rebase_source : 518a5b45df7fca6e72f97c7ce1c2e81d76d1568a
2017-07-03 14:52:19 +03:00
Carsten "Tomcat" Book
7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
William Chen
a7d3b243a3 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
--HG--
extra : rebase_source : 3100da08a88a71b1d9253a664f0fd0f935bdcc01
2017-06-27 13:48:25 -07:00
Henri Sivonen
29ef683ca2 Bug 1333333 - Label runnables in the HTML parser (again). r=billm.
MozReview-Commit-ID: 1Z89LSr46dN

--HG--
extra : rebase_source : 4f7e31741fcfe65d6e6e44f3f0df9c9d6df31e7d
2017-06-27 10:38:30 -07:00
Carsten "Tomcat" Book
4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura
b515c9c804 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Nicholas Nethercote
58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Nicholas Nethercote
f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Florian Quèze
66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Sebastian Hengst
b2f7adcc7d Backed out changeset 38722eed8c8a (bug 1355746)
MozReview-Commit-ID: 1HcpK10x0V4
2017-06-21 19:49:04 +02:00
Henry Chang
a221ac674f Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug
This patch is mainly to make IdleTaskRunner reusable by nsHtml5TreeOpExecutor.
The only necessary work to that purpose is to remove the dependency of
sShuttingDown, which was a static variable in nsJSEnvironment.cpp.
The idea is to have a "ShouldCancel" as a callback for the consumer to
return sShuttingDown.

In addition to sShuttingDown, we use std::function<bool()> as the runner
main callback type.

MozReview-Commit-ID: FT2X1unSvPS

--HG--
extra : rebase_source : cfd99aba19f014327875683f5ea85d183c8af674
extra : intermediate-source : 99af874c7b1d278057194894d406474b8af07349
extra : source : 792359c898f68241e1373820ea8fd3ba18b09994
2017-06-15 15:51:29 +08:00
Sebastian Hengst
efd723cdad merge mozilla-central to autoland. r=merge 2017-06-18 00:21:41 +02:00
Masatoshi Kimura
838ccc4108 Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
MozReview-Commit-ID: 5O5WtxbmATQ

--HG--
rename : dom/encoding/encodingsgroups.properties => intl/locale/encodingsgroups.properties
extra : rebase_source : 13143b43ee745b618e05ed1b6991d69781c2767d
2017-06-17 11:54:40 +09:00
Masatoshi Kimura
9865b2fdeb Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
MozReview-Commit-ID: E0w8BsP1Rof

--HG--
extra : rebase_source : db95e1e7fc60c9b9c8e6d7fcc5329421ec97e811
2017-06-16 21:11:03 +09:00
Mats Palmgren
f4bd97507a Bug 1372029 - Use EnsureInserted instead of Contains+PutEntry to avoid unnecessary hashtable lookups. r=froydnj
MozReview-Commit-ID: 7p0ZFLVGFEY
2017-06-17 00:06:04 +02:00
Henri Sivonen
2f2bb984f8 Bug 1372994 - Clear up leftover ISO-8859-1 encoding names. r=emk
MozReview-Commit-ID: IBuUPa9H9Q2

--HG--
extra : rebase_source : fb8db0c70caeec179d50b9ecaeb811d1e87eb0dd
2017-06-15 10:35:22 +03:00
Henri Sivonen
738252c121 Bug 1373045 test case - Crashtest for ISO-2022-KR as XML encoding. r=emk
MozReview-Commit-ID: LbWuOTQxBfi

--HG--
extra : rebase_source : 99a4271421f81d786e12e0b53c6bcf02f950d456
2017-06-15 11:40:14 +03:00
Henri Sivonen
70a5344073 Bug 1373045 - Avoid double-resolving the replacement encoding. r=emk
MozReview-Commit-ID: F0nOJ2opz0r

--HG--
extra : rebase_source : 4dda4f9628f8879626f3fe40df52feba6e18aa00
2017-06-15 11:05:05 +03:00
Henri Sivonen
432653453a Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Bill McCloskey
66e73fd8ed Bug 1371132 - Convert NS_GetCurrentThread calls in parser/ (r=hsivonen)
MozReview-Commit-ID: Cn1h0iK0Brl
2017-06-12 20:21:43 -07:00
Masatoshi Kimura
cab6038243 Bug 1371010 - Stop percent-encoding href attributes when serializing documents. r=hsivonen
MozReview-Commit-ID: 6nBFtzk0K4T

--HG--
extra : rebase_source : 9a03a1bf79791f45b2c4f0084a0c16f3c2a46c4e
2017-06-09 11:26:52 +09:00
Henri Sivonen
7b90492a1f Backout changeset 3d64bdd31c15 (bug 1333333) for causing bug 1367067, bug 1367085 and bug 1367330.
MozReview-Commit-ID: E7Q3LQDXgIA
2017-05-24 11:35:33 +03:00
Henri Sivonen
118fc52e41 Bug 1333333 - Label runnables in the HTML parser. r=billm
MozReview-Commit-ID: 6ItIgFSSR2s

--HG--
extra : rebase_source : b7451779a0e2ab8fd427a7a9ab1fb4cb8c0801e4
2017-05-15 15:54:54 +03:00
William Chen
17c14a6258 Bug 1355441 - Reuse StackNode in TreeBuilder to avoid malloc. r=hsivonen.
MozReview-Commit-ID: 4QwQwISCKPk
2017-05-15 17:18:20 +03:00
Bill McCloskey
c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Iris Hsiao
cdb9631de8 Backed out changeset 2e7615b554ee (bug 1355441) for crashing at nsHtml5TreeBuilder::getUnusedStackNode() intermittent failures 2017-05-09 17:11:28 +08:00
William Chen
5e9c898c8f Bug 1355441 - Reuse StackNode in HTML parser TreeBuilder to avoid malloc. r=hsivonen 2017-05-01 17:25:05 -07:00
Andrea Marchesini
1981f67eb3 Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
This patch does these things:

1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
   and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader

--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Carsten "Tomcat" Book
f0d6de60d7 Backed out changeset 5d77f6b14633 (bug 1362119) for android bustage in nsCCUncollectableMarker.cpp:500:7: error: 'TraceScriptHolder' is not a member of 'mozilla'
--HG--
rename : dom/script/ScriptSettings.cpp => dom/base/ScriptSettings.cpp
rename : dom/script/ScriptSettings.h => dom/base/ScriptSettings.h
rename : dom/script/nsIScriptElement.h => dom/base/nsIScriptElement.h
rename : dom/script/nsIScriptLoaderObserver.idl => dom/base/nsIScriptLoaderObserver.idl
rename : dom/script/ScriptElement.cpp => dom/base/nsScriptElement.cpp
rename : dom/script/ScriptElement.h => dom/base/nsScriptElement.h
rename : dom/script/ScriptLoader.cpp => dom/base/nsScriptLoader.cpp
rename : dom/script/ScriptLoader.h => dom/base/nsScriptLoader.h
2017-05-08 09:54:38 +02:00
Andrea Marchesini
7a4ef797cb Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
This patch does these things:

1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
   and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader

--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
Henri Sivonen
4abd5bbff7 Bug 1358095 - Remove useless interned attributes from the HTML parser. r=wchen
Stuff that's removed includes:
 * IE data binding
 * SVG fonts
 * Web Forms 2.0 templates
 * unsupported math spaces
 * abandoned HTML5 features
 * random inexplicable stuff

MozReview-Commit-ID: 1iiKyFHZQWd

--HG--
extra : rebase_source : d5c2ae8d309e433053b5e9c1579707a24bf903b9
2017-04-20 14:19:12 +03:00
Henri Sivonen
c18a3863eb Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen
MozReview-Commit-ID: EcfnXkFuJy3

--HG--
extra : rebase_source : eb4ba2c1b95a9ccabdcdecf65f3b757691f033b8
2017-04-20 11:47:02 +03:00
Henri Sivonen
1eb6516385 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

--HG--
extra : rebase_source : 3678d8db967e83d8b7e265a5ef926050cc20d770
2017-04-20 10:34:32 +03:00
Cameron McCormack
d7a98f45a2 Bug 1356103 - Part 11: Adjust text expectations. r=bholley
MozReview-Commit-ID: 7psm1XCGQ8I

--HG--
extra : rebase_source : cf638bbbe982fa366562b135c098c8e960e8b984
2017-04-30 15:20:42 +08:00
Iris Hsiao
0a6db9e69f Backed out 12 changesets (bug 1356103) for build bustage at PostTraversalTask.h
Backed out changeset 9fb487252c28 (bug 1356103)
Backed out changeset 301237c65945 (bug 1356103)
Backed out changeset 7bc3a4861a39 (bug 1356103)
Backed out changeset 2f383d89184b (bug 1356103)
Backed out changeset a03112e1c9d5 (bug 1356103)
Backed out changeset c60b4c9cbd83 (bug 1356103)
Backed out changeset 34280baeaabe (bug 1356103)
Backed out changeset 31a0881cfb47 (bug 1356103)
Backed out changeset 529d037f9c33 (bug 1356103)
Backed out changeset 1c7831db6b07 (bug 1356103)
Backed out changeset 559f06e32df3 (bug 1356103)
Backed out changeset 784865d234cd (bug 1356103)
2017-05-04 17:56:25 +08:00
Cameron McCormack
06970669b1 Bug 1356103 - Part 11: Adjust text expectations. r=bholley
MozReview-Commit-ID: 7psm1XCGQ8I

--HG--
extra : rebase_source : 70ca0331145d31f85e2e21eb1036485d15b9ce8a
2017-04-30 15:20:42 +08:00
Hiroyuki Ikezoe
751ec1a2f7 Bug 1361632 - Adjust reftest expectation for -moz-appearance. r=bholley
MozReview-Commit-ID: 6sqyA5TCHjk

--HG--
extra : rebase_source : 4957d93a55717850594dabc2650cecf060022f75
2017-05-04 06:39:30 +09:00
Swapnesh Kumar Sahoo
c11cf34901 Bug 1354331 - Remove network.http.enablePerElementReferrer usages. r=valentin r=baku 2017-05-01 00:12:34 +05:30
Henri Sivonen
b94c082c37 Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen
MozReview-Commit-ID: 77Hqo24F2nB

--HG--
extra : rebase_source : 9829c4ce7561e3a1d64d79884af6a8f72326021d
2017-04-13 11:14:48 +03:00
Shing Lyu
c46f5d5baf Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: 8LoQ9xNnDnj
2017-04-28 11:15:58 +08:00
Shing Lyu
435db45b79 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-28 11:15:50 +08:00
Sebastian Hengst
ceff3b0678 Backed out changeset 1f9d0f8e65b9 (bug 1351548) 2017-04-26 13:13:05 +02:00
Sebastian Hengst
88c73138b1 Backed out changeset 4d8dfee7ebf3 (bug 1351548) 2017-04-26 13:12:59 +02:00
Sebastian Hengst
f46ebb0d94 Backed out changeset aebb0ceeb20a (bug 1351548) 2017-04-26 13:12:53 +02:00
Shing Lyu
96b400c04a Bug 1351548 - Remove reftest-stylo.lists. r=bholley
MozReview-Commit-ID: Gn0fbS4PZ7i
2017-04-26 18:21:52 +08:00
Shing Lyu
0673a3e783 Bug 1351548 - Switch from reftest-stylo.list to reftest.list on linux64-stylo. r=bholley
MozReview-Commit-ID: 3GHNhi3gdg9
2017-04-26 18:21:48 +08:00
Shing Lyu
dae014d9d5 Bug 1351548 - Add stylo-vs-gecko expectations to reftest.lists. r=bholley
MozReview-Commit-ID: GOUGBsd05cn
2017-04-26 18:21:43 +08:00
Henri Sivonen
586ba83170 Bug 1355779 - Skip interned nsHtml5ElementName lookup for Custom Elements (ones with hyphen). r=wchen
MozReview-Commit-ID: 4xQlhExyo7d

--HG--
extra : rebase_source : 2acb38715feeeec5a1817dddae31960f18b2fe72
2017-04-12 14:28:49 +03:00
Henri Sivonen
8de02e50f5 Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a non-interned element name. r=wchen
MozReview-Commit-ID: 4In5wo0flOB

--HG--
extra : rebase_source : 912c5be12ab9ef96bacdf4ef84905f7056addecb
2017-04-12 13:21:03 +03:00
Henri Sivonen
b05b669637 Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements. r=wchen.
MozReview-Commit-ID: 1fiqOuGUOBG

--HG--
extra : rebase_source : 8d2efb1ef9a18da0604109e9ee37e5edfb570b17
2017-04-11 17:43:54 +03:00
Manish Goregaokar
f1d7d1e1c9 Bug 1356105 - Update more test expectations ; r=manishearth
MozReview-Commit-ID: 8qvGgysr20e
2017-04-13 15:56:54 +08:00
Manish Goregaokar
5c6db46eb1 Bug 1356105 - stylo: Disable font metrics ; r=heycam
MozReview-Commit-ID: DgwnF7isa6W
2017-04-13 14:48:37 +08:00
Dan Banner
cdf987089d Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8
MozReview-Commit-ID: K5TLF92pHq4

--HG--
extra : rebase_source : 295bf325a07fa8ec4c55a8babf5418588308dca6
2017-04-12 11:10:00 +01:00
Iris Hsiao
944f87c575 merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
Eric Rahm
a220f2c4a4 Bug 1348998 - Build XML with unified sources. r=peterv
It looks like we can build parser/xml with unified sources.

MozReview-Commit-ID: 2NNa75l1FrB
2017-04-11 10:33:25 -07:00
Xidorn Quan
ff8497b005 Bug 1341724 followup - Adjust reftest expectations. a=merge
MozReview-Commit-ID: KPZUOdERNEK

--HG--
extra : source : 1ab3c4b1b127f5e62d5607bf7151ea5997a57e75
2017-04-10 20:54:22 +08:00
Henri Sivonen
2dfbad67f6 Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen.
MozReview-Commit-ID: Gn9fXroxQhY

--HG--
extra : rebase_source : 70bc539e80ce0b2372569a194366cfe559614fd1
2017-03-20 14:45:15 +02:00
Henri Sivonen
658e8c34d3 Bug 1352082 - Avoid shifting a signed integer left in C++. r=wchen
MozReview-Commit-ID: 52YqyHAz2c3

--HG--
extra : rebase_source : 38faa832b92564783d06c85a2f23fb7c16ba38fe
2017-04-07 13:26:31 +03:00
Xidorn Quan
101f2b93e2 Bug 1341724 followup - Adjust reftest expectations.
MozReview-Commit-ID: KPZUOdERNEK

--HG--
extra : rebase_source : 5cda12c745f744ff8d1c03db0c46fcdf827a9474
2017-04-10 20:54:22 +08:00
Olli Pettay
c30a0ed796 Bug 1351303, make HTML parser to use faster atomization in main thread, r=froydnj
--HG--
extra : rebase_source : 60b5877f237644d99e97c19e8086e2302b2aad84
2017-04-03 23:13:55 +03:00
Olli Pettay
63bf3cc260 Bug 1352874 - Improve nsHtml5AtomTable performance, r=hsivonen
--HG--
extra : rebase_source : 138f6fa73a9f16610097175ca0e3b81bdce527fd
2017-04-03 13:12:05 +03:00
Olli Pettay
ac0ae74439 Bug 1352734, use memcmp for nsIAtom Equals to improve performance, r=hsivonen
--HG--
extra : rebase_source : 1a78863c52f088609a6edcb6b32bf16bc02a4118
2017-04-02 22:40:06 +03:00
Kris Maglione
7485b4ce5c Bug 1350049: Handle nsParser being finalized before resuming. r=hsivonen
This is a hybrid of the previous two approaches. The nsParser weak reference
sometimes stays alive after it's been detached from the document, after which
attempting to remove it throws. This stores a reference to the original
parser, and checks that it's still the current parser when it comes time to
resume.

MozReview-Commit-ID: 1JSi2FmPxt0

--HG--
extra : rebase_source : fc29ab7cd2074eda5f2c747ff7255a29bcc6f4a2
2017-03-28 15:24:26 -07:00
Xidorn Quan
082e026668 Bug 1345696 part 1 - Lots of fixup for the next patch. r=heycam
The next patch moves nsCSSFontFaceRule into a separate header, which
somehow affects lots of header dependencies. I'm not completely sure
why this happens, though.

MozReview-Commit-ID: KuXbsaX0NUd

--HG--
extra : rebase_source : cef91018964b5488c5031df8aada90aa7fa0ad51
2017-03-28 20:05:12 +11:00
Shih-Chiang Chien
306b7f81c6 Bug 1320744 - Part 3, implement nsIThreadRetargetableRequest in HttpChannelChild. r=mayhemer
MozReview-Commit-ID: FyLXlkQde3h

--HG--
extra : rebase_source : 88e9c56a73d268e1313c654c78a14e7b7d04fd9b
2017-03-20 17:29:07 +08:00
Andrea Marchesini
1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Kris Maglione
9713f3db8b Bug 1333990: Part 2c - Interrupt the flush loop after inserting document element. r=hsivonen
In order to asynchronously load content scripts that need to run very early in
the page load cycle, we need to be able to block further parsing from the
document-element-inserted observer, before any page scripts are loaded.
Interrupting the flush loop after the document element is inserted allows
the observers to run, and temporarily block further parsing if necessary.

MozReview-Commit-ID: A6D2T52Mlx4

--HG--
extra : rebase_source : 86f303a0bf298ac32b934290a7f960a2e1bac581
2017-03-16 18:50:28 -07:00
Kris Maglione
45b222c3b2 Bug 1333990: Part 2a - Allow multiple concurrent parser blockers. r=hsivonen
MozReview-Commit-ID: DYegic0RPWL

--HG--
extra : rebase_source : 959fae62e924ee9f27f00378a26f752bb0307bb1
2017-03-15 17:31:00 -07:00
Manish Goregaokar
b427546203 Bug 1296477 - Part 4: stylo: Update test expectations; r=heycam
MozReview-Commit-ID: 9fff2Pme3ey

--HG--
extra : rebase_source : 99a224155a876e25c99229ae48dc4a92dd420ae2
2017-03-12 21:12:08 -07:00
Joel Maher
246c210896 Bug 1345542 - add BUG_COMPONENT to parser/* files. r=hsivonen
MozReview-Commit-ID: 3ujsuyVNFlL
2017-03-10 12:31:45 -05:00
Manish Goregaokar
6a31ced725 Bug 1329093 - Part 5: Update test expectations; r=bz
MozReview-Commit-ID: 4mfC99WEQFG
2017-03-09 17:47:45 -08:00
Wei-Cheng Pan
8ac483c735 Bug 1310127 - Part 9: Use MOZ_MUST_USE in netwerk/protocol/http r=hsivonen
MozReview-Commit-ID: DtkBSXg0AQe

--HG--
extra : rebase_source : da8a008e6d0e1f9260c61bb0faa1ebbb2d72c7ec
2016-12-20 14:36:24 +08:00
David Major
ed0b8f8653 Bug 1344615: Remove nsXPCOMStrings.{h,cpp} r=bsmedberg
These are now dead code.

MozReview-Commit-ID: AClU0Qx3kmN

--HG--
extra : rebase_source : df83cf89292da1519bb26027c11e14923d5c54a0
2017-03-06 17:52:54 +13:00
David Major
058a3a25a4 Bug 1344615: Rewrite a few straggling users of NS_String* APIs. r=bsmedberg
I've moved the body of the APIs into the few remaining callers.

MozReview-Commit-ID: 9ALoSmQHkGM

--HG--
extra : rebase_source : e0e747dec23424446b18d53ab65e4fa262e16554
2017-03-06 17:52:09 +13:00
Masatoshi Kimura
7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Xidorn Quan
cfc5212d03 Bug 1313278 - Remove code of adding xml:base attribute in nsParserUtils::ParseFragment. r=hsivonen
MozReview-Commit-ID: Dyv9OlbVsaQ

--HG--
extra : rebase_source : 753104a3ac84dd79f568a46cbb954a0c8a07b142
2017-02-20 18:26:27 +11:00
Manish Goregaokar
260e308c26 Bug 1338936 - Part 4: stylo: Update reftest results; r=emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-19 14:03:48 -08:00
Sebastian Hengst
a793db28eb Backed out changeset 2d887234705f (bug 1338936) 2017-02-19 10:37:16 +01:00
Manish Goregaokar
a6f7209030 Bug 1338936 - Part 4: stylo: Update reftest results; r=emilio
MozReview-Commit-ID: 6wg32flypt7
2017-02-18 21:57:58 -08:00
Tom Tromey
5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00