Граф коммитов

8071 Коммитов

Автор SHA1 Сообщение Дата
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Hiroyuki Ikezoe 3525eca033 Bug 1197620 - Part 1 - Stop all animations in destroyed frames. r=bbirtles 2015-09-14 23:42:00 +02:00
Christoph Kerschbaumer 1e5ee64415 Bug 1195162 - Use channel->ascynOpen2 dom/xbl/nsXBLService.cpp (r=sicking) 2015-09-14 18:59:35 -07:00
John Daggett adb4b8ada8 Bug 953408 - unprefix hyphens property. r=heycam 2015-09-15 10:09:30 +09:00
Masayuki Nakano e11becb130 Bug 895274 part.252 Rename NS_TRANSITION_END to eTransitionEnd r=smaug 2015-09-15 00:14:36 +09:00
Xidorn Quan 7fd39128eb Bug 1164279 - Disable font-variant-east-asian: ruby for <rt> on Windows. r=jfkthame
--HG--
extra : source : f8fc9af32ee1bb86cc85e156a4c2a5f89fc361dc
2015-09-14 17:35:13 +08:00
Michael Layzell 0097c41e01 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Cameron McCormack 5db8d16779 Bug 1202512 - Part 3: Restyle elements with attribute/state changes if we find a conditionally restyled ancestor while selector matching up the tree. r=bzbarsky 2015-09-12 19:08:10 +10:00
Cameron McCormack 13249de7f6 Bug 1202512 - Part 2: Make SelectorMatchesTree take a flags argument. r=bzbarsky 2015-09-12 19:08:10 +10:00
Jonathan Kew e61857780b Bug 1099557 - Make -moz-control-character-visibility default to 'visible' rather than 'hidden', so that spurious control characters are rendered as hexboxes. r=dbaron 2015-09-11 16:47:03 +01:00
Xidorn Quan 08d16d982c Bug 1202908 part 2 - Remove CSS_PROPERTY_ALWAYS_ENABLED_IN_CHROME_OR_CERTIFIED_APP. r=dbaron
--HG--
extra : source : df99e17db72d36a9e7b085c35818b4b4ca8a410d
2015-09-11 16:00:10 +10:00
Xidorn Quan 6c0a3ef75f Bug 1202908 part 1 - Remove pref layout.css.will-change.enabled. r=dbaron
--HG--
extra : source : 8d109efd4ab3b60644e7251900151d38cb70862c
2015-09-11 16:00:10 +10:00
Mats Palmgren b61b88b0ef Bug 1151214 part 1 - Remove the optimization to ignore 'align-content' changes for single-line flex containers. It's invalid now that we'll support 'align-content' for other box types (grid). r=dbaron
Note that this also fixes a subtle bug: we *should* have returned
nsChangeHint_NeutralChange from CalcDifference when we ignored
the 'align-content' change (not zero).  See bug 1176782 comment 14
(and the comments leading up to that) for details.
2015-09-10 21:07:26 +02:00
Mats Palmgren 2fee0b7b7e Bug 1203472 - [css-grid] Add missing |mIsSubgrid| check. r=simon.sapin@exyr.org
The missing |mIsSubgrid| check caused nsStylePosition::CalcDifference
to return zero even after the property value was changed to 'subgrid'.
See bug 1176782 comment 14 (and the comments leading up to that) for
details.
2015-09-10 21:07:26 +02:00
Masayuki Nakano fd12a1f996 Bug 895274 part.173 Rename NS_ANIMATION_ITERATION to eAnimationIteration r=smaug 2015-09-11 01:59:53 +09:00
Masayuki Nakano 8492fa31a1 Bug 895274 part.172 Rename NS_ANIMATION_END to eAnimationEnd r=smaug 2015-09-11 01:59:53 +09:00
Masayuki Nakano d715374512 Bug 895274 part.171 Rename NS_ANIMATION_START to eAnimationStart r=smaug 2015-09-11 01:59:53 +09:00
Cameron McCormack caf777f1cb Bug 1194856 - Load noscript.css and noframes.css from data: URLs in release builds. r=dbaron 2015-09-10 13:24:12 +10:00
Jonathan Kew 07a95c4a1c Bug 1188061 - Pass the style context to nsStylePosition::CalcDifference so that it can take account of writing-mode where necessary. r=dbaron 2015-09-09 12:22:02 +01:00
Brian Birtles 8530476b49 Bug 1200568 - Don't create animations for elements that are not part of the document tree; r=dbaron
As well as ensuring that we don't create animations for elements that are not
part of the document tree, this test also adjusts the assertion that checks
this in the following ways:

* Calls GetComposedDoc() instead of GetCrossShadowCurrentDoc() since the
  latter is deprecated.
* Moves it from RequestRestyle to FlushAnimations since, depending on how we
  refactor this code in the future, it's possible we might end up calling
  RequestRestyle even for animations on elements that have been removed from the
  document but we shouldn't call FlushAnimations in this case.
