Skip to content

Commit

Permalink
Merge inbound to mozilla-central. a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabal committed Jan 9, 2019
2 parents fb6ea97 + 353b3ac commit 5053031
Show file tree
Hide file tree
Showing 49 changed files with 201 additions and 136 deletions.
6 changes: 3 additions & 3 deletions dom/smil/SMILAnimationFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#include "SMILAnimationFunction.h"

#include "mozilla/dom/SVGAnimationElement.h"
#include "mozilla/Move.h"
#include "mozilla/SMILCSSValueType.h"
#include "mozilla/SMILNullType.h"
#include "mozilla/SMILParserUtils.h"
#include "mozilla/SMILTimedElement.h"
#include "mozilla/Move.h"
#include "nsISMILAttr.h"
#include "SMILCSSValueType.h"
#include "SMILNullType.h"
#include "nsAttrValueInlines.h"
#include "nsGkAtoms.h"
#include "nsCOMPtr.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILBoolType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SMILBOOLTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILCSSProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include "mozilla/dom/Element.h"
#include "mozilla/Move.h"
#include "mozilla/ServoBindings.h"
#include "mozilla/SMILCSSValueType.h"
#include "mozilla/StyleAnimationValue.h"
#include "nsDOMCSSAttrDeclaration.h"
#include "SMILCSSValueType.h"
#include "nsSMILValue.h"
#include "nsCSSProps.h"

Expand Down
4 changes: 2 additions & 2 deletions dom/smil/SMILCSSValueType.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#ifndef NS_SMILCSSVALUETYPE_H_
#define NS_SMILCSSVALUETYPE_H_

#include "SMILType.h"
#include "mozilla/Attributes.h"
#include "mozilla/SMILType.h"
#include "nsCSSPropertyID.h"
#include "nsStringFwd.h"
#include "mozilla/Attributes.h"

