Commit Graph

29684 Commits

Author SHA1 Message Date
Ting-Yu Lin
9c3f2c683a Bug 1097398 Part 2 - Add preferences to make carets always tilt. r=roc
This is to support Firefox Android L style carets assets that the two
carets always look like tilt.

This patch is derived from a WIP patch by Mark Capella
<markcapella@twcny.rr.com>

MozReview-Commit-ID: H3nKLz6HcpM
2016-02-16 16:55:28 +08:00
Ting-Yu Lin
fc55382935 Bug 1097398 Part 1 - Move AccessibleCaret default assets to layout/style/. r=nalexander, r=heycam
Default AccessibleCaret assets were in editor for historical reasons. Because
ua.css references them, I move them to layout/style/ and add them in jar.mn so
that we don't have to package them in various products.

MozReview-Commit-ID: 7K7qr9FK784
2016-02-16 16:55:28 +08:00
Nicholas Nethercote
d9302a2302 Bug 1252374 - Increase the chunk size of the displayListArena. r=roc.
It reduces the number of malloc/free calls and may reduce malloc heap
fragmentation.
2016-03-01 16:48:31 +11:00
Daniel Holbert
451731a17a Bug 1251848: Check StyleSheetHandles for being null-flavored before derefing them, in assertions within nsLayoutStylesheetCache::InvalidateSheet. r=bholley 2016-02-29 18:57:05 -08:00
Daniel Holbert
1157e75b66 Bug 1192376: Make nsImageBoxFrame check whether image size is available before trying to paint an image. r=seth 2016-02-29 15:09:13 -08:00
Daniel Holbert
cfda6970cc Bug 1247478: Rename FirstAdditionalAuthorSheet() to GetFirstAdditionalAuthorSheet(), since it can return null. r=heycam 2016-02-29 15:09:13 -08:00
Daniel Holbert
7eeafeb0b3 Bug 1245978 part 3: Drop unnecessary whitespace in NS_DECL_NSIDOCUMENTVIEWERPRINT macro. (whitespace only, no review) 2016-02-29 15:09:13 -08:00
Daniel Holbert
8e073283ae Bug 1245978 part 2: Drop redundant 'virtual' keyword from NS_DECL_NSIDOCUMENTVIEWERPRINT macro (which already includes 'override' keyword). r=heycam
This makes these lines shorter, and brings us into alignment with the Mozilla Coding Style Guide. See mozilla.dev.platform post "Proposal to alter the coding style to not require the usage of 'virtual' where 'override' is used" for more info.
2016-02-29 15:09:13 -08:00
Daniel Holbert
b6a008284e Bug 1245978 part 1: Make nsDocumentViewer::CreateStyleSet directly return the thing it creates. r=heycam 2016-02-29 15:09:13 -08:00
Jamie Nicol
14789eb829 Bug 1247098 - Take document resolution into account when computing root composition bounds for displayport base. r=tnikkel
nsLayoutUtils::CalculateCompositionSizeForFrame() is not affected by the
document resolution when called for the root content document's root
scroll frame. When determining the root composition bounds in order to
calculate a displayport base, if the frame used is the RCD-RSF we must
be sure to scale the bounds ourselves by the document resolution.

MozReview-Commit-ID: ATctmEYvWIJ
2016-02-24 15:30:10 +00:00
Jamie Nicol
563f1636ab Bug 1247098 - Mark nsIPresShell::GetResolution and nsPresContext::IsRootContentDocument as const. r=tnikkel
MozReview-Commit-ID: 5IXm4EUy7IN
2016-02-24 14:57:43 +00:00
Ting-Yu Lin
d1a7279479 Bug 1251915 - Ignore handling eTouchCancel events. r=roc
In my original design, I treat eTouchCancel to be like eTouchEnd for
ending a caret dragging procedure.

However when pointer events is enabled, it sents an eTouchCancel event
after the eTouchStart event whose primary usage is to be converted to
pointer events, which then cancels the normal caret dragging procedure.