2015-09-09 10:10:41 +09:00
Jonathan Kew 3129f0ce22 Bug 1057680 - Add support for font-stretch values in the font shorthand. r=jdaggett
* * *
Bug 1057680 - pt 1 - Add a font-stretch keyword to the valid values for the font shorthand in property_database.js. r=jdaggett
* * *
Bug 1057680 - pt 2.1 - Fix up existing tests that depend on the shorthand not handling font-stretch values. r=jdaggett
2015-09-07 09:09:48 +01:00
Tom Tromey 4b0d6f34f9 Bug 1195978 - set line number when re-parsing sheet. r=heycam 2015-09-04 08:12:00 +02:00
Hiroyuki Ikezoe e66cf160a7 Bug 1151694 - Part 1 - Move CommonAnimationManager::sLayerAnimationInfo into LayerAnimationInfo.(cpp|h). r=bbirtles
--HG--
extra : rebase_source : 1226660e3e42a534d4c8b4f72c00888356a708fb
2015-09-03 22:59:00 +02:00
Wes Kocher 53368e989a Backed out 2 changesets (bug 1035091)
a=backout

Backed out changeset 1fc07bdd9aa8 (bug 1035091)
Backed out changeset f6e98029d1cb (bug 1035091)

--HG--
rename : layout/style/test/chrome/test_moz_document_matching.html => layout/style/test/chrome/test_moz_document_rules.html
rename : layout/style/test/chrome/test_moz_document_nesting.html => layout/style/test/test_bug511909.html
rename : layout/style/test/chrome/test_moz_document_serialization.html => layout/style/test/test_rule_serialization.html
2015-09-03 11:41:39 -07:00
Zack Weinberg 7912db5bd1 Bug 1035091 part 2: disable @-moz-document in author sheets. r=heycam
--HG--
rename : layout/style/test/test_condition_text.html => layout/style/test/chrome/moz_document_condition_text.css
rename : layout/style/test/test_rule_serialization.html => layout/style/test/chrome/moz_document_serialization.css
rename : layout/style/test/test_condition_text.html => layout/style/test/chrome/test_moz_document_condition_text.html
rename : layout/style/test/chrome/test_moz_document_rules.html => layout/style/test/chrome/test_moz_document_matching.html
rename : layout/style/test/test_bug511909.html => layout/style/test/chrome/test_moz_document_nesting.html
rename : layout/style/test/test_rule_serialization.html => layout/style/test/chrome/test_moz_document_serialization.html
extra : rebase_source : 9d97f4cfe5e5e3bbda1d1b7910db44faf33d14c1
2015-09-02 13:54:30 -04:00
Zack Weinberg a48ac7cfae Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam
--HG--
extra : rebase_source : 2d860f8493e328dec364a00282fcf1257a1c4d23
2015-09-02 13:52:49 -04:00
Arthur Edelstein 2fd8996148 Bug 1193593 - Test fingerprinting resistance for media queries in picture elements. r=heycam
Based on Tor Browser #16315
https://trac.torproject.org/projects/tor/ticket/16315
2015-09-01 08:51:00 -04:00
Jonathan Watt e50ac9ab7a No bug. Add comment to nsStyleClipPath::ReleaseRef explaining why only one member is nulled out. r=me (NPOTB)
--HG--
extra : rebase_source : 155c6eeab7ea32f8a43e6885a5f7fea3400085f3
2015-08-11 10:38:37 +01:00
Brian Birtles 1038c1e99a Bug 1194037 part 4 - Remove ticking from FlushAnimations; r=dholbert
This patch makes FlushAnimations purely responsible for posting restyles. All
ticking behavior is performed in response to an actual refresh driver tick
(currently CommonAnimationManager::WillRefresh).
2015-08-31 16:21:55 +09:00
Brian Birtles a362d9f14e Bug 1194037 part 3 - Add Animation::HasEndEventToQueue(); r=dholbert
We currently determine if we need refresh driver ticks when composing style
but sometimes we might not need ticks for composing style but we might need
one more tick in order to queue a final end event. Currently, this doesn't
seem to be a problem because FlushAnimations calls Animation::Tick where we
queue up events. When we remove the call to Animation::Tick from
FlushAnimations in order to make FlushAnimations purely responsible for
posting restyles, however, we will create a situation where we might mark an
animation collection as no longer needing refreshes and not simultaneously
queueing the corresponding event. If another animation collection is deleted in
the meantime we may trigger the code that causes us to disassociate from the
refresh driver and the corresponding event will never be dispatched.

Long-term (bug 1195180) we will check if it we can stop observing the refresh
driver and queue events in the same step. Until then, this patch adds a method
to detect this particular situation and uses it to avoid unregistering from
the refresh driver while we still have end events to queue.
2015-08-31 16:21:55 +09:00
Brian Birtles a58273cbc5 Bug 1194037 part 2 - Make WillRefresh no longer call FlushAnimations; r=dholbert
In order to support ticking animations from their timeline we want to separate
the following two methods:

