Commit Graph

23148 Commits

Author SHA1 Message Date
John Daggett
6fb8e38803 Bug 998869 part 5 - lazily load userfonts (non-linux). r=jfkthame 2014-09-25 12:16:54 +09:00
John Daggett
ec86ee2a35 Bug 998869 part 3 - rename userfont class methods. r=heycam 2014-09-25 12:16:53 +09:00
John Daggett
8d40c31973 Bug 998869 part 2 - switch to GetFontAt(0) to GetFirstValidFont(). r=jfkthame 2014-09-25 12:16:53 +09:00
Cameron McCormack
3483fb3f51 Bug 979133 - Add facility to log the restyle process. r=dbaron
Set the MOZ_DEBUG_RESTYLE environment variable and every restyle will have
detailed logging printed to stderr.  By default, restyles for animations are
not logged; you can include them by also setting MOZ_DEBUG_RESTYLE_ANIMATIONS.

If you wish to limit restyle logging to a particular change, you can call
nsPresContext::StartRestyleLogging() and nsPresContext::StopRestyleLogging()
at appropriate points.  (You might want to add a couple of helper methods
temporarily on nsIDocument and then expose them to your page with Web IDL
to make them easier to call.)  You do not need to have set MOZ_DEBUG_RESTYLE
for this to work.
2014-09-25 13:13:14 +10:00
Ryan VanderMeulen
6d82d4d17c Bug 1006040 - Bump the nsIPopupBoxObject UUID.
CLOSED TREE
2014-09-24 15:17:01 -04:00
Jonathan Kew
d45d23a70b Bug 1072348 - Test for justification of text including Plane 2 characters. r=roc 2014-09-24 18:11:05 +01:00
Jonathan Kew
6cfa32cd04 Bug 1072348 - Make IsJustifiableCharacter recognize Plane 2 ideographs. r=roc 2014-09-24 18:11:02 +01:00
Jonathan Kew
ddead92c2c Bug 1072106 - Reftest for justification of accented space characters. r=roc 2014-09-24 18:10:59 +01:00
Jonathan Kew
e4c76b908b Bug 1072106 - Be more careful about checking for spaces that should not have justification applied. r=roc 2014-09-24 18:10:56 +01:00
Neil Deakin
a444d834d7 Bug 1006040, animate star panel when pressing escape, add argument to hidePopup to allow indication of whether the popup is being cancelled or not, r=neil 2014-09-24 12:15:49 -04:00
Cameron McCormack
9f35e7d9c4 Bug 1072072 - Fix invalid @font-face rules in scoped-style-font-face.html. r=dbaron 2014-09-25 09:25:41 +10:00
Cameron McCormack
e37d13c897 Bug 1070316 - Factor out descriptor storage from nsCSSFontFaceStyleDecl. r=dbaron 2014-09-25 09:25:40 +10:00
William Chen
08892173dd Bug 1071934 - Use GetComposedDoc() in nsVideoFrame. r=smaug 2014-09-24 15:52:12 -07:00
Rik Cabanier
3d7133f4e1 Bug 1072100 - mix-blend-mode doesn't work when set in JS. r=dbaron 2014-09-24 09:48:00 -04:00
Ting-Yu Lin
1a70440095 Bug 1070851 - Make touch caret respect snapshotWindow(). r=roc
Avoid capture touch caret when the argument 'withCaret' is false in
snapshotWindow().
2014-09-24 01:26:00 -04:00
Mason Chang
010cc23678 Bug 1056340 - Clip viewport fixed position overflow to scroll frame. r=roc 2014-09-23 09:44:00 -04:00
Milan Sreckovic
d7d75e21f2 Bug 1068784 - Since the tiling is now not a simple pref choices, but it depends on some platform specific criteria, stop using the pref directly, and always use gfxPlatform::UseTiling instead. r=mwoodrow 2014-09-17 13:55:23 -04:00
Ehsan Akhgari
fd0ed02a89 Bug 1071573 - Fix more bad implicit constructors in layout; r=roc
--HG--
extra : rebase_source : a2632aead26e8481c307b54989ebba3642892f4c
2014-09-23 22:01:52 -04:00
Carsten "Tomcat" Book
bb6b27d528 Backed out changeset 4bb508b6f0c5 (bug 1041180) for XPCshell test failures 2014-09-24 13:13:20 +02:00
Christoph Kerschbaumer
72c6a44018 Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst) 2014-09-24 01:01:07 -07:00
Tim Nguyen
1a26e37638 Bug 1070657 - Simplify input[type=range] pseudo element CSS. r=dholbert 2014-09-23 11:37:00 +02:00
Rik Cabanier
92708c8d11 bug 1058044 - Background-blend-mode no longer blends correctly for <html> elements. r=roc 2014-09-23 19:50:00 +02:00
Cameron McCormack
0fe3c039e0 Bug 1070260 - Add public nsCSSParser function for parsing @font-face descriptors. r=jdaggett 2014-09-24 15:49:02 +10:00
Gabor Krizsanits
c82f46ba7c Bug 777674 - setCurrentNode for inDeepTreeWalker. r=bz 2014-09-24 07:20:43 +02:00
Robert O'Callahan
392c6d258b Bug 1062100. Part 3: When layers are flattened, let all the layers contribute opaqueness to the container layer, whatever their animated geometry roots are. r=tn
--HG--
extra : rebase_source : 255807b178162f62082da0fe2bed2315cf4c0581
2014-09-17 18:45:47 +12:00
Robert O'Callahan
140f2acdb4 Bug 1062100. Part 2: Assign clip rects to non-async-scrollable scrolled layers, and hide clipped layers if some non-moving layer covers their entire clip rect. r=mattwoodrow
--HG--
extra : rebase_source : bdc498a51f323d8536746e5a6faf6094a243a984
2014-09-06 16:16:33 +12:00
Wes Kocher
0300f6d4af Backed out 2 changesets (bug 1041180) for build bustage on a CLOSED TREE
Backed out changeset 1cfb645267a4 (bug 1041180)
Backed out changeset afc9903ff28f (bug 1041180)
2014-09-23 16:26:49 -07:00
Christoph Kerschbaumer
5453719121 Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst) 2014-09-23 09:46:54 -07:00
Markus Stange
5766e69173 Bug 1050493 - Invalidate ColorLayer bounds changes. r=roc
--HG--
extra : rebase_source : 2196e9cb32a41771b9078ec1e66dbb97ef430b71
2014-09-23 17:47:36 -04:00
Markus Stange
6f3f0d263a Bug 927892 - Use aDestPoint in dt->DrawFilter instead of a translation. r=Bas
--HG--
extra : rebase_source : 1a2e9d2ba45ddec8d8378c467f0eb39ea70f66a2
2014-09-23 17:47:20 -04:00
Daniel Holbert
1cc5671011 Bug 1066089: add crashtest. (test-only) 2014-09-23 14:12:54 -07:00
Georg Fritzsche
8bee7684a2 Bug 1067989 - Unify some more binary search uses. r=waldo 2014-09-17 15:46:24 +02:00
Kartikaya Gupta
cb12b9a2a4 Bug 1071367 - Fix the composition bounds for the root content document on OS X. r=tn
According to roc the content viewer position doesn't mean much; only the size is
set to anything meaningful. Therefore using the position from the content viewer
bounds is not a good idea, and we should use the position from the frame bounds
instead. This patch also changes GetContentViewerBounds to GetContentViewerSize
so that it's harder to accidentally use the position in other places.
2014-09-23 12:17:36 -04:00
Christoph Kerschbaumer
58b0ee2e6c Bug 1038756: Callsites creating a channel in /layout/style/ (r=dbaron) 2014-09-21 09:41:26 -07:00
Christoph Kerschbaumer
e0875ed39b Bug 1038756: Callsites creating a channel in /layout/mathml/ (r=roc) 2014-09-21 09:41:03 -07:00
Carsten "Tomcat" Book
aae9491196 merge b2g-inbound to mozilla-central a=merge 2014-09-22 13:06:09 +02:00
Vicamo Yang
70d97a65c3 Bug 1064231 - unify instantiation process for RIL services. r=smaug 2014-09-21 15:24:44 +08:00
Vicamo Yang
2d6a6e67a7 Bug 1063304 - 1/3: rename MobileConnectionGonkService.js to MobileConnectionService.js. r=echen
--HG--
rename : dom/mobileconnection/gonk/MobileConnectionGonkService.js => dom/mobileconnection/gonk/MobileConnectionService.js
rename : dom/mobileconnection/gonk/MobileConnectionGonkService.manifest => dom/mobileconnection/gonk/MobileConnectionService.manifest
rename : dom/mobileconnection/interfaces/nsIMobileConnectionGonkService.idl => dom/mobileconnection/gonk/nsIGonkMobileConnectionService.idl
2014-09-21 15:24:42 +08:00
Xidorn Quan
7d3a54f5b0 Bug 1069716 - Fix deficient CalcDifference of nsStyleList. r=heycam 2014-09-20 03:43:00 +02:00
Jonathan Kew
37cb84df41 Bug 1068027 - nsBidiPresUtils::RepositionFrame should not mix logical and physical directions. r=smontagu 2014-09-19 12:14:05 +01:00
James Kitchener
22538fb3ed Bug 687807 - Tests for stretchy MathML. r=fredw 2014-09-01 06:49:00 +02:00
James Kitchener
10b2afdfc7 Bug 687807 - Improvements to stretching of embellished operators. r=karlt 2014-09-19 20:13:00 +02:00
Simon Montagu
af6ab79eb4 Bug 1034337: Test deletion on direction-change boundaries with the pref bidi.edit.delete_immediately set to both true and false, r=ehsan 2014-09-19 00:18:47 -07:00
Boris Zbarsky
754b30ed09 Bug 1067504. Hook up print preview to our parent widget as needed, so it will actually paint. r=smaug 2014-09-15 14:15:15 -04:00
Cameron McCormack
9fdb2d1e99 Bug 1069065 - Cycle collect ImportRule. r=bzbarsky 2014-09-19 11:12:31 +10:00
Cameron McCormack
d878a27c92 Bug 1062732 - Avoid tracking descendants for restyling if we are force restyling the entire subtree. r=dbaron 2014-09-19 11:12:31 +10:00
Cameron McCormack
0eecbadff8 Bug 1063384 - Make RestyleTracker::DoProcessRestyle's restylesToProcess not have an mDescendants array in each element. r=dbaron 2014-09-19 11:12:30 +10:00
Wes Kocher
70cf8f9246 Merge inbound to m-c a=merge 2014-09-18 15:26:44 -07:00
Fabrice Desré
e0a4f5d5c8 backout bug 1029943 for performance regressions (see bug 1066515) 2014-09-18 10:31:20 -07:00
Kartikaya Gupta
c4a696699f Bug 1056423 - Adjust scrollbar clip rect also when accounting for async transform. r=botond 2014-09-18 13:19:20 -04:00
James Kitchener
483e50fd2c Bug 1066554 - Load stylesheets when instantiated in shadow-dom. r=bz 2014-09-18 06:54:00 -04:00
Markus Stange
279ead93c6 Bug 1066934 - Don't allow the snapped scrollbar thumb to extend past the scrollbar bounds. r=roc 2014-09-18 10:52:38 +02:00
Markus Stange
7515c1a0c6 Bug 944836 - Build a draggable region for the window based on the -moz-window-dragging property. r=roc 2014-09-18 10:52:27 +02:00
Markus Stange
31a78ec715 Bug 944836 - Add CSS property -moz-window-dragging: drag | no-drag. r=dbaron 2014-09-18 10:52:25 +02:00
Daniel Holbert
883faaa78e Bug 1063775, part 2: Document nsCSSValue*List::Clone() as being infallible, and remove null-checks on its result. r=dbaron 2014-09-17 22:04:20 -07:00
Daniel Holbert
0932ccb58a Bug 1063775, part 1: Remove unnecessary null-checks after 'new' in StyleAnimationValue.cpp. r=dbaron 2014-09-17 22:04:17 -07:00
Phil Ringnalda
dd7ebaded4 Back out 693507b38116 (bug 1041180) since it doesn't like compiling without its friend
CLOSED TREE
2014-09-25 21:18:01 -07:00
Masayuki Nakano
d5aafd2cdc Bug 1065835 part.4 Destroy TextComposition instance after handling synthesized compositionend event when synthesized events for a request to commit or cancel is caused by PresShell discarding native compositionend event r=smaug 2014-09-26 09:05:12 +09:00
Christoph Kerschbaumer
0de2d98100 Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst) 2014-09-25 16:10:28 -07:00
Seth Fowler
d954974fd8 Bug 1067191 (Part 2) - Add tests for zoom combined with tiled backgrounds. r=roc 2014-09-25 14:10:00 -07:00
Seth Fowler
c1d39bdedd Bug 1067191 (Part 1) - Use an unsnapped destination rect when computing transforms for image drawing. r=roc 2014-09-25 14:09:53 -07:00
Cameron McCormack
a2eb916c20 Bug 1069761 - Move AppendSerializedFontSrc to nsStyleUtil. r=jdaggett 2014-09-22 10:32:58 +10:00
Kartikaya Gupta
d1455a52d3 Bug 1068268 - Remove unnecessary forward-declare. r=botond 2014-09-20 22:27:17 -04:00
Boris Zbarsky
0e72d84ed9 Bug 958887 part 4. Generate property accessors on the CSS2Properties interface for the dashed-named CSS properties and float that use their actual property names. r=peterv 2014-09-19 22:58:27 -04:00
Alexander Surkov
5c70fbd3ab Bug 1040735 - DOM node reinsertion under anonymous content may trigger a11y child adoption, r=bz, tbdaunde, davidb 2014-09-19 20:02:30 -04:00
Aaron Klotz
680d0557ea Bug 1070042: Fix --debugger parameter in reftest/crashtest; r=ted 2014-09-19 14:49:34 -06:00
Jonathan Watt
08f4247393 Bug 1074128, part 3 - Update the Mozilla code to use AutoSaveTransform's new name. r=Bas 2014-09-29 18:32:36 +01:00
Jonathan Watt
3928b26c97 Bug 1071774 - Restore the current transform in a couple of places that fail to do so. r=seth 2014-09-29 18:26:31 +01:00
Dirk Schulze
92372d8ff6 Bug 1072894 - Implement polygon() parsing for clip-path. r=heycam 2014-09-28 01:56:00 +02:00
Xidorn Quan
4e5e3db472 Bug 966168 - Implement symbols() CSS function. r=dbaron 2014-09-25 02:19:00 +02:00
Maksim Lebedev
9081658dd4 Bug 977003 - Test for check async got/lostpointercapture events. r=smaug 2014-09-16 23:16:00 -04:00
Maksim Lebedev
62e4043739 Bug 977003 - Make async got/lostpointercapture events. r=smaug 2014-09-12 02:32:00 -04:00
Ryan VanderMeulen
39d4036b5e Merge inbound to m-c. a=merge 2014-09-17 14:38:33 -04:00
Daniel Holbert
392a8ec031 Bug 1065766 followup: add whitespace between @supports and open-paren, to address review comment. DONTBUILD because whitespace-only 2014-09-17 09:26:22 -07:00
Benoit Girard
58035b84c4 Bug 1065122 - Browser crash when using Timeline & Profiler at the same time. r=pbrosset 2014-09-17 12:00:33 -04:00
Carsten "Tomcat" Book
c709e0de4e Backed out changeset 5d8e56deff5a (bug 1063304) for suspicion of causing cppunit test failures
--HG--
rename : dom/mobileconnection/gonk/MobileConnectionService.js => dom/mobileconnection/gonk/MobileConnectionGonkService.js
rename : dom/mobileconnection/gonk/MobileConnectionService.manifest => dom/mobileconnection/gonk/MobileConnectionGonkService.manifest
rename : dom/mobileconnection/gonk/nsIGonkMobileConnectionService.idl => dom/mobileconnection/interfaces/nsIMobileConnectionGonkService.idl
2014-09-17 13:13:51 +02:00
Carsten "Tomcat" Book
15772b526b Backed out changeset 69870df1c72f (bug 1064231) 2014-09-17 13:12:59 +02:00
Kartikaya Gupta
70ac437a1b Bug 1009961 - Remove code to drop displayport if it exceeds B2G max texture size. r=tn
This code is no longer needed because tiling is enabled on all
scrollable layers on B2G, and so we only draw tile-sized chunks
of the displayport. Therefore the textures created will never
exceed the max texture size. On non-B2G platforms this code is
not used anyway so there is no effect. Going forward we should
always be enabling tiling before enabling APZ on new platforms
so it is unlikely that we will need this code.
2014-09-17 02:20:06 -04:00
Wes Kocher
48ee047035 Merge inbound to m-c a=merge 2014-09-16 17:06:43 -07:00
Vicamo Yang
10d2a22edf Bug 1064231 - unify instantiation process for RIL services. r=smaug 2014-09-16 21:20:24 +08:00
Vicamo Yang
efcb8e82b1 Bug 1063304 - 1/3: rename MobileConnectionGonkService.js to MobileConnectionService.js. r=echen
--HG--
rename : dom/mobileconnection/gonk/MobileConnectionGonkService.js => dom/mobileconnection/gonk/MobileConnectionService.js
rename : dom/mobileconnection/gonk/MobileConnectionGonkService.manifest => dom/mobileconnection/gonk/MobileConnectionService.manifest
rename : dom/mobileconnection/interfaces/nsIMobileConnectionGonkService.idl => dom/mobileconnection/gonk/nsIGonkMobileConnectionService.idl
2014-09-16 21:20:17 +08:00
Carsten "Tomcat" Book
65f0797937 Merge m-c to b2g-inbound 2014-09-16 07:10:24 +02:00
Wes Kocher
6e013e9ba9 Merge m-c to b-i a=merge 2014-09-15 16:47:02 -07:00
Max Vujovic
0becb5795e Bug 1066818 - Fix incorrect equation in hue-rotate matrix. r=mstange 2014-09-15 10:10:13 -07:00
Jonathan Kew
b7f032c0aa Bug 1066756 - Include characters with Unicode category Sk (modifier symbol) in double-click word selection. r=mats 2014-09-15 17:19:24 +01:00
Botond Ballo
fa7ad63cbf Bug 1066259 - Fix operators for multiplying/dividing a Coord by a Scale. r=kats
--HG--
extra : rebase_source : e6efebeac8b6628b24e1596fb5dc78187c64e325
2014-09-12 17:46:05 -04:00
Carsten "Tomcat" Book
a78ddf5c9e Merge m-c to m-i 2014-09-15 14:34:27 +02:00
Carsten "Tomcat" Book
f0eebab66f merge fx-team to mozilla-central a=merge 2014-09-15 14:29:01 +02:00
Jonathan Watt
7f41dd89c9 Bug 1067093 - Get rid of gfxContext::AntialiasMode in favor of Moz2D AntialiasMode. r=Bas 2014-09-15 12:10:30 +01:00
Markus Stange
a6c4f51799 Bug 1066270 - Simplify mTargetBounds usage. r=roc 2014-09-15 12:12:52 +02:00
Markus Stange
b5474436e3 Bug 1066270 - Don't crash when attempting to resolve a filter from an external resource document that hasn't undergone frame construction yet. r=roc 2014-09-15 12:12:52 +02:00
Markus Stange
968abaa2ac Bug 1066270 - Add nsFilterInstance::GetFilterDescription. r=roc 2014-09-15 12:12:52 +02:00
Markus Stange
41a36c3f5f Bug 1066270 - Allow aTargetFrame to be null in nsFilterInstance. r=roc 2014-09-15 12:12:51 +02:00
Markus Stange
ec117f0ce8 Bug 1066270 - Replace the nsIFrame* argument to nsCSSFilterInstance with a shadowFallbackColor argument. r=roc 2014-09-15 12:12:51 +02:00
Markus Stange
7b4270b9cb Bug 1066270 - Add an nsIContent* parameter to the nsFilterInstance constructor. r=roc 2014-09-15 12:12:51 +02:00
Markus Stange
f7f745ef44 Bug 1066270 - Resolve SVG lengths in nsSVGFilterInstance using the UserSpaceMetrics supplied in the nsFilterInstance constructor. r=roc 2014-09-15 12:12:50 +02:00
Markus Stange
fed787720a Bug 1066270 - Generalize SVG length resolution for nsIFrame-less consumers. r=roc 2014-09-15 12:12:50 +02:00
Markus Stange
e80f3d9dc1 Bug 1066270 - Add the ability to specify the filter chain in the nsFilterInstance constructor instead of always getting it from the frame. r=roc 2014-09-15 12:12:50 +02:00
Rik Cabanier
199016e453 Bug 1047477 - "Add support for all blend mode to feBlend". r=longsonr r=bz 2014-09-12 16:32:00 +02:00
Gijs Kruitbosch
aa2496c90a Bug 1044595 - fix default/active button text on OS X 10.10, r=mstange,jaws
--HG--
extra : rebase_source : c558491822fc158d44a127cfd5014bd5338d05f1
2014-09-12 00:31:15 +01:00
Jonathan Watt
bbb86f92e5 Bug 1054838 follow-up - Reorder the fuzzy annotations for radial-shape-farthest-corner-1b.html so that the azureQuartz annotation isn't overridden 2014-09-14 11:53:00 +01:00
Jonathan Watt
638a242696 Bug 1054838, part 5 - Mark some tests as now passing and add/change the fuzz on others post-mattwoodrow's Moz2Dification of gfxPattern 2014-09-14 10:59:54 +01:00
Matt Woodrow
e17c6e9c95 Bug 1054838, part 2 - Remove callers of DrawTarget::Mask. r=Bas,jwatt 2014-09-12 08:20:12 +01:00
L. David Baron
be858c5567 Bug 575675 - Remove assertion about aRelevantLinkVisited that isn't needed, and assumes that all link elements are styled with a style sheet that has :visited rules. r=bzbarsky 2014-09-13 06:17:37 -07:00
L. David Baron
9e53a17632 Bug 977991 patch 6 - Use the faster eRestyle_StyleAttribute path for style attribute changes. r=birtles 2014-09-13 06:17:37 -07:00
L. David Baron
3357a00e3a Bug 977991 patch 5 - Add eRestyle_ChangeAnimationPhase to switch between the with-animation and without-animation styles. r=birtles
This is an additional bit on nsRestyleHint that says that the restyling
operation should also perform all the work needed to switch between
style-without-animation and style-with-animation (based on
nsPresContext::IsProcessingAnimationStyleChange).  These concepts will
go away in bug 960465.

