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

16 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 395e66570e Bug 1449089 part 2 - Move matching logic of :-moz-table-border-nonzero and :-moz-browser-frame into individual binding functions. r=emilio
MozReview-Commit-ID: Ic3EjtwSve0

--HG--
extra : rebase_source : 6365e8a9f727842b7c4cc3547a102d6300600e38
2018-03-28 09:41:04 +11:00
Emilio Cobos Álvarez d168a0b49e Bug 1422538: Inline ServoElementSnapshot::AddAttrs. r=bz
MozReview-Commit-ID: FmCikbv44A5
2017-12-07 22:55:06 +01:00
Emilio Cobos Álvarez 7c35a51632 Bug 1422538: Inline ServoElementSnapshot destructor. r=bz
No point in doing a function call for a default destructor.

MozReview-Commit-ID: Ll26umYyrKL
2017-12-07 22:55:02 +01:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Brian Birtles f6eddc29f3 Bug 1365472 - Use animated class names when doing selector matching in Servo; r=heycam
Using SVG SMIL it is possible to animate the class attribute of an element using
markup such as the following:

  <style>
    .red {
      fill: red;
    }
  </style>
  <svg>
    <circle cx="50" cy="50" r="30" fill="blue">
      <set attributeName="class" to="red" begin="1s"/>
    </circle>
  </svg>

In Gecko, Element::GetClasses handles this case by looking for an animated class
string when the element in question is an SVG element.

This patch causes our Servo bindings to use GetClasses when querying attribute
values for selector matching.

Note that animating the class attribute is *not* expected to affect attribute
selectors such as `circle[class="red"]`. It does in Chrome, but that is due to
a Blink bug where animating attributes using SMIL affects the result of
getAttribute:

  https://bugs.chromium.org/p/chromium/issues/detail?id=735820

This patch adjusts the behavior for both the GeckoElement case and the
ServoElementSnapshot case.

MozReview-Commit-ID: DAFWHSH1aYB

--HG--
extra : rebase_source : 292c4e2fb419818ea851aca12790ff7e70f2e1d4
2017-06-27 10:55:03 -07:00
Emilio Cobos Álvarez 716f239e92 Bug 1368240: Record whether an snapshot is recording a class attribute change or id change. r=heycam
I'll use this information in order to get fewer dependencies out of the
dependency set.

MozReview-Commit-ID: 5HlmKmSNO8p
2017-06-13 15:52:42 +02:00
Cameron McCormack 8dfd22578a Bug 1365162 - Part 3: Record on snapshots whether the element supports lang="" attributes. r=emilio
MozReview-Commit-ID: KpzwsKpBiOO

--HG--
extra : rebase_source : c7c5b85d37f1276b04cfd3c0b538f2f6e55f95af
2017-06-07 11:11:44 +08:00
Cameron McCormack faef490277 Bug 1365159 - Part 1: Record :-moz-browser-frame and :-moz-table-border-nonzero state on snapshots. r=emilio
MozReview-Commit-ID: BEglHnXhpYJ

--HG--
extra : rebase_source : 0b10b26a8ef0c504e38be89b87ea319af7a31d3f
2017-06-05 14:19:30 +08:00
Boris Zbarsky 85a8b07474 Bug 1365659 part 2. Add id/class flags to stylo snapshots and set them correctly on the Gecko side. r=emilio
MozReview-Commit-ID: 4ylYDIbR3lI

--HG--
extra : rebase_source : e103418eb75fda17a3f83fd017514b2b9d821ec3
2017-05-18 11:31:54 -04:00
Boris Zbarsky 55413bb238 Bug 1365659 part 1. Change stylo element snapshot member ordering to pack a bit better. r=emilio
MozReview-Commit-ID: 4pe8JJAXiXz

--HG--
extra : rebase_source : 95d02763720de8797367304e90b9eeef2a22309c
2017-05-18 11:30:42 -04:00
Bobby Holley a8f10f24ec Bug 1362549 - Assert against accessing the attributes of a snapshot that doesn't have attributes saved. r=emilio
MozReview-Commit-ID: 8BsnTF6uIGM
2017-05-05 18:13:30 -07:00
Bobby Holley f8c9d884fc Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Emilio Cobos Álvarez 5011eb626b Bug 1290335: stylo: Assert the snapshot is taken in ServoRestyleManager::AttributeChanged. r=heycam
Also fixes an embarrassing typo in the implementation of
ServoElementSnapshot::AddAttrs.

MozReview-Commit-ID: 7LHZVLo6j60
2016-08-03 15:11:15 -07:00
Jonathan Kingston 556ed99119 Bug 1173199 - Create preference to disable MathML. r=heycam, r=huseby, r=smaug
If the mathml.disabled preference is true, treat <math> and other MathML
elements as generic XML elements.

This patch disables the rendering code of MathML however preserves the
namespace so to reduce the breakage.

Original patch by: Kathy Brade <brade@pearlcrescent.com>

MozReview-Commit-ID: A2f2Q2b4eqR

--HG--
extra : rebase_source : 3c8530816727c01b68a831d560bfe16e7b02bd9d
2016-06-28 15:24:48 +01:00
Emilio Cobos Álvarez 9efb158ac7 Bug 1287951: followup: Know if a snapshot belongs to a HTML element in an HTML document at construction time. r=heycam
MozReview-Commit-ID: eN0j8vnesa
2016-07-30 15:03:31 -07:00
Emilio Cobos Álvarez 253dfd8aad Bug 1287951: stylo: Add support for computing style hints from Servo. r=heycam
MozReview-Commit-ID: ALuJxcfAMuL
2016-07-21 16:57:52 -07:00