CommonAnimationManager::WillRefresh - responsible for responding to refresh
  driver ticks by updating timing information and posting the necessary
  pending restyles. This is the functionality we will eventually move to
  Animation.

CommonAnimationManager::FlushAnimations - responsible simply for posting
  pending restyles.

Currently, WillRefresh calls FlushAnimations. This patch separates the two by
copying the necessary functionality into WillRefresh. Later in this patch series
we will further separate the two by removing duplicate functionality from
FlushAnimations.
2015-08-31 16:21:55 +09:00
Brian Birtles f32d302515 Bug 1194037 part 1 - Make nsAutoAnimationMutationBatch batch multiple elements at once; r=smaug
In bug 1195180 we plan to tick animations from their timeline where they
are stored in a hashtable. As a result, we will not visit them in order of
their associated target element (indeed, part of the reason we are doing
this is to support animations that do not have, or even have multiple target
elements).

The current animation mutation observer batching mechanism, however, assumes
that we visit each target element in turn and make all the necessary work at
once.  In order to support visiting animations in a potentially random order
this patch reworks the animation mutation observer batching mechanism so that
it can support batching multiple elements at once.
2015-08-31 16:21:49 +09:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Cameron McCormack d32a93dce9 Bug 1180120 - Part 7: Add eRestyleResult_StopWithStyleChange. r=dbaron 2015-08-29 06:13:48 +10:00
Cameron McCormack b332673f40 Bug 1180120 - Part 6: Replace HasSameCachedStyleData call with samePointerStructs bit tests. r=dbaron 2015-08-29 06:13:47 +10:00
Cameron McCormack 1a2b30b0fc Bug 1180120 - Part 4: Add an outparam to CalcStyleDifference to indicate which struct pointers were identical. r=dbaron 2015-08-29 06:13:47 +10:00
Cameron McCormack 10bcb04d6f Bug 1180120 - Part 2: Move style-if-visited as well in nsStyleContext::Move (and assert that its parent is the same as the non-visited-style parent). r=dbaron 2015-08-29 06:13:47 +10:00
Cameron McCormack e51337e0b2 Bug 1180120 - Part 1: Record on style contexts that reset style is explicitly inherited. r=dbaron 2015-08-29 06:13:47 +10:00
Seth Fowler 59f5f53a8b Bug 1181907 (Part 3) - Add CSSVariableImageTable and use it to store ImageValues generated by CSS variables. r=heycam 2015-08-26 18:19:38 -07:00
Seth Fowler 5d3e2f76e1 Bug 1181907 (Part 2) - Make nsCSSProperty hashable. r=heycam 2015-08-26 18:19:34 -07:00
Yury Delendik 227cd6c1dc Bug 1192831 - Remove PlayPreview API. r=jet, r=peterv
--HG--
extra : rebase_source : 7486debb89472aa52d034a8eb458245d7daec5ff
extra : source : 2d9ed9032a45d4c3644f40420428e1a8441785db
2015-08-20 15:15:18 -05:00
Masayuki Nakano 0d22745cda Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Francois Marier f04275bd0b Bug 1196740 - Consider redirects when looking for SRI-eligibility. r=ckerschb
--HG--
rename : dom/security/test/sri/iframe_style_sameorigin.html => dom/security/test/sri/iframe_style_crossdomain.html
rename : dom/security/test/sri/script_crossdomain4.js => dom/security/test/sri/script_crossdomain5.js
rename : dom/security/test/sri/style1.css => dom/security/test/sri/style_301.css
rename : dom/security/test/sri/test_style_sameorigin.html => dom/security/test/sri/test_style_crossdomain.html
2015-08-25 13:38:39 -07:00
Daniel Holbert db0b03b6ae Bug 1195523: Use type-safe LinkedList instead of PRCList to manage AnimationCollection objects. r=birtles 2015-08-17 21:13:14 -07:00
Ryan VanderMeulen 7e078b31d6 Backed out changeset 2d9ed9032a45 (bug 1192831) for suspicion of causing bug 1178709 to spike. 2015-08-23 15:21:23 -04:00
Masayuki Nakano 66f2c27305 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
Andrew Comminos bf63f14959 Bug 1187203 - Implement GtkInfoBar appearance style on GTK3. r=karlt 2015-08-21 16:38:15 -04:00
Yury Delendik d5e63ae0b8 Bug 1192831 - Remove PlayPreview API. r=jet, r=peterv 2015-08-20 15:15:18 -05:00
Jonathan Kew ba8a9d5901 Bug 1196887 - Compare the writing-mode property, not only whether it is horizontal or vertical, when deciding whether to compute display:inline as inline-block. r=dholbert 2015-08-21 09:55:43 +01:00
Hiroyuki Ikezoe 56f8274c93 Bug 1194028 - Part 2: Use KeyFrameEffect SetTiming. r=bbirtles
Now KeyframeEffect.SetTiming() updates the owning animation timing and relavance, so
we don't need to call each methods respectively for the animation any more.
2015-08-18 03:57:00 -04:00