namespace mozilla {
struct AnimationValue;
Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILEnumType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SMILENUMTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILFloatType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define NS_SMILFLOATTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILIntegerType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SMILINTEGERTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILNullType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define NS_SMILNULLTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion dom/smil/SMILStringType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SMILSTRINGTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

namespace mozilla {

Expand Down
6 changes: 3 additions & 3 deletions dom/smil/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ EXPORTS += [
'nsSMILTimeValueSpecParams.h',
'nsSMILTypes.h',
'nsSMILValue.h',
'SMILCSSValueType.h',
'SMILNullType.h',
'SMILType.h',
]

EXPORTS.mozilla += [
'SMILAnimationController.h',
'SMILAnimationFunction.h',
'SMILCompositorTable.h',
'SMILCSSValueType.h',
'SMILKeySpline.h',
'SMILMilestone.h',
'SMILNullType.h',
'SMILParserUtils.h',
'SMILSetAnimationFunction.h',
'SMILTargetIdentifier.h',
'SMILTimeContainer.h',
'SMILTimedElement.h',
'SMILType.h',
]

EXPORTS.mozilla.dom += [
Expand Down
4 changes: 2 additions & 2 deletions dom/smil/nsSMILValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#ifndef NS_SMILVALUE_H_
#define NS_SMILVALUE_H_

#include "SMILType.h"
#include "SMILNullType.h"
#include "mozilla/SMILNullType.h"
#include "mozilla/SMILType.h"

/**
* Although objects of this type are generally only created on the stack and
Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGIntegerPairSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGINTEGERPAIRSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGLengthListSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGLENGTHLISTSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGMotionSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "mozilla/gfx/2D.h"
#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGNumberListSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGNUMBERLISTSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGNumberPairSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGNUMBERPAIRSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGOrientSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGORIENTSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGPathSegListSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGPATHSEGLISTSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGPointListSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGPOINTLISTSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGTransformListSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define SVGTRANSFORMLISTSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"
#include "nsTArray.h"

class nsSMILValue;
Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGViewBoxSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define MOZILLA_SVGVIEWBOXSMILTYPE_H_

#include "mozilla/Attributes.h"
#include "SMILType.h"
#include "mozilla/SMILType.h"

class nsSMILValue;

Expand Down
15 changes: 6 additions & 9 deletions editor/libeditor/EditorEventListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,12 @@ nsresult EditorEventListener::InstallToEditor() {
TrustedEventsAtCapture());
elmP->AddEventListenerByType(this, NS_LITERAL_STRING("click"),
TrustedEventsAtCapture());
// Focus event doesn't bubble so adding the listener to capturing phase.
// XXX Should we listen focus/blur events of system group too? Or should
// editor notified focus/blur of the element from nsFocusManager
// directly? Because if the event propagation is stopped by JS,
// editor cannot initialize selection as expected.
// Focus event doesn't bubble so adding the listener to capturing phase as
// system event group.
elmP->AddEventListenerByType(this, NS_LITERAL_STRING("blur"),
TrustedEventsAtCapture());
TrustedEventsAtSystemGroupCapture());
elmP->AddEventListenerByType(this, NS_LITERAL_STRING("focus"),
TrustedEventsAtCapture());
TrustedEventsAtSystemGroupCapture());
elmP->AddEventListenerByType(this, NS_LITERAL_STRING("text"),
TrustedEventsAtSystemGroupBubble());
elmP->AddEventListenerByType(this, NS_LITERAL_STRING("compositionstart"),
Expand Down Expand Up @@ -243,9 +240,9 @@ void EditorEventListener::UninstallFromEditor() {
elmP->RemoveEventListenerByType(this, NS_LITERAL_STRING("click"),
TrustedEventsAtCapture());
elmP->RemoveEventListenerByType(this, NS_LITERAL_STRING("blur"),
TrustedEventsAtCapture());
TrustedEventsAtSystemGroupCapture());
elmP->RemoveEventListenerByType(this, NS_LITERAL_STRING("focus"),
TrustedEventsAtCapture());
TrustedEventsAtSystemGroupCapture());
elmP->RemoveEventListenerByType(this, NS_LITERAL_STRING("text"),
TrustedEventsAtSystemGroupBubble());
elmP->RemoveEventListenerByType(this, NS_LITERAL_STRING("compositionstart"),
Expand Down
3 changes: 1 addition & 2 deletions js/src/gc/GC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,7 @@ static inline bool FinalizeTypedArenas(FreeOp* fop, Arena** src,
}

/*
* Finalize the list. On return, |al|'s cursor points to the first non-empty
* arena in the list (which may be null if all arenas are full).
* Finalize the list of areans.
*/
static bool FinalizeArenas(FreeOp* fop, Arena** src, SortedArenaList& dest,
AllocKind thingKind, SliceBudget& budget,
Expand Down
14 changes: 9 additions & 5 deletions layout/base/tests/bug1097242-1.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
<!DOCTYPE html>
<html class="reftest-wait">
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script>
function test() {
focus();
synthesizeMouseAtCenter(document.querySelector("span"), {});
}
function focused() {
document.documentElement.removeAttribute("class");
}
</script>
<body onload="setTimeout(test, 0)">
<body>
<div contenteditable spellcheck="false" onfocus="focused()"
style="outline: none">foo<span contenteditable=false
style="-moz-user-select: none">bar</span>baz</div>
<script>
SimpleTest.waitForFocus(() => {
SimpleTest.executeSoon(() => {
synthesizeMouseAtCenter(document.querySelector("span"), {});
});
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion layout/base/tests/bug1109968-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="start()">
<div onfocus="done()" contenteditable>foo<div contenteditable="false"><a href="#">bar</a></div>baz</div>
<div onfocus="setTimeout(done, 0)" contenteditable>foo<div contenteditable="false"><a href="#">bar</a></div>baz</div>
<script>
var div = document.querySelector("div");
function start() {
Expand Down
2 changes: 1 addition & 1 deletion layout/base/tests/bug1109968-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="start()">
<div onfocus="done()" contenteditable>foo<div contenteditable="false"><img src="image_rgrg-256x256.png" width="10" height="10"></div>bar</div>
<div onfocus="setTimeout(done, 0)" contenteditable>foo<div contenteditable="false"><img src="image_rgrg-256x256.png" width="10" height="10"></div>bar</div>
<script>
var div = document.querySelector("div");
function start() {
Expand Down
2 changes: 1 addition & 1 deletion layout/base/tests/bug1123067-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</head>
<body>

<div id="test1" contenteditable="true" spellcheck="false" onfocus="test()">This text is NOT selectable.</div>
<div id="test1" contenteditable="true" spellcheck="false" onfocus="setTimeout(test, 0)">This text is NOT selectable.</div>

<script>
SimpleTest.waitForFocus(runTests);
Expand Down
2 changes: 1 addition & 1 deletion layout/base/tests/bug1123067-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</head>
<body>

<div id="test1" contenteditable="true" spellcheck="false" onfocus="test()">This text is NOT selectable.</div>
<div id="test1" contenteditable="true" spellcheck="false" onfocus="setTimeout(test, 0)">This text is NOT selectable.</div>

<script>
SimpleTest.waitForFocus(runTests);
Expand Down
2 changes: 1 addition & 1 deletion layout/base/tests/bug1237236-2-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</head>
<body>

<pre contenteditable tabindex=1 onfocus="test1()" spellcheck="false">abc
<pre contenteditable tabindex=1 onfocus="setTimeout(test1, 0)" spellcheck="false">abc
def</pre>

<script>
Expand Down
2 changes: 1 addition & 1 deletion layout/base/tests/bug1258308-2-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</head>
<body>

<pre contenteditable tabindex=1 onfocus="test1()" spellcheck="false">abc
<pre contenteditable tabindex=1 onfocus="setTimeout(test1, 0)" spellcheck="false">abc
def
ghi</pre>

Expand Down
2 changes: 1 addition & 1 deletion layout/base/tests/bug1259949-2-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</head>
<body>

<pre contenteditable tabindex=1 onfocus="test1()" spellcheck="false">abcdef
<pre contenteditable tabindex=1 onfocus="setTimeout(test1, 0)" spellcheck="false">abcdef

</pre>

Expand Down
10 changes: 6 additions & 4 deletions layout/base/tests/bug1423331-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
<div id="editable" contenteditable></div>
<script>
SimpleTest.waitForFocus(function() {
let div = document.getElementById("editable");
synthesizeMouseAtCenter(div, {});
synthesizeMouseAtCenter(div, {});
document.documentElement.className ="";
SimpleTest.executeSoon(() => {
let div = document.getElementById("editable");
synthesizeMouseAtCenter(div, {});
synthesizeMouseAtCenter(div, {});
document.documentElement.className ="";
});
});
</script>
</html>
12 changes: 7 additions & 5 deletions layout/base/tests/bug1423331-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
<div id="editable" contenteditable></div>
<script>
SimpleTest.waitForFocus(function() {
let div = document.getElementById("editable");
synthesizeMouseAtCenter(div, {});
synthesizeMouseAtCenter(div, {});
sendString("xxx");
document.documentElement.className = "";
SimpleTest.executeSoon(() => {
let div = document.getElementById("editable");
synthesizeMouseAtCenter(div, {});
synthesizeMouseAtCenter(div, {});
sendString("xxx");
document.documentElement.className = "";
});
});
</script>
</html>
2 changes: 1 addition & 1 deletion layout/base/tests/bug989012-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
</head>
<body onload="start()">
<div onfocus="done()" contenteditable>foo<img alt="IMAGE">bar</div>
<div onfocus="setTimeout(done, 0)" contenteditable>foo<img alt="IMAGE">bar</div>
<script>
var div = document.querySelector("div");
function start() {
Expand Down
Loading

0 comments on commit 5053031

Please sign in to comment.