Note that we don't want this behavior for the animation-only style
update code (bug 996796, etc.), and I wanted to make this explicit so
that it was clear when it was happening, and so that it was clear what
code should be removed when we git rid of it.

This is the workaround needed to land bug 977991 prior to bug 960465.
(I think there's also a minor dependency in the other direction, so we
need a workaround one way or the other.)

Note that this depends on bug 1057231.
2014-09-13 06:17:37 -07:00
L. David Baron
b13927d25c Bug 977991 patch 4 - Ensure we don't try to use the style attribute optimization on pseudo-elements. r=birtles
This is needed because patch 1 and patch 3 did not add a mechanism that
allows restyling pseudo-elements, which would be substantially more work
and very little use (since the only case in which they have style
attributes is for our internal use on the ::-moz-color-swatch
pseudo-element).

RestyleUndisplayedChildren does not need the same fix because it's only
used on elements, and never on pseudo-elements or anonymous boxes.
2014-09-13 06:17:36 -07:00
L. David Baron
5e262a47d8 Bug 977991 patch 3 - Add ability for RuleNodeWithReplacement to replace the style attribute rule and its important rule. r=birtles
This allows posting a restyle that says that only the rule(s) from the
StyleAttrSheet cascade level will be replaced, which avoids running
selector matching.