Moreover, when pointer events is disabled, we don't get eTouchCancel
during a normal caret dragging scenario, so we don't really need to
handle eTouchCancel anyway.

MozReview-Commit-ID: GKju2Tp0q3Q
2016-02-29 15:51:44 +08:00
Ting-Yu Lin
bf5c47a427 Bug 1251915 - Correct AccessibleCaretEventHub coding style by clang-format. r=roc
This patch is generatedy by applying clang-format on
AccessibleCaretEventHub.cpp.

MozReview-Commit-ID: 10qPJ47CVMH
2016-02-29 15:51:44 +08:00
Bogdan Postelnicu
0ce4d93325 Bug 1252039 - corrected MOZ_ASSERT expression in SeparatorRequiredBetweenTokens. r=dbaron
MozReview-Commit-ID: 89XUK8hKSSE
2016-02-29 14:26:22 +02:00
Ting-Yu Lin
a75460fab2 Bug 1250560 - Fix crash in HandleTouchEvent. r=roc
When enabling "dom.w3c_pointer_events.enabled", we might get a
eTouchCancel event without any touch data. That is, aEvent->touches is
an empty array. We need to make sure it's non-empty before accessing
aEvent->touches[0].

MozReview-Commit-ID: BQUsrJjHHEl
2016-02-28 23:16:45 +08:00
David Anderson
4005143dc8 Ensure that content processes recreate rendering devices. (bug 1245765 part 8, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
David Anderson
d083cc0b75 Handle device resets by recreating the compositor, rather than the compositor IPDL stack. (bug 1245765 part 7, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
David Anderson
8385f81d79 Remove some static_casting in CompositorParent. (bug 1245765 part 5, r=mattwoodrow) 2016-02-29 01:53:14 -05:00
David Anderson
d34056d3c0 Fold nsDisplayBlendContainer constructors. (bug 1209278 part 3, r=mstange) 2016-02-29 01:45:43 -05:00
David Anderson
458b69cf21 Remove lazy scrollinfo hoisting introduced in bug 1193557. (bug 1209278 part 2, r=mstange) 2016-02-23 10:11:43 -08:00
David Anderson
a6a367262a Require mix-blend mode support in all compositors and layer managers. (bug 1209278 part 1, r=mstange) 2016-02-23 10:11:21 -08:00
Ryo Motozawa
094dffdb64 Bug 1244641 - Part 5: Add duration tests in layout/style/test. r=hiro
MozReview-Commit-ID: JrsLXlvjJa8
2016-02-27 06:41:40 +09:00
Robert O'Callahan
f9bda3ad37 Bug 1250143. Account for border/padding on outer <svg> elements in GeometryUtils. r=mats
MozReview-Commit-ID: KwEwnukNgeF
2016-02-25 23:54:09 +13:00
Bobby Holley
d4b0049e46 Bug 1251496 - Forward stylesheet management to RawServoStyleSet. r=heycam 2016-02-28 00:25:34 -08:00
Bobby Holley
f576acf3a2 Bug 1251496 - Introduce a servo-side data structure to represent the style set. r=heycam 2016-02-28 00:25:33 -08:00
Bobby Holley
52d85cb3d2 Bug 1251496 - Hoist existing RefPtrTraits into a ServoBindingHelpers.h. r=heycam
I think we're going to have a fair number of things like this, so I'd rather
put them all in one place, rather that defining them in the header for the first
consumer that uses the type.
2016-02-28 00:25:32 -08:00
Eric Rahm
8389d7ce84 Bug 1251770 - Remove remaining references to MOZILLA_XPCOMRT_API from layout. r=dbaron 2016-02-27 11:12:08 -08:00
Timothy Nikkel
3efd941979 Backed out changeset 93f722efcdec (bug 1145903) for causing bug 1251796. 2016-02-27 12:53:28 -06:00
Peter Van der Beken
6c442b47f3 Bug 1251655 - Remove support for JavaScript-DOM-class and JavaScript-DOM-interface. r=bz. 2016-02-14 15:59:48 +01:00
CJKu
e1845493f1 Bug 1251115 - Fix incorrect rendering result while mask path is not resolvable; r=mstange
MozReview-Commit-ID: JBl379AKnLU
2016-02-27 17:30:01 +08:00
Geoff Brown
3766e67fb8 Bug 1246797 - Avoid some new reftest failures on Android 4.3 with new AVD; r=kats 2016-02-26 14:01:12 -07:00
Geoff Brown
3e76179484 Bug 1146693 - Enable some layout/reftests/bugs tests on Android 4.3; r=me 2016-02-26 14:01:11 -07:00
Geoff Brown
cd03d85725 Bug 1146690 - Enable layout/reftests/margin-collapsing/block-float-1b.html on Android 4.3; r=me 2016-02-26 14:01:11 -07:00
Wes Kocher
a121514dce Backed out changeset 3eb7e82deef8 (bug 1251115) for android mask-composite-1b.html failures
MozReview-Commit-ID: HsTW97D6aSa
2016-02-26 10:06:22 -08:00
Benoit Girard
c25090b6c5 Bug 1145903 - Use CSS to shrinkToFit instead of a racy set of width/height on the image frame. r=tnikkel
MozReview-Commit-ID: GnBcPLMGKDS
2016-02-22 19:02:26 -05:00
Daniel Holbert
d3ddd59509 Bug 1251530: Use 'MakeUnique' instead of 'new' to populate UniquePtr variable in AddCSSValuePair. r=jwatt 2016-02-26 07:34:37 -08:00
Milan Sreckovic
c9f0009de1 Bug 1249640: Part 2 gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280 2016-02-22 14:23:00 +01:00
Seth Fowler
dcdb96e9e8 Bug 1171371 - On memory-pressure, remove any stale images from the visible images list. r=tn 2015-06-04 11:08:19 -07:00
Cameron McCormack
4e300cff63 Bug 1250790 - Don't try to add CSSStyleSheets from the style sheet service to a ServoStyleSet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
5169e78669 Bug 1250788 - Unified build fix. 2016-02-26 12:51:02 +11:00
Cameron McCormack
5a7d23444a Bug 1250788 - Part 6: Create ServoStyleSheets for the pref style sheet. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
cfa01bd070 Bug 1250788 - Part 5: Create and parse ServoStyleSheets in css::Loader. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
4e96f0bae8 Bug 1250788 - Part 4: Implement enough of ServoStyleSet to handle the UA style sheets being added to it. r=bholley 2016-02-26 12:51:02 +11:00
Cameron McCormack
ec406fed44 Bug 1250788 - Part 3.3: Implement enough of ServoStyleSheet for Loader to be able to create and parse one. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
c395014795 Bug 1250788 - Part 3.2: Factor out CSSStyleSheet members so they can be used by ServoStyleSheet. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
70bd01d9e9 Bug 1250788 - Part 3.1: Factor out CSSStyleSheetInner members so they can be used by ServoStyleSheet. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
afbfd86949 Bug 1250788 - Part 2: Expose IsCSSSheetType method. r=bholley 2016-02-26 12:51:01 +11:00
Cameron McCormack
a26714f725 Bug 1250788 - Part 1: Add interface to create and parse Servo style sheets. r=bholley 2016-02-26 12:51:01 +11:00
CJKu
1d244ee562 Bug 1251115 - Fix incorrect rendering result while mask path is not resolvable; r=mstange
MozReview-Commit-ID: GoYRMRPHbze
2016-02-26 02:32:10 +08:00
James Kitchener
afc6912cf5 Bug 1240799 - Apply axis height for mfrac elements without bar. r=fredw 2016-02-20 02:59:00 +01:00