Commit Graph

665 Commits

Author SHA1 Message Date
Brad Werth
6205a39234 Bug 1346256 Part 3: Modify GetCSSStyleRules to collect ServoStyleRules. r=xidorn
MozReview-Commit-ID: IMQLykuXjfL
2017-04-07 15:21:36 -07:00
Mayank Srivastav
2ef5980a23 Bug 1156019 - Fix the issue of background-size property, regenerated properties css database & updated tests. r=xidorn
MozReview-Commit-ID: ACRxUEWBbSM
2017-04-07 11:01:00 -04:00
Mike Hommey
457d5b4cbb Bug 1353990 - Stop exporting brotli headers. r=gps
They have generic names, and are potentially conflicting with
in-tree headers with the same name (which is true for at least port.h).

There aren't enough users of brotli to want to avoid LOCAL_INCLUDES
in the directories that use it.
2017-04-06 13:44:47 +09:00
Brian Birtles
4de61d72aa Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.

MozReview-Commit-ID: JQKaEuCKV2F
2017-04-05 14:39:23 +09:00
bechen
0b9a35ad45 Bug 1318542 - fix testcases due to new pseudo element ::cue. r=heycam
MozReview-Commit-ID: F10y2zTtBoT
2017-04-05 10:50:58 +08:00
Astley Chen
b49c6dfd10 Bug 1342880 : Remove class inSearchLoop from the tree. r=heycam
inSearchLoop is referenced from nowhere, as a result, we don't need to get its timer event labeled.

MozReview-Commit-ID: 5fxg38WD9dQ
2017-03-15 11:48:41 +08:00
Brad Werth
ab3acb10da Bug 1337305 Part 2: Change GetCSSStyleRules to return RuleNodes for Gecko rules, and nothing otherwise (instead of asserting). r=xidorn
MozReview-Commit-ID: EQWOstveuaU
2017-03-13 17:24:38 -07:00
Brad Werth
89dd4dabb8 Bug 1337305 Part 1: Refactor GetRuleNodeForElement to just return the StyleContext, so caller can either get a RuleNode or a raw servo rule. r=shinglyu,xidorn
MozReview-Commit-ID: DBkMfSvOA2k
2017-03-13 17:23:17 -07:00
Masatoshi Kimura
4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Boris Zbarsky
fcffc1fbb1 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky
048878096a Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Sebastian Hengst
f21d58966b Backed out changeset 271c7cd7b59a (bug 851892) 2017-01-20 19:30:41 +01:00
Sebastian Hengst
4249f1e162 Backed out changeset 9ef39356f62c (bug 851892) 2017-01-20 19:30:32 +01:00
Boris Zbarsky
4bc1b026f0 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky
3758678f78 Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Astley Chen
364ae0f1ac Bug 1331296 : Part 5 - Update DevTool CSS property database. r=tromey
MozReview-Commit-ID: Ec49CX8iJNT
2017-01-18 10:50:37 +08:00
Astley Chen
fa8ea75a43 Bug 1331296 : Part 1 - Remove or unprefix -moz-calc() from layout tests. r=heycam
MozReview-Commit-ID: HKCS8Uqv1Cs
2017-01-18 10:50:19 +08:00
Phil Ringnalda
7646bbe020 Backed out 20 changesets (bug 851892) for load failures in Android crashtest-4
Backed out changeset b9c4115cdeac (bug 851892)
Backed out changeset 5f491bf49b85 (bug 851892)
Backed out changeset 9bf5bcb3e8c5 (bug 851892)
Backed out changeset a9cab46e8b45 (bug 851892)
Backed out changeset 73858e15c8c0 (bug 851892)
Backed out changeset a25638588b6b (bug 851892)
Backed out changeset d58e0e5069ef (bug 851892)
Backed out changeset d8da2a3d8f10 (bug 851892)
Backed out changeset a8da3c34983f (bug 851892)
Backed out changeset 29cf8acbd21e (bug 851892)
Backed out changeset c53cd7bdf8b3 (bug 851892)
Backed out changeset e841a2796375 (bug 851892)
Backed out changeset 2eab85b00159 (bug 851892)
Backed out changeset ca4b1fb9cae4 (bug 851892)
Backed out changeset 74c0ba66f108 (bug 851892)
Backed out changeset 719bb9f41e5b (bug 851892)
Backed out changeset d6aa4c6192df (bug 851892)
Backed out changeset dc81a167a75d (bug 851892)
Backed out changeset 65422477b3a5 (bug 851892)
Backed out changeset 3089dd379077 (bug 851892)
2017-01-15 11:50:10 -08:00
Boris Zbarsky
7f8d92e598 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky
bb949d2e19 Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky
17194e597d Back out bug 851892 for Windows build bustage on CLOSED TREE 2017-01-13 11:47:22 -05:00
Boris Zbarsky
f5cfc1f710 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky
649d4c4204 Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Jared Wein
d082f94cb9 Bug 1323618 - Allow locking off of psuedo-classes through inIDOMUtils. r=heycam
MozReview-Commit-ID: DppYTmILpwy
2017-01-12 12:10:07 -05:00
Sebastian Hengst
2c0af86386 Backed out changeset 6c4807171f00 (bug 1323618) on jaws' request. r=backout 2017-01-12 18:45:39 +01:00
Jared Wein
4da6b820c7 Bug 1323618 - Allow locking off of psuedo-classes through inIDOMUtils. r=heycam
This patch doesn't currently work. The test fails in two test cases. Right now the styles for a 'locked-off' psuedo class are still being applied.

MozReview-Commit-ID: DppYTmILpwy
* * *
[mq]: temp

MozReview-Commit-ID: 74iIOQumfrw
2017-01-12 12:10:07 -05:00
Mats Palmgren
70eab9f0a1 Bug 1322191 part 3 - [css-display] Tests for display:flow-root. r=dholbert 2016-12-23 19:11:04 +01:00
Xidorn Quan
cc24e912e2 Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
MozReview-Commit-ID: DkrMkzMq5qM
2016-12-21 18:16:50 +11:00
Cameron McCormack
91829cff51 Bug 1322661 - Expose (non-XBL) style sheets to devtools. r=xidorn
MozReview-Commit-ID: 72Lyf8Ak7Ib
2016-12-09 08:27:32 -10:00
Xidorn Quan
2d70bdcd07 Bug 1307357 part 1 - Make css::Rule hold StyleSheet rather than CSSStyleSheet. r=heycam
MozReview-Commit-ID: JsJa4YqpCZy
2016-11-23 10:26:20 +11:00
Sebastian Hengst
9c4df5a4e5 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: layout/inspector. r=RyanVM
MozReview-Commit-ID: 4eoTmdhBzjk
2016-11-05 11:29:20 +01:00
Cameron McCormack
9c8abdea63 Bug 1312331 - Build up list of applicable rules in reverse to avoid quadratic time array manipulations. r=erahm
MozReview-Commit-ID: HAjtxQVZo8X
2016-10-24 02:59:00 +02:00
Eric Rahm
2d5dca3055 Bug 1311191 - Part 2: Convert |inIDOMUtils.getCSSStyleRules| to |nsIArrayExtensions|. r=heycam
This converts |getCSSStyleRules| to return an |nsIArrayExtensions| instead of
an |nsISupportsArray|. |nIArrayExtensions| still provides the iteration
mechanisms -- |Count| and |GetElementAt| -- that add-ons expect so they should
not be affected.

MozReview-Commit-ID: ZdrFrbclX8
2016-10-24 13:24:28 -07:00
JerryShih
6f68b2d120 Bug 1295456 - Update Gecko tests for css-color-4 color function changes. r=dholbert 2016-10-16 03:15:36 +08:00
Xidorn Quan
850976ea9c Bug 1292432 part 9 - Change WebIDL interface of CSSStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: 5AXhsuvvrwe
2016-10-14 22:25:38 +11:00
Xidorn Quan
ebd2cff136 Bug 1306214 part 2 - Remove -moz-use-text-color from devtools. r=tromey
MozReview-Commit-ID: 9qEEvdQtHQc
2016-09-29 17:45:02 +10:00
Xidorn Quan
7ba350b0a6 Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.

This commit is generated by the following command:

find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
  -e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
  -e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +

MozReview-Commit-ID: 54H5x27Pmso
2016-09-26 22:03:25 +10:00
Nicholas Nethercote
c57fffaa55 Bug 1297300 - Add missing checks to GetSpec() calls in layout/. r=dholbert,heycam. 2016-08-31 20:10:10 +10:00
Thomas Wisniewski
e3967a6e44 Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz 2016-09-07 19:38:38 -04:00
Bobby Holley
e55613ed13 Bug 1296509 - Optimize GetFlattenedTreeParent. r=smaug
We need to call it on some hot paths in stylo, and this allows us to do
quick inline check before delegating to the slow path.
2016-08-19 14:43:53 -07:00
Jonathan Chan
23ccd0531f Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-09 16:28:19 -07:00
Carsten "Tomcat" Book
b16872c686 merge mozilla-inbound to mozilla-central a=merge 2016-08-09 15:44:51 +02:00
Yura Zenevich
abb4eebf15 Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov
MozReview-Commit-ID: KKeywNi3fQb
2016-08-08 20:51:39 -04:00
Wes Kocher
40bfd5da9f Backed out 8 changesets (bug 1288626) for conflicting with bug 1291280, which merged to m-c first a=backout
Backed out changeset caee616ea09c (bug 1288626)
Backed out changeset eebda25d85cd (bug 1288626)
Backed out changeset 07e9cb8a46fd (bug 1288626)
Backed out changeset c5e4865819ff (bug 1288626)
Backed out changeset 74633b2735e0 (bug 1288626)
Backed out changeset 17f63bb7be11 (bug 1288626)
Backed out changeset 654556e45f5a (bug 1288626)
Backed out changeset be2c56decd65 (bug 1288626)
2016-08-08 16:19:30 -07:00
Ting-Yu Lin
1bcd857cd6 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
2016-07-22 15:40:01 +08:00
Jeremy Chen
2c264512f6 Bug 1289007 - part1: parse and compute initial-letter property. r=heycam
MozReview-Commit-ID: E0eXolZ93oJ
2016-07-28 15:23:36 +08:00
Ethan Lin
06a0216d7d Bug 720531 - Part 4. Add space to border for shorthand property test. r=dbaron 2016-06-23 03:02:00 +02:00
Tom Tromey
1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Thomas Wisniewski
dec381fbce Bug 843579 - Unprefix -moz-any-link. r=bz 2016-07-19 23:13:13 -04:00
Nathan Froyd
b89e7ed3e4 Bug 1278925 - micro-optimize nsCOMArray appending with already_AddRefed AppendElement; r=erahm
In all of the places touched by this patch, the smart pointer we're
appending is about to become unused, so simply .forget()'ing its
reference into the appropriate nsCOMArray works just fine.
2016-06-20 18:38:10 -04:00