Part 4 will ensure that we only invoke this code for element styles (and
not pseudo-element or anonymous box styles).  Despite that, I prefer
having the runtime check here as well given that it's a very simple way
to ensure we don't do something silly that might have security
implications.
2014-09-13 06:17:36 -07:00
L. David Baron
b4d8a65955 Bug 977991 patch 2 - Add mCheckForImportantRules to the information nsStyleSet::RuleNodeWithReplacement keeps about cascade levels. r=birtles
This is needed to support doing replacements of levels that can contain
important rules, which will happen in patch 3.
2014-09-13 06:17:36 -07:00
L. David Baron
133a7fac65 Bug 977991 patch 1 - Expose variant of RulesMatching on nsHTMLCSSStyleSheet that is less work to call. r=birtles
This allows nsStyleSet::RuleNodeWithReplacement to call it without
constructing an entire (and unnecessary) ElementRuleProcessorData, which
will happen in patch 3.
2014-09-13 06:17:36 -07:00
L. David Baron
81bd9c7023 Bug 977991 patch 0 - Add bitwise operators to nsRestyleHint. r=birtles
This avoids having to cast back to nsRestyleHint after using bitwise
operators, and allows |= (etc.).

(In the future we should consider converting nsRestyleHint, and probably
also nsChangeHint, to use MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS.)
2014-09-13 06:17:36 -07:00
L. David Baron
e5f6879ca0 Bug 1058346 patch 2 - Add eRestyle_SVGAttrAnimations and support it in nsStyleSet::RuleNodeWithReplacement. r=birtles
This allows posting a restyle that says that only the rule(s) from the
SVGAttrAnimationSheet cascade level will be replaced, which avoids running
selector matching.

This is needed to land bug 977991 prior to landing bug 960465, since
that requires replacing all levels that contain animations.

(I'll rename this to match the name determined in bug 1057231.)
2014-09-13 06:17:35 -07:00
L. David Baron
755d0056e6 Bug 1058346 patch 1 - Expose a simpler variant of RulesMatching from SVGAttrAnimationRuleProcessor. r=birtles
This allows nsStyleSet::RuleNodeWithReplacement to call it without
constructing an entire (and unnecessary) ElementRuleProcessorData, which
will happen in patch 2.
2014-09-13 06:17:35 -07:00
L. David Baron
f5ec865c19 Bug 1057231 patch 4 - Move SVG Attribute Animation rules from the pres hint level to their own cascade level. r=dholbert
This is only a very slight reordering of their position in the cascade,
since they were previously walked at the end of
nsSVGElement::WalkContentStyleRules, which was called near the end of
nsHTMLStyleSheet::RulesMatching.  So the only change should be that they
now take priority over the xml:lang rule added by nsHTMLStyleSheet, a
rule with which they do not interact.
2014-09-13 06:17:35 -07:00
L. David Baron
877da49af1 Bug 1057231 patch 3 - Add new cascade level for rules from SMIL Animation of SVG attributes to the style set. r=dholbert
I will fix the indentation of gCascadeLevels in bug 977991 patch 2,
which adds a member to each element of the array.

Note that this bumps the maximum sheetType from 8 to 9 (and number of
them from 9 to 10), which does not require updating
NS_RULE_NODE_LEVEL_MASK, since NS_RULE_NODE_LEVEL_MASK currently has 4
bits and allows a maximum of 15.
2014-09-13 06:17:35 -07:00
L. David Baron
9842f42ffb Bug 1057231 patch 1 - Add a rule processor class for rules from SMIL Animation of SVG attributes. r=dholbert
This patch series (to move SVG Animation rules to their own level of the
cascade) is needed so that they can participate in the mechanism for
updating only animation styles to the present time without touching any
other styles.

In theory, this should have been done as part of 996796 or even as part
of prior work on off main thread animations, except that it doesn't seem
possible to have SVG Animations and CSS Transitions interacting on the
same element and have that element's style out of date, which means it
wasn't necessary for the existing code to update only animation styles.

However, bug 960465 will use this similar mechanism as the new mechanism
for making sure transitions start in a reasonable way (replacing the
mechanism of phases, going from style without animation to style with
animation via nsPresContext::IsProcessingAnimationStyleChange).  This
will require that, for SVG Animations to continue interacting correctly
with CSS Transitions, that they have their own cascade level so that
they can participate in RestyleManager::UpdateOnlyAnimationStyles.

Additionally, this is needed even sooner, for bug 977991, which needs
(temporarily, until bug 960465 lands) a mechanism for updating the style
attribute style *and* all animation-phase-dependent styles.

Yes, it's a little bit annoying to have to have another class, and
another object per-document for this, but that's currently what comes
with being a level of the cascade.  But it's one class and one object
per document, and I believe there will be substantial benefits to having
all rule processor levels be only-animation-related or
not-animation-related (except for the style attribute level, which is
simple enough that it isn't needed yet).
2014-09-13 06:17:34 -07:00
L. David Baron
fb077873cf Bug 1066911 - Allow eRestyle_Force{,Descendants} in RuleNodeWithReplacement. r=heycam
This is fine since the assertion is just checking that we're not calling
RuleNodeWithReplacement in cases when stronger restyling (i.e.,
restyling that does more work) is needed; the new eRestyle_Force and
eRestyle_ForceDescendants flags control whether we restyle at all.

This probably should have been done in bug 931668 (since bug 996796
landed before bug 931668, although not before the patches were written),
but it doesn't actually show up in our test suite until bug 977991 (or
maybe slightly earlier in bug 1057231 or bug 1058346).
2014-09-13 06:17:34 -07:00
Jonathan Watt
a663dcd42b Bug 1067977 - Rename nsContextBoxBlur's 'blur' member to make it possible to find and reason about the code. r=dholbert 2014-09-17 08:46:39 +01:00
Daniel Holbert
a2631eee53 Bug 1065766: Add UA stylesheet rule to preserve <video> centering-by-default behavior, using "object-fit: contain". r=heycam 2014-09-16 23:19:59 -07:00
Daniel Holbert
af148676ec Bug 1067634: Wrap "will-change" decl in @supports rule, to prevent browser console spam while it's disabled by default. r=heycam 2014-09-16 23:19:58 -07:00
Milan Sreckovic
9b239f2074 Bug 1060431 - Mention in the async disabled message that the visual > max could also be the cause. r=tn 2014-09-15 12:44:21 -04:00
Daniel Holbert
23d30ae6d3 Bug 1066089: Clear dependent data from CustomCounterStyle when it gets dropped from table. f=xidorn r=dbaron 2014-09-16 15:05:04 -07:00
Cameron McCormack
4a6bd9a952 Bug 1041512 - Mark intrinsic widths dirty on a style change even if the frame hasn't had its first reflow yet. r=dbaron 2014-09-17 10:40:11 +10:00
Mats Palmgren
a68692d3b5 Bug 1067088 - Use aBorderArea when not skipping any sides (e.g. ::first-letter), not the joined border area. r=roc 2014-09-17 00:36:57 +00:00
Seth Fowler
2a76b50bf9 Bug 1064855 - Handle zero area destination rects during image snapping. r=roc
--HG--
extra : rebase_source : 8b0c9cb123577fc19359036f466a12aab7148443
2014-09-16 16:18:49 -07:00
Robert O'Callahan
c08d60faea Bug 1066591. Backout c43865439dd9 (bug 1066211) to fix regression.
--HG--
extra : rebase_source : bd821aade3b17d7eb4cd6acb5f56b46a343eb239
2014-09-13 11:56:16 +12:00
Daniel Holbert
e667af4a7f (no bug) Drop no-longer-correct "bitmap" qualifier from nsImageFrame header-comment. rs=tn
(It's no longer correct because we use nsImageFrame to render e.g. <img src="whatever.svg">, which is not bitmap-flavored at all.)
2014-09-12 13:15:24 -07:00
Daniel Holbert
e386c5a0b1 Bug 1066805: Drop unused parameter from nsImageFrame::EnsureIntrinsicSizeAndRatio(). r=tn 2014-09-12 13:15:23 -07:00
Max Vujovic
c9c2c2f234 Bug 1065606 - Use unclipped primitive subregion to calculate image transform in SVGFEImageElement::GetPrimitiveDescription. r=mstange 2014-09-12 10:44:14 -07:00
Max Vujovic
fa14a7b54a Bug 1058776 - Add a test that invalid CSS filter functions don't change the rendering of the target element. r=mstange 2014-09-12 10:44:13 -07:00
Nick Lebedev
0af4543b24 Bug 1024808 - Part 1: Remove OOM null checks of CounterListFor return result. r=dholbert 2014-09-12 01:25:00 -04:00
Nick Lebedev
2a05814c2f Bug 1024808 - Part 0: Clean up trailing whitespaces. r=dholberty 2014-09-12 01:24:00 -04:00
Botond Ballo
44ca398917 Bug 1065008 - Reftest for compositor culling bug. r=roc
--HG--
extra : rebase_source : 77c5343a91dc05b6d0a4dac99503331f4cfdb3e7
2014-09-11 18:40:19 -04:00
Matt Woodrow
b981b9db8d Bug 1044702 - Use Moz2D source clipping when we can. r=Bas
--HG--
extra : rebase_source : 24eb333909db5278ff1a8babf9b4b907650695fa
2014-09-12 17:18:21 +12:00
Alexandre Lissy
da1c5ff66a Bug 1066044 - Make Mochitest pass on Mulet r=jmaher,ochameau
To get Mochitest green with Mulet, we need to disable a couple more of
tests. We also need to disable the crash on non local connections, as it
is being done for runtestsb2g.
2014-09-11 22:59:00 +02:00
Alessio Placitelli
77aeb04740 Bug 928397 - Enable xpcshell-test debugging on Windows platforms and default debugger detection. r=ted.mielczarek 2014-07-02 13:52:00 +02:00
Ryan VanderMeulen
603c8eca01 Backed out changeset 3afb6445a73c (bug 1066044) for B2G desktop mochitest perma-fail. 2014-09-11 20:38:06 -04:00
Alexandre Lissy
4f5cb20e91 Bug 1066044 - Make Mochitest pass on Mulet. r=jmaher, r=ochameau
To get Mochitest green with Mulet, we need to disable a couple more of
tests. We also need to disable the crash on non local connections, as it
is being done for runtestsb2g.
2014-09-11 07:37:00 -04:00
Cameron McCormack
737d1f11ae Bug 1065257 - Assorted cleanups in nsLayoutStyleSheetCache. r=bzbarsky 2014-09-12 07:41:35 +10:00
Daniel Holbert
0f09db7a97 Bug 1065646: Use GetContentRectRelativeToSelf() instead of GetContentRect() - GetPosition(), in layout code. r=tn 2014-09-11 14:29:59 -07:00
Ehsan Akhgari
728da459d2 Bug 1065667 - Fix more bad implicit ctors in layout; r=roc 2014-09-11 15:41:21 -04:00
Ehsan Akhgari
0ffd60bc10 Bug 1068058 - Update Selection.containsNode according to the spec; r=smaug
Specifically, this makes the first argument non-nullable.
2014-09-16 15:11:52 -04:00
Benoit Girard
37b549af2f Bug 1056944 - Create an image layer if opaque image covers previous display items. r=mwoodrow
--HG--
extra : rebase_source : d561b6e215d654560f89acddec1663517ca4e8ce
2014-09-04 01:02:27 -04:00
Daniel Holbert
1c392baed1 (no bug) Tweak a comment about eContain & eCover to explicitly mention their specified-style equivalents, for better mxr searchability. comment-only, DONTBUILD 2014-09-16 10:55:13 -07:00
Jonathan Kew
8a86870edc bug 1057331 - add orientation flags to gfxShapedText/gfxTextRun and to glyph runs within the text run, and split glyph runs on orientation changes. r=jdaggett 2014-09-16 12:25:45 +01:00
Jonathan Kew
79f0e0881f bug 1057329 - update the values of text-orientation to match current css-writing-modes draft (omitting use-glyph-orientation and [for now] sideways and sideways-left). r=jdaggett 2014-09-16 11:12:00 +01:00
Jonathan Kew
08babb6a11 bug 1066043 - split gfxFont.cpp and .h into more manageably-sized pieces. r=jdaggett
--HG--
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxFontEntry.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxFontEntry.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxGlyphExtents.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxGlyphExtents.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxTextRun.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxTextRun.h
2014-09-16 10:58:12 +01:00
Carsten "Tomcat" Book
8d4febe0fa Backed out changeset ec335dbccfbd (bug 1067748) for reftest failures 2014-09-16 09:31:20 +02:00
Cameron McCormack
1e93de37df Bug 1045895 - Pass out provider frame from RestyleSelf to avoid calling GetParentStyleContextFrame again. r=dbaron 2014-09-10 14:42:03 +10:00
Cameron McCormack
9b086dd079 Bug 1065868 - Make nsStyleMargin::MaxDifference return the right bits. r=dbaron 2014-09-16 16:54:33 +10:00
Ting-Yu Lin
5d804d7cd5 Bug 1065244 - Part 3 - Fix SelectionCarets::SelectWord() is hard to trigger. f=mtseng, r=roc
Fix this issue by deploying the same logic as selection carets in
TouchCaret::IsOnTouchCaret().
2014-09-15 02:58:00 +02:00
Ting-Yu Lin
b98446503e Bug 1065244 - Part 2 - Refactor event point on frame logic for SelectionCarets. f=mtseng, r=roc 2014-09-15 02:57:00 +02:00
Ting-Yu Lin
88ac0a85b6 Bug 1065244 - Part 1 - Add GetRectRelativeToFrame to nsLayoutUtils. f=mtseng, r=roc 2014-09-15 17:07:00 +02:00
Robert O'Callahan
c6730b1117 Bug 1051636. Don't mark video ImageLayers as opaque. r=tn
The visible region of the layer is not necessarily restricted to the image
that is will be rendered.

Also, we don't know for sure an opaque video frame is going to appear.

--HG--
extra : rebase_source : c6e0f1f0a49b5722b917718634439f045e8a535d
2014-09-16 17:04:53 +12:00
Robert O'Callahan
9b4d6f2a19 Bug 1067748. When a solid-color display item covers everything else in its layer, make it a ColorLayer. r=tn
--HG--
extra : rebase_source : e0fdaddfd24c59531ffef865b46f948ba203acaa
2014-09-16 16:27:14 +12:00
Kartikaya Gupta
059cd657b5 Bug 1013385 - Add some tests for checkerboarding. r=mattwoodrow,BenWa 2014-09-15 16:10:14 -04:00
Kartikaya Gupta
6b0862f4b0 Bug 1013385 - Add the layer bounds to the layers API and use it for checkerboarding. r=mattwoodrow,BenWa 2014-09-15 16:09:52 -04:00
Jonathan Watt
4c0a7bbbef Bug 1064084, part 5 - Convert all consumers of gfxContext::NudgeCurrentMatrixToIntegers()/MultiplyAndNudgeToIntegers() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt
9bc0f0cdf3 Bug 1064084, part 4 - Convert all consumers of gfxContext::IdentityMatrix() to use gfxContext::SetMatrix(). r=Bas 2014-09-11 07:57:39 +01:00
Jonathan Watt
fa8c7ec8a5 Bug 1064084, part 1 - Convert all consumers of gfxContext::Translate() to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:57:38 +01:00
Jonathan Watt
f794fc62f9 Bug 1064082 - Get rid of nsRenderingContext's PushState and PopState methods. r=Bas 2014-09-11 07:48:10 +01:00
Jonathan Watt
0e8ac8ac8a Bug 1064056, part 2 - Convert nsRenderingContext::Translate() consumers to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:48:10 +01:00
Jonathan Watt
5d89db4376 Bug 1064056, part 1 - Convert nsRenderingContext::AutoPushTranslation consumers to use gfxContext::SetMatrix()/Multiply(). r=Bas 2014-09-11 07:48:09 +01:00
Makoto Kato
ea5d044e00 Bug 1065261 - SectionCaret might not appears if 2.25dppx or higher. r=mtseng 2014-09-11 15:44:54 +09:00
Ryan VanderMeulen
9d54d5a7be Merge m-c to inbound. a=merge
CLOSED TREE
2014-09-10 18:36:26 -04:00
Ryan VanderMeulen
11ebe83ace Bug 1023323 - Mark 413361-1.html as fuzzy on Android 4.0. a=test-only 2014-09-10 18:03:57 -04:00
Jonathan Watt
b3072839ca Bug 1065031, part 2 - Changes to Moz2D consuming code to update callers of Moz2D Matrix's Translate, Scale and Rotate methods to use these methods' new names. r=Bas 2014-09-10 18:29:35 +01:00
Max Vujovic
c2f3353599 Bug 1058779 - Add a test for CSS Filters + -moz-element. r=mstange 2014-09-10 10:26:50 -07:00
Max Vujovic
44be2b8eeb Bug 1058765 - Add a test for chaining different CSS filter functions together. r=mstange 2014-09-10 10:26:50 -07:00
Max Vujovic
9d970270a4 Bug 1058783 - Add rendering tests for blur radius in ems and rems. r=mstange 2014-09-10 10:26:50 -07:00
Max Vujovic
248f710550 Bug 1058807 - Remove nsIFrame include from nsSVGFilterInstance.h. r=mstange 2014-09-10 10:26:49 -07:00
Markus Stange
d188509174 Bug 1065344 - Remove unnecessary mAppUnitsPerCSSPx field. r=mvujovic 2014-09-10 19:06:10 +02:00
Markus Stange
b5e1633afb Bug 1065344 - Only construct the FilterDescription once. r=mvujovic 2014-09-10 19:06:07 +02:00
Markus Stange
022913c6c1 Bug 1065344 - mUserSpaceBounds shouldn't change its meaning temporarily. r=mvujovic 2014-09-10 19:06:05 +02:00
Mats Palmgren
61d6dbda2d Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees. 2014-09-10 17:07:36 +00:00
Mats Palmgren
6cd63fde75 Bug 739396, part 0 - Make nsDocumentViewer use mozilla::dom::Selection internally instead of nsISelection. 2014-09-10 17:07:36 +00:00
Ryan VanderMeulen
16b6ce0a6b Backed out 3 changesets (bug 739396) for Mulet perma-fail on a CLOSED TREE.
Backed out changeset 299911e6983b (bug 739396)
Backed out changeset de11af3e0964 (bug 739396)
Backed out changeset e274cb276cc5 (bug 739396)
2014-09-10 12:21:58 -04:00
Ting-Yu Lin
58715b60bd Bug 1064790 - Give S/SN/SF/SN meaningful names. r=bz
Also fix gfxRect usage in "PrintAsString" as Bug 641426 part 2 did.
2014-09-09 21:08:00 -04:00
Jonathan Watt
581078dcb7 Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas 2014-09-10 14:26:12 +01:00
Mats Palmgren
3b0200e62f Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees. 2014-09-10 13:07:43 +00:00
Mats Palmgren
5405e219b8 Bug 739396, part 0 - Make nsDocumentViewer use mozilla::dom::Selection internally instead of nsISelection. 2014-09-10 13:07:43 +00:00
Abhishek Arya
b8d056fcf2 Bug 1061027 - crashtest. 2014-09-10 13:07:43 +00:00
Abhishek Arya
7d3c8167ac Bug 1061028 - crashtest. 2014-09-10 13:07:43 +00:00
Carsten "Tomcat" Book
d9c5bea4e5 Backed out changeset e6b766d8a815 (bug 1065127) for bustage 2014-09-10 14:30:36 +02:00
Jonathan Watt
cc5bf95ddf Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas
--HG--
extra : rebase_source : ef075258c31973c4943b9b3a9229685a9bb83917
2014-09-10 11:45:42 +01:00
Jonathan Watt
1187a32f01 Bug 1062249 - Vastly simplify the various GetCanvasTM methods. r=longsonr
--HG--
extra : rebase_source : b0ba980a34c720bd3c3f3c95733083e92f0c0513
2014-09-08 12:28:50 +01:00
Markus Stange
fe1b2e0166 Bug 1064842 - Add ImplCycleCollectionTraverse/Unlink implementations for nsReferencedElement so that nsSVGFilterReference can use the shorter NS_IMPL_CYCLE_COLLECTION macro. r=roc 2014-09-10 12:18:57 +02:00
Daniel Holbert
41bce9ed30 Bug 1065141: Clarify language in mochitest messages about whether OMTA is working. r=birtles 2014-09-09 22:31:56 -07:00
Nathan Froyd
b22d96e512 Bug 1061794 - move -Wshadow flags additions in layout/style/ to moz.build; r=mshal 2014-07-28 11:26:16 -04:00
Robert O'Callahan
bf35c76776 Bug 1063052. NS_RUNTIMEABORT if a builtin stylesheet fails to load. r=heycam 2014-09-10 13:10:18 +12:00
Robert O'Callahan
7d98b5c133 Bug 1061045. Remove dirtyRect save/restore from Enter/LeavePresShell since they're not needed anymore. r=tn 2014-09-06 16:16:34 +12:00
Robert O'Callahan
e951a951fe Bug 1062100. Part 2: Assign clip rects to non-async-scrollable scrolled layers, and hide clipped layers if some non-moving layer covers their entire clip rect. r=mattwoodrow 2014-09-06 16:16:33 +12:00
Robert O'Callahan
d193c9957e Bug 1062100. Part 1: Remove ItemCoversScrollableArea. r=mattwoodrow
This isn't really part of this bug but it simplifies related code.
2014-09-06 16:16:33 +12:00
Robert O'Callahan
e95fe1d976 Bug 1050159. Apply correct dirty rect when AddCanvasBackgroundColorItem creates an nsDisplaySolidColor. r=mattwoodrow
--HG--
extra : rebase_source : a762a87108b7b7a36664a5590b43fbd28b4842d1
2014-09-06 16:16:33 +12:00
Daniel Holbert
fe4e8d9647 Bug 1055285 part 4: Extend test_transitions_per_property.html with a few more scenarios for background-position & object-position transitions. (no review) 2014-09-09 18:09:32 -07:00
Daniel Holbert
8829bbabc7 Bug 1055285 part 3: Implement animation for 'object-position' property. r=heycam 2014-09-09 18:09:32 -07:00
Daniel Holbert
471ab7f102 Bug 1055285 part 2: Implement CSS parsing & computation (but not animation) for 'object-position' property. r=heycam 2014-09-09 18:09:32 -07:00
Daniel Holbert
751fe17d2f Bug 1055285 part 1: Implement CSS parsing & computation for 'object-fit' property. r=heycam 2014-09-09 18:09:32 -07:00
Ryan VanderMeulen
9a0967f21f Merge m-c to inbound. a=merge 2014-09-09 19:29:28 -04:00
Mats Palmgren
5bb60f3ed8 Bug 1061468 - Test that the caret is not rendered after a focused contenteditable element is removed from the document. 2014-09-09 23:27:56 +00:00