David Anderson
5cbc12627e
Change the subdoc invalidation callback to handle overflow. (bug 1345891 part 5, r=mattwoodrow)
2017-08-03 21:22:49 -07:00
Jonathan Watt
32406b4c7c
Bug 1379269, part 2 - Invalidate and notify when clearing cached media features for Windows accent color changes. r=dholbert
...
MozReview-Commit-ID: 66tP4la4xy9
2017-07-24 15:57:29 +01:00
Wes Kocher
11c90747d8
Merge inbound to central, a=merge
...
MozReview-Commit-ID: Dg4fbH8wbXt
2017-07-31 17:43:38 -07:00
Nicholas Nethercote
09493fcbcf
Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
2017-07-31 14:28:48 +10:00
Nicholas Nethercote
a222153d9c
Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
2017-07-31 14:23:50 +10:00
Emilio Cobos Álvarez
54f1c009a9
Bug 1384542: Move GetParent and IsLinkContext to GeckoStyleContext. r=heycam
...
MozReview-Commit-ID: C19yGcphixX
2017-07-31 14:32:59 +02:00
Bevis Tseng
2ecbda13e2
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
2017-07-26 16:13:35 +08:00
Xidorn Quan
7ecc3b6ca1
Bug 1382077 part 2 - Move mUsesViewportUnits into nsStyleSet. r=heycam
...
MozReview-Commit-ID: DQ4ZoLLNPeN
2017-07-24 11:51:32 +10:00
Xidorn Quan
a2a9fd3d54
Bug 1382077 part 1 - Have StyleSet::MediumFeaturesChanged return nsRestyleHint rather than a bool. r=heycam
...
MozReview-Commit-ID: 5g3mHU8pxXP
2017-07-24 11:27:08 +10:00
Carsten "Tomcat" Book
165a3c6ca9
Backed out changeset 23c6326dd926 (bug 1382077) on request from xidorn
2017-07-25 12:17:56 +02:00
Carsten "Tomcat" Book
07d253a893
Backed out changeset 972821835d48 (bug 1382077)
2017-07-25 12:17:16 +02:00
Xidorn Quan
2798346a35
Bug 1382077 part 2 - Move mUsesViewportUnits into nsStyleSet. r=heycam
...
MozReview-Commit-ID: DQ4ZoLLNPeN
2017-07-24 11:51:32 +10:00
Xidorn Quan
d6b0318f36
Bug 1382077 part 1 - Have StyleSet::MediumFeaturesChanged return nsRestyleHint rather than a bool. r=heycam
...
MozReview-Commit-ID: 5g3mHU8pxXP
2017-07-24 11:27:08 +10:00
Boris Zbarsky
593182b1c6
Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value. r=dbaron
2017-07-17 23:21:41 -04:00
Wei-Cheng Pan
4c06965307
Bug 1366964 - Update style context generation after style resolved. r=heycam
...
Adds another restyle generation which represents the dirty state of raw
style changes, so that getComputedStyle() wont be confused by optimizations
made by style engines.
MozReview-Commit-ID: 7RYeNCzFygO
2017-05-23 14:13:47 +08:00
Carsten "Tomcat" Book
965cd35a65
Merge mozilla-central to autoland
2017-07-12 11:18:59 +02:00
Emilio Cobos Álvarez
0f56a3a5f4
Bug 1379505: Less fishyness when resolving the style of the document element. r=heycam
...
Previous to these patches, the style resolution happening on [1] made the style
data stick on the element, so we'd never think it was the initial style, even if
it was.
This was wallpapering the fact that, if that was the initial style, we'd never
have another chance of traversing the document when [2] kicked in.
This somehow just happened to work, but is a very fishy way to get it to work.
Instead, call StyleDocument() properly _before_, and rely on the fact that it
will stop when it has a non-null binding, and only if it fails explicitly style
the children.
This fixes the few XBL test-cases with this patch series that exercise
-moz-bindings on the root element without the root being styled, and makes the
-moz-binding code more consistent in both places of the frame constructor.
[1]: http://searchfox.org/mozilla-central/rev/5dadcbe55b4ddd1e448c06c77390ff6483aa009b/layout/base/nsCSSFrameConstructor.cpp#2526
[2]: 3330653dc8/components/style/traversal.rs (L439)
MozReview-Commit-ID: HbjsD6nYsvX
2017-07-10 14:32:39 +02:00
Jonathan Watt
50a525c0f6
Bug 1379269 - Make the '-moz-windows-accent-color-applies' media query live to Windows 10 settings changes. r=dholbert
...
MozReview-Commit-ID: 9tE9Zvr9Dsb
2017-07-11 18:38:45 +02:00
Bobby Holley
4f755fd02c
Bug 1378005 - Detect prescontext re-initialization and drop any servo data that exists. r=emilio
...
MozReview-Commit-ID: 76dmk3ip3hv
2017-07-04 15:02:18 -07:00
Carsten "Tomcat" Book
372571d466
merge mozilla-inbound to mozilla-central a=merge
2017-06-27 10:56:41 +02:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura
a725dc3e13
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Sebastian Hengst
9736fc0664
Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE
2017-06-25 18:30:13 +02:00
Masatoshi Kimura
cff1fdcb48
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Wes Kocher
d214d1f5fa
Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
...
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Masatoshi Kimura
d3e74dcb2d
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Mats Palmgren
fefc52a61a
Bug 1372017 - Remove an unnecessary Contains call before PutEntry. r=froydnj
...
MozReview-Commit-ID: ERHTBr9Jed8
2017-06-14 01:54:26 +02:00
Chung-Sheng Fu
202abf129f
Bug 1330876 - Add a new variant of LookAndFeel::GetColor that uses stand-ins for native colors and accepts default value. r=heycam
...
MozReview-Commit-ID: 40tmdTJbLy1
2017-06-12 13:57:17 +08:00
Chung-Sheng Fu
8ab8e741eb
Bug 1330876 - Listen to change event of preference "ui.use_standins_for_native_colors" and update default foreground and background colors r=heycam
...
MozReview-Commit-ID: BVFbGQVVNkf
2017-06-07 18:11:44 +08:00
Nazım Can Altınova
c22e06c6a2
Bug 1355724 - stylo: Fix propagation of quirks mode information to servo side r=emilio
...
It was getting inial value from gecko side before and that was always
eCompatibility_NavQuirks. Created an FFI to fetch quirks mode.
MozReview-Commit-ID: 1lXsM9hwldZ
2017-06-10 17:22:23 +03:00
Emilio Cobos Álvarez
b2ad337485
Bug 1357461: Assume viewport units are used on resize. r=heycam
...
MozReview-Commit-ID: Eu2QxaGFChX
2017-06-03 18:59:14 +02:00
Emilio Cobos Álvarez
d352758f8f
Bug 1357461: Cache effective media query results. r=heycam
...
And implement a function that returns whether they changed, to be shared with
Servo.
MozReview-Commit-ID: 8gnAdJaEfZC
2017-06-03 18:59:07 +02:00
Jonathan Kew
4dcf0fe444
Bug 1365982 - Attach frame properties to each frame instead of looking them up in a hashtable on the prescontext. r=mats
2017-05-27 12:36:00 +01:00
Brad Werth
84b701f39e
Bug 1339629 Part 9: Uplift EnsureUniqueInnerOnCSSSheets and SetNeedsRestyleAfterEnsureUniqueInner into StyleSetHandle, and eliminate CSSStyleSheet::EnsureUniqueInner. r=heycam
...
MozReview-Commit-ID: LH7vTKUmuv8
2017-05-15 16:30:10 -07:00
Jonathan Kew
9cee45cb0c
Bug 734008 - DeCOMtaminate nsILanguageAtomService, make it a non-refcounted singleton and clean up various call sites. r=m_kato
2015-04-03 21:39:23 +02:00
Manish Goregaokar
ecd90e3c8a
Bug 1362599 - Remember which languages were used and force-cache when reset; r=heycam
2017-05-20 21:48:04 +02:00
Emilio Cobos Álvarez
e83838cca9
Bug 1364871: Revert workaround added in bug 1328319. r=heycam
...
MozReview-Commit-ID: 804TV5qW3Xh
2017-05-20 03:26:24 +02:00
Xidorn Quan
c5218ffa2d
Bug 1328319 part 9 - Don't clean up retired counter styles for stylo. r=heycam
...
MozReview-Commit-ID: JWBhNvtYGIB
2017-05-15 22:18:49 +10:00
Emilio Cobos Álvarez
ca76897873
Bug 1364412: Simplify Servo_HasAuthorSpecifiedRules looking at the pseudo style. r=bholley
...
MozReview-Commit-ID: HpV92ttZGJz
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2017-05-12 17:51:32 +02:00
Xidorn Quan
b7742acb67
Bug 1363699 part 1 - Make named CounterStyle objects not refcounted. r=heycam
...
This change does the following:
* Introduce a new smart pointer called CounterStylePtr which either
holds an AnonymousCounterStyle strongly, or a named CounterStyle
managed by CounterStyleManager weakly, and use it to replace all
RefPtr<CounterStyle> around the codebase.
* Rename CounterStyleManager::mCacheTable to mStyles to reflect the
fact that it is used to manage all styles, not just for caching.
* Add a retired styles list which collect all named CounterStyle
evicted from mStyles, and post a PostRefreshObserver to destroy
objects in that list after next flush.
* Remove helper functions for counter style in nsStyleList and expose
mCounterStyle directly, to make code simpler with the new pointer.
Reason for adding a new smart pointer type rather than making their
AddRef/Release behave like BuiltinCounterStyle is that, it is possible
that after a flush, some stale style structs may still be alive. They
can contain pointer to destroyed CounterStyle objects. Although the
actual content may never be accessed anymore, RefPtr may still access
the object for refcounting during destruction.
MozReview-Commit-ID: xxegwSDhNb
2017-05-13 21:42:23 +10:00
Daniel Holbert
5066835c91
Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
...
MozReview-Commit-ID: Lpr9aNv9hAB
2017-05-10 13:53:27 -07:00
Wes Kocher
1be726284d
Backed out 3 changesets (bug 1344398) for assertion failures at Element.cpp a=backout
...
Backed out changeset d0e5a5ba01b5 (bug 1344398)
Backed out changeset d70f9de401d1 (bug 1344398)
Backed out changeset 647d0bb3714d (bug 1344398)
MozReview-Commit-ID: DTVWf28NcNb
2017-05-10 17:43:50 -07:00
Daniel Holbert
4fdbcddca9
Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
...
MozReview-Commit-ID: Lpr9aNv9hAB
2017-05-10 13:53:27 -07:00
Matt Brubeck
4eebd81661
Bug 1349651 - stylo: Implement HasAuthorSpecifiedRules. r=bholley
...
MozReview-Commit-ID: 8ta5KqKzncZ
2017-05-10 13:11:36 -07:00
Sumit Tiwari
4a179064e0
Fix for bug 1142497 - change mDOMMediaQueryLists to use mozilla::LinkedList;r=erahm
...
MozReview-Commit-ID: G9RtgdYudqA
2017-04-06 20:45:16 -04:00
Masatoshi Kimura
c2c48aea55
Bug 1356565 - Use AddFloatVarCache to cache layout.css.devPixelsPerPx. r=kanru
...
MozReview-Commit-ID: HZ9pBiU17H3
2017-04-09 01:28:54 +09:00