Emilio Cobos Álvarez
9faca13ea4
Bug 1292930: stylo: Store the change hint generated by non-elements in their parent element. r=heycam
...
Otherwise, the parent style context doesn't have some inherited structs in the
cache, so it avoids comparing them entirely.
For example, the following example:
<p>Hey</p>
p { color: blue }
p:hover { color: red }
Wouldn't work as intended, because when calculating the change hint the
nsStyleColor struct in the element hasn't been accessed by layout (only the
child text frame's has), so it will report a change hint of 0 when hovering over
the paragraph, and we would ignore the nsChangeHint_ReconstructFrame generated
by the text node.
MozReview-Commit-ID: FW7Thhuh7LG
2016-08-10 22:01:35 -07:00
cku
c493fc33a4
Bug 1277788
- Part 2. Correct mochitest. r=dbaron.
...
MozReview-Commit-ID: CI7W7rPwirf
--HG--
extra : rebase_source : 8e9d78e537a5af4f51294de701faa97b35c15b66
2016-08-10 20:32:08 +08:00
cku
ed7978775a
Bug 1277788
- Part 1. Set initial value of mask-position as center. r=dbaron.
...
MozReview-Commit-ID: BflQ6tz8ZjM
--HG--
extra : rebase_source : 01b05533f5c791da0987af81d5cca276ec36e3f0
2016-08-10 16:10:45 +08:00
Andrew Magdy
ea762cae5a
Bug 1293000 - Replace Iterator() with Object.entries() in layout/. r=bz
...
--HG--
extra : rebase_source : c0c04c2fcb0ddb8b6e36e12c993da4003c0e0f50
2016-08-09 16:40:28 +02:00
Carsten "Tomcat" Book
4f6b9572f5
Merge mozilla-central to mozilla-inbound
2016-08-10 16:02:57 +02:00
Carsten "Tomcat" Book
553a2da922
merge mozilla-inbound to mozilla-central a=merge
2016-08-10 15:54:26 +02:00
cku
946629d6d2
Bug 1291280 - Part 4. Fix compile error after enable-mask-as-shorthand. r=me
...
MozReview-Commit-ID: Edy8CiMGCfK
--HG--
extra : rebase_source : d71674ac41d063f85d4658d683cdf315283643ea
extra : amend_source : e897c5cd5e7db049abfb4c9657038f7d820e2913
2016-08-10 19:37:55 +08:00
Sebastian Hengst
6ed5110691
Backed out changeset ff84b85aa1cb (bug 1291667) for asserting at nsRuleNode.cpp:1322 and failing mochitests and reftests. r=backout
2016-08-10 12:59:15 +02:00
Sebastian Hengst
e0e540f8a9
Backed out changeset 4453b10529a2 (bug 1291667)
2016-08-10 12:58:24 +02:00
Ravi Shankar
7d175e35ed
Bug 1291667 - Removed unused variant 'MozNone' from StyleUserSelect enum class; r=heycam
...
MozReview-Commit-ID: 7VxjNbunHC8
2016-08-10 13:57:32 +08:00
Ravi Shankar
049a72eb4c
Bug 1291667 - Change NS_STYLE_USER_SELECT_* constants to enum classes; r=Manishearth,heycam
...
MozReview-Commit-ID: 2qBMmQrtuR9
2016-08-10 13:57:32 +08:00
Nicholas Nethercote
e7f10a07fd
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Bobby Holley
cbb507cc3e
Bug 1292278 - Zero-index the namespace manager URIs. r=bz
...
The current setup here tries to "save" an entry in the list by checking
for the "None" namespace everywhere and special-casing it. We can simplify
this a lot by just adding the empty atom to the beginning of the array,
which is the value that servo uses to represent "namespace none" anyway.
2016-08-09 15:28:41 -07:00
cku
5ed26abff3
Bug 1269990 -Refuse to interpolate when animating between clip-path shape values that have different reference boxes. r=dholbert
...
MozReview-Commit-ID: JzWestyfGoT
--HG--
extra : rebase_source : 5507c15e8ea2488362f571fc63303d3003233a05
2016-08-08 18:13:42 +08:00
Ting-Yu Lin
b8899e7e16
Bug 1293604 - Replace NS_STYLE_FLOAT_* with StyleFloat enum class. r=dbaron
...
MozReview-Commit-ID: 4K6TyIm6cs3
--HG--
extra : rebase_source : b6210815b7c03d5634fdddf8080a3da4e090d194
2016-08-09 17:32:54 +08:00
cku
c219b1530b
Bug 1258623 - Correct mochitest r=dbaron
...
MozReview-Commit-ID: Iu8j2HlimwP
--HG--
extra : rebase_source : e8a48c2722cbca33e8d5bdbaa99ab9c25256bc69
2016-07-18 17:05:28 +08:00
cku
cddd3b562b
Bug 1258623 - Set initial value of mask-repeat as no-repeat. r=dbaron
...
MozReview-Commit-ID: 4VgvRXdVL2F
--HG--
extra : rebase_source : 80416c1d6a4fa8b3d4f022f879db50d31c79699b
2016-07-18 17:02:58 +08:00
Ting-Yu Lin
3e0b364f59
Bug 1288626 Part 8 - Add shape-outside support to style system. r=heycam
...
I have to move the definition of StyleBasicShape and StyleShapeSource prior to
where nsStyleDisplay::mShapeOutside is defined since the template struct need to
be fully defined before using as a member variable.
Use SetIdent() in CreatePrimitiveValueForBasicShapeOrURL() in
nsComputedDOMStyle.cpp per bug 1288626 comment 6.
MozReview-Commit-ID: 1KZS299CFul
--HG--
extra : rebase_source : d96276a1d514e1e42e1daf6f23e6bbfcb92d3bec
2016-07-22 15:40:01 +08:00
Ting-Yu Lin
213646c667
Bug 1288626 Part 7 - Rename StyleClipShapeSizing to StyleClipPathGeometryBox. r=heycam
...
Change to geometry box to match the name in the spec.
https://drafts.fxtf.org/css-masking-1/#the-clip-path
MozReview-Commit-ID: 8jDTynCkJ4A
--HG--
extra : rebase_source : c2e165e320c1341012b32b48bfb03b3c9b4f56c5
2016-07-28 13:45:43 +08:00
Ting-Yu Lin
9ccd71a0c4
Bug 1288626 Part 6 - Generalize StyleClipPath to be template struct StyleShapeSource. r=heycam
...
The only difference between clip-path and shape-outside is the reference box
enum, so I generalize StyleClipPath to be a template struct StyleShapeSource to
accommodate both. I'll have to move all the method definition to the header to
make the linker happy.
The only logic change is calling operator==() instead of EqualURIs to compare
urls in StyleShapeSource::operator==().
MozReview-Commit-ID: LOBGVVpnnB
--HG--
extra : rebase_source : eca561500f8f8529cf6e7b5c04372a51c1b62862
2016-08-04 13:43:08 +08:00
Ting-Yu Lin
4ad0c1bbe3
Bug 1288626 Part 5 - Rename StyleClipPathType to StyleShapeSourceType. r=heycam
...
StyleClipPathType will be generalized to StyleShapeSourceType to match this
change.
MozReview-Commit-ID: Igaad2EoSSt
--HG--
extra : rebase_source : 517d7b968e90f8f83e1223d33bd9d59000e034fd
2016-08-04 11:51:20 +08:00
Ting-Yu Lin
e8946e534d
Bug 1288626 Part 4 - Rename nsStyleClipPath to StyleClipPath. r=heycam
...
MozReview-Commit-ID: 2iT4elvtTGd
--HG--
extra : rebase_source : 7a7cb977e288c7fab33e7bb83ad97e30e53844d9
2016-07-28 10:29:33 +08:00
Ting-Yu Lin
74392a7dec
Bug 1288626 Part 3 - Rename nsStyleBasicShape to StyleBasicShape. r=heycam
...
MozReview-Commit-ID: 9NUKpZ4s4kG
--HG--
extra : rebase_source : 52f688a06e9af2733f128a874147276c735db2f1
2016-07-27 18:14:36 +08:00
Ting-Yu Lin
d5b06eeac7
Bug 1288626 Part 2 - Use basic shape enum class defined in nsStyleConsts.h. r=heycam
...
Rename StyleBasicShape to StyleBasicShapeType in nsStyleConsts.h, and
replace the old enum nsStyleBasicShape::Type by the enum class
StyleBasicShapeType.
Also, replace NS_ASSERTION() by MOZ_ASSERT().
MozReview-Commit-ID: EuS4ZtYKsk6
--HG--
extra : rebase_source : b6cb68f91c545cef283c97de222111d3acb64b02
2016-07-27 17:59:33 +08:00
Ting-Yu Lin
30bb6dcff2
Bug 1288626 Part 1 - Move nsBasicShape and nsStyleClipPath into mozilla namespace. r=heycam
...
MozReview-Commit-ID: D9wwa1rLUNa
--HG--
extra : rebase_source : 763c529a933e1a13a6a16a2d6a6d0439646bf012
2016-07-27 17:38:26 +08:00
cku
6aaf11c433
Bug 1288812 - Part 2. Correct test cases. r=heycam
...
MozReview-Commit-ID: 3Bdv2Lmg9kQ
--HG--
extra : rebase_source : 41bc2ee77a6768dcb358aa6b820336a0436c53de
2016-08-06 06:07:50 +08:00
cku
338774e2a3
Bug 1288812 - Part 1. Serialize just the fragment for local urls. r=heycam
...
MozReview-Commit-ID: 7FQ5hXgG3gg
--HG--
extra : rebase_source : cdb880b2cbfdd839d5eae47bd32a45ac48f060e5
2016-08-06 06:51:44 +08:00
cku
e39570c057
Bug 1291280 - Part 2. Declare nsStyleImageLayers::Layer::mSourceURI as FragmentOrURI r=heycam
...
MozReview-Commit-ID: 6KFb7MjlLqj
--HG--
extra : rebase_source : 24ac046807f12e3bea6717baab962de94d8fafc5
2016-08-06 06:38:44 +08:00
cku
6fc952395d
Bug 1291280 - Part 1. Move the definition of FragmentOrURL up. r=heycam
...
MozReview-Commit-ID: 3TtUtnE2ZBh
--HG--
extra : rebase_source : dd22cfab1da88550bb3c6fa8459827c53d6e5bd0
2016-08-06 06:16:50 +08:00
Mantaroh Yoshinaga
ae2e808431
Bug 911987 part 4 - Add onwebkitanimation** and onwebkittransitionend event handlers. r=smaug
...
Add the onwebkit prefixed event handler attributes of CSS-Animation
and CSS-Transition.
We need to support both content attributes and IDL attributes like
onanimation** attributes.
We should support attribute of lower-case and mixed-case. But currently
Gecko defined as mixed-case only. [1][2]
[1] https://dxr.mozilla.org/mozilla-central/rev/6608e5864780589b25d5421c3d3673ab30c4c318/dom/base/nsContentUtils.cpp#747
[2] https://dxr.mozilla.org/mozilla-central/rev/6608e5864780589b25d5421c3d3673ab30c4c318/dom/events/EventNameList.h#977
So we can't find the related Atom when we set content attributes as lower-case. [3]
[3] https://dxr.mozilla.org/mozilla-central/rev/6608e5864780589b25d5421c3d3673ab30c4c318/dom/base/nsGlobalWindow.h#818
In this patch, I add two Atoms in order to support mixed and lower case.
MozReview-Commit-ID: 8nOfVGQ8h7R
--HG--
extra : rebase_source : fe954eb5c79d305660bdc3ef95b14e55cdb34534
2016-08-05 14:12:38 +09:00
Mantaroh Yoshinaga
1dca1eac31
Bug 911987 part 3 - Add onwebkit prefixed event handler tests. r=birtles
...
MozReview-Commit-ID: B9SmsyXjLil
--HG--
extra : rebase_source : 8abbd729c099668d32d7c256a4d7435edc02fa40
2016-08-05 14:03:51 +09:00
Mantaroh Yoshinaga
8ca50a27e0
Bug 911987 part 2 - Add the onanimation** and ontransition end tests. r=birtles
...
MozReview-Commit-ID: 7n5d4c01T8p
--HG--
extra : rebase_source : 8c57dc62b499c0c54de8b98c1f87fadf50b1a01b
2016-08-05 08:12:15 +09:00
Wes Kocher
83c7e63697
Merge m-c to inbound, a=merge
2016-08-05 14:06:00 -07:00
cku
91b64119c1
Bug 1291283 - Use URLValueData::GetLocalURLFlag() to identify local-ref URI. r=dholbert
...
MozReview-Commit-ID: 2tXEGMhPCkn
--HG--
extra : rebase_source : 56dc684f75623e7f66d001945b41efccd65bf9ce
2016-08-04 23:50:22 +08:00
Cameron McCormack
152dfe9371
RuleNodeCacheConditions comment fix; no bug. (DONTBUILD)
...
MozReview-Commit-ID: A5V5mVbOB6T
2016-08-06 01:02:06 +10:00
Manish Goregaokar
f5ec6f7282
Bug 1290864 - Standardize serialization of <position> values in <basic-shape>; r=xidorn
...
MozReview-Commit-ID: KooW1OqtTUb
2016-08-05 19:48:13 +05:30
Manish Goregaokar
446ac79054
Bug 1290864 - Omit the default closest-side when serializing circle() and ellipse(); r=xidorn
...
MozReview-Commit-ID: HKwOL0YAK5E
2016-08-05 19:48:13 +05:30
Carsten "Tomcat" Book
389a3e0817
merge mozilla-inbound to mozilla-central a=merge
...
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Emilio Cobos Álvarez
1b5c331814
Bug 1290335: followup: Fix the ConsumeStoredChangeHint assertion. r=me
...
That will teach me to address review comments at night.
MozReview-Commit-ID: 9AGFoj2du7C
2016-08-03 19:26:37 -07:00
Bobby Holley
3b101f50f2
Bug 1291885 - Use leak logging in a few more places. r=emilio
2016-08-03 18:31:04 -07:00
Bobby Holley
c9097e6d3d
Bug 1291885 - Use dont_AddRef for already-addrefed ServoComputedValues. r=emilio
2016-08-03 18:31:02 -07:00
Bobby Holley
ba66557dc5
Bug 1291885 - Rejigger init hook and add shutdown hook. r=emilio
2016-08-03 18:31:01 -07:00
Bobby Holley
e20ac68912
Bug 1291891 - Implement ServoStyleSet::ReplaceSheets. r=emilio
2016-08-03 18:30:56 -07:00
Bobby Holley
3c38d97aa1
Bug 1291891 - Don't segfault on null parent context in ServoStyleSet::ResolveStyleForOtherNonElement. r=emilio
2016-08-03 18:30:54 -07:00
Emilio Cobos Álvarez
e09cb4a0e8
Bug 1291863: Add some type replacements to fix the Servo binding generation. r=bholley
...
MozReview-Commit-ID: 63eXtp2otFa
2016-08-03 15:11:15 -07:00
Emilio Cobos Álvarez
5011eb626b
Bug 1290335: stylo: Assert the snapshot is taken in ServoRestyleManager::AttributeChanged. r=heycam
...
Also fixes an embarrassing typo in the implementation of
ServoElementSnapshot::AddAttrs.
MozReview-Commit-ID: 7LHZVLo6j60
2016-08-03 15:11:15 -07:00
Emilio Cobos Álvarez
7f36b64101
Bug 1290335: stylo: Allow processing change hints generated from Servo. r=heycam
...
MozReview-Commit-ID: Alc0wcXvHcD
2016-08-03 15:11:15 -07:00
Emilio Cobos Álvarez
b2fc547e0a
Bug 1290335: Improve error message of the anonymous box assertion. r=heycam
...
MozReview-Commit-ID: 6cJSBz03Yji
2016-08-03 15:11:15 -07:00
Hiroyuki Ikezoe
fa5c6d91c3
Bug 1275142 - Allow a defect of restyle when the target element of SMIL animation is associated with an nsIFrame. r=birtles
...
Actually the check of restyle count after associating with the nsIFrame is
not a problem in this test. The purpose of this test is to check no restyles
when the target element has no associated nsIFrame.
We will fix the defect in bug 866411.
MozReview-Commit-ID: BFRJsbTGdkh
2016-08-04 06:18:48 +09:00
Bobby Holley
19f8c5faa5
Bug 1291390 - Make parsing mode an immutable property of the StyleSheet. r=heycam
2016-08-03 10:26:14 -07:00