Commit Graph

552083 Commits

Author SHA1 Message Date
Chung-Sheng Fu
7a392d6952 Bug 1382499 - Enhance fingerprinting resistance for Touch API r=arthuredelstein,bz
MozReview-Commit-ID: 8nzOkvIvwrD

--HG--
extra : rebase_source : 15cfa77ffc639838d6345fa4bffc7079d8d198e7
2017-07-31 17:30:38 +08:00
Ray Lin
dc815cf2fc Bug 1371149 - Part 2. Add a chrome browser test for form autofill insecure field. r=MattN,seanlee
MozReview-Commit-ID: 7KjI9siHlqt

--HG--
extra : rebase_source : dd214050084160154036632707c310c412831884
2017-07-28 17:23:30 +08:00
Ray Lin
de1bce2711 Bug 1371149 - Part 1. Show insecure field in credit card autofill dropdown instead of result when the connection is not secure. r=MattN,seanlee
MozReview-Commit-ID: APjaTedWUz9

--HG--
extra : rebase_source : 47a6cfc70d4946db4203e8738953efa70cd7e505
2017-06-30 09:51:02 -07:00
Gijs Kruitbosch
45e1742ade Bug 1390006 - fix up expectations of BrowserUITelemetry tests to match what devedition is doing, r=johannh
MozReview-Commit-ID: I03npiUHECK

--HG--
extra : rebase_source : bc5dcf02afb6236d5e943a6a7a94dc83ea683bbc
2017-08-14 12:17:34 +01:00
Hiroyuki Ikezoe
47c5a084f4 Bug 1387941 - Make scroll-snap-{coordinate, destination} discrete animation. r=daisuke
MozReview-Commit-ID: KVAYtp17i82

--HG--
extra : rebase_source : 0522f14d96e6df5f0ce1c9c9177fd3ec121be6dc
2017-08-14 17:37:12 +09:00
Masayuki Nakano
5791416beb Bug 1388004 - part3: nsINode::GetSelectionRootContent() should use HTMLEditor r=smaug
nsINode::GetSelectionRootContent() uses nsIEditor since nsContentUtils::GetHTMLEditor() returned nsIEditor.  Therefore, it needed to use GetEditorRootContent() to retrieve the editor root element as nsIContent*.

Now, it can use HTMLEditor and HTMLEditor::GetRoot() returns the editor root element as nsIContent* directly.  So, it should use HTMLEditor instead.

MozReview-Commit-ID: I937a5TuxVD

--HG--
extra : rebase_source : 5c00be8b590ca3d4d4290a69eef1e2e177ee069d
2017-08-07 17:00:44 +09:00
Masayuki Nakano
8872065ef4 Bug 1388004 - part2: Make nsGenericHTMLElement::GetAssociatedEditor() return TextEditor instead of nsIEditor r=smaug
nsGenericHTMLElement::GetAssociatedEditor() retrieves TextEditor if the element is <input type="text"> or something, or <textarea>, or if it's editable, HTMLEditor associated to the document.  So, this method can return TextEditor (HTMLEditor is a subclass of TextEditor).

MozReview-Commit-ID: BvpFPaPLY70

--HG--
extra : rebase_source : 69edbe17aeb1ac72a8f8d247e5baca998569250e
2017-08-07 16:53:59 +09:00
Masayuki Nakano
b11e66f8da Bug 1388004 - part1: Make nsContentUtils::GetHTMLEditor() return HTMLEditor* rather than nsIEditor* r=smaug
nsContentUtils::GetHTMLEditor() currently returns nsIEditor* since editor of doc shell may be any type of editors such as TextEditor or editor object which is implemented by JS.  However, nsIEditor is now a builtin class.  So, it can return HTMLEditor.

MozReview-Commit-ID: 3YoFOplZa7W

--HG--
extra : rebase_source : 46f42d23babd64bf0a5003e66e8fe3b9e0bd7166
2017-08-07 16:33:59 +09:00
Hiroyuki Ikezoe
eb2963211c servo: Merge #18069 - Make scroll-snap-{coordinate, destination} discrete animation (from hiikezoe:scroll-snap); r=daisuke
<!-- Please describe your changes on the following line: -->
https://bugzilla.mozilla.org/show_bug.cgi?id=1387941

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

Source-Repo: https://github.com/servo/servo
Source-Revision: 421a553799b6e71c2bf7a0f5bba4082060445533

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1ade80b1376d7e773397564d48b88a99549628fd
2017-08-14 05:33:45 -05:00
Masayuki Nakano
9114d3d55d Bug 1388001 - part4: nsHTMLDocument should treat editor as HTMLEditor r=smaug
nsHTMLDocument retrieves its associated editor from nsIEditingSession and nsIDocShell.  So, both of them have methods returning HTMLEditor*. Therefore, nsHTMLDocument should treat all of them as HTMLEditor.

MozReview-Commit-ID: 5zPH708Vev3

--HG--
extra : rebase_source : 09e87fab64bc3e8a00300bc3109e45a1b8c8b797
2017-08-07 14:43:50 +09:00
Masayuki Nakano
9ee491b79f Bug 1388001 - part3: Remove nsIEditor argument of nsIHTMLDocument::TearingDownEditor() since it's unused r=smaug
nsIHTMLDocument::TearingDownEditor() takes nsIEditor as an argument.  However, it's not used in it.  So, we can remove it.

MozReview-Commit-ID: KUmIsnVGB6H

--HG--
extra : rebase_source : ddd344b9df18e0b33d54d2f99e6335449f55df81
2017-08-07 14:25:52 +09:00
Masayuki Nakano
d66337db9a Bug 1388001 - part2: nsEditingSession should treat editor as HTMLEditor r=m_kato
nsEditingSession should treat editor as HTMLEditor in its internal handling.

MozReview-Commit-ID: 51SfY4oeq3p

--HG--
extra : rebase_source : 90535267e62de17755fff9f21b6a0f74244d849a
2017-08-04 22:53:28 +09:00
Masayuki Nakano
fc87c572fa Bug 1388001 - part1: Create nsIEditingSession::GetHTMLEditorForWindow() r=smaug
Some users of HTMLEditor retrieve pointer to editors with nsIEditingSession::GetEditorForWindow() but it returns nsIEditor.  So, there should be a method which returns HTMLEditor*.

MozReview-Commit-ID: Bzc1LIlTSDF

--HG--
extra : rebase_source : f6fb3e5852809487883e3e6fedda9580206b2cb5
2017-08-12 11:44:16 +09:00
Johann Hofmann
a2901df84e Bug 1375335 - Fix window control height calculation on Windows 10. r=dao
This commit:

- Makes the window controls have exactly the same height as tabs when the
  menubar is hidden, and have the same height as the menubar when it is shown.
  This requires us to remove the menubar height before flushing layout in
  case it is shown, since we need its original height for the calculation.

- Removes the top margin between the menu bar and the window border
  that was present on Windows 10 and makes it apply on Windows 7 only.
  The border was causing miscalculations of the window control height,
  which could have been handled in browser-tabsintitlebar.js, but since
  it's not part of the Photon spec we decide to remove it entirely.

- Makes window control height calculations ignore vertical tabs toolbar
  margins. The only margin it has right now is -1px and the calculation
  code doesn't work right with negative margins.

MozReview-Commit-ID: HJXxUUJFX8x

--HG--
extra : rebase_source : fdb5db7e5b410cb45cef054d5cbec41048211f75
2017-08-09 14:36:01 +01:00
Masatoshi Kimura
e698863015 Bug 1389702 - Remove MOZ_DEPRECATED. r=froydnj
MozReview-Commit-ID: 4pOKIFXc4wa

--HG--
extra : rebase_source : 57d503f2253d87fbd422e28c34f49e48115be478
2017-08-13 21:00:10 +09:00
Hiroyuki Ikezoe
b3398cfe8c Bug 1388692 - Make GeckoRestyleManager::UpdateAnimationStyles() private. r=birtles
It's only used inside the class.

MozReview-Commit-ID: IrIUwrDkUCB

--HG--
extra : rebase_source : c45b52eec65cf8be83901cc6232db4a8decd231e
2017-08-14 20:00:04 +09:00
Hiroyuki Ikezoe
4a2f4eaddc Bug 1388692 - When doing hit testing, only flush animations if there are throttled compositor animations. r=birtles
This patch changes UpdateAnimationOnlyStyles to only flush animation styles if
there are throttled animation styles that could affect hit-testing and renames
the function to UpdateAnimationStylesForHitTesting at the same time.

For GeckoRestyleManager, the original UpdateAnimationOnlyStyles which flushes
animation styles if there are any pending animation styles, is renamed to
UpdateAnimationStyles for consistency.

MozReview-Commit-ID: 89UleXjI2OE

--HG--
extra : rebase_source : cac59f9d48b096aee718f89ffe203d38d39027fd
2017-08-14 19:59:59 +09:00
Cameron McCormack
5c8409f775 Bug 1389937 - Test the actual expected order of @font-face cascading. r=xidorn
MozReview-Commit-ID: IrdrlLY5wTq

--HG--
extra : rebase_source : cbbbb4396f1133f2e7928de7e6f56c9b307ba73a
2017-08-14 17:14:30 +08:00
Fernando Jimenez Moreno
cc213edf84 Bug 1387932 - stylo: add exception to inspector's test_getRelativeRuleLine. r=xidorn
MozReview-Commit-ID: 7Oyc8aXmACX

--HG--
extra : rebase_source : ec92976d8d2f013c55a2c945d601e9a203b36e37
2017-08-11 19:22:10 +02:00
Cameron McCormack
93d3270b6f servo: Merge #18067 - geckolib: Return @font-face rules to Gecko in the expected cascade order (from heycam:fix-cascade); r=xidorn
From https://bugzilla.mozilla.org/show_bug.cgi?id=1389937.  Reviewed by Xidorn there.  Waiting until try server is back up and running before landing this, though.

Source-Repo: https://github.com/servo/servo
Source-Revision: b0422b89108301495520de88f2765c78f429692d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5c80f87c9194ffee54a7a1d5488b5b0ccd0bea56
2017-08-14 04:19:34 -05:00
Fernando Jimenez Moreno
57e62aef4f Bug 1387934 - stylo: inDOMUtils::SelectorMatchesElement should not match with bogus pseudo. r=xidorn
MozReview-Commit-ID: 8jG6dWzn8eI

--HG--
extra : rebase_source : 07bfa777b1ebb47e02046e0ab1030524456007fd
2017-08-14 12:28:58 +02:00
Sebastian Hengst
f728ede3a0 merge mozilla-central to autoland. r=merge a=merge 2017-08-14 11:58:38 +02:00
Sebastian Hengst
49882abddb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CExKztwYFsz
2017-08-14 11:57:21 +02:00
Sebastian Hengst
7aac93a5cc Backed out changeset bd9e37c5008d (bug 1382520) for failing mochitest browser/base/content/test/static/browser_all_files_referenced.js. r=backout
--HG--
rename : browser/extensions/onboarding/content/img/icons_singlesearch-colored.svg => browser/extensions/onboarding/content/img/icons_search-colored.svg
rename : browser/extensions/onboarding/content/img/icons_singlesearch.svg => browser/extensions/onboarding/content/img/icons_search.svg
2017-08-14 09:42:14 +02:00
Boris Chiou
250b7586bc servo: Merge #18068 - Fix the conversion from Perspective into ComputedMatrix (from BorisChiou:stylo/animation/perspective); r=birtles
We convert a perspective function into a ComputedMatrix, but we apply the
perspective length to a wrong matrix item. We should put it into m34,
instead of m43. m43 is for translate parameter Z.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1389023](https://bugzilla.mozilla.org/show_bug.cgi?id=1389023).
- [X] These changes do not require tests because we have many transform tests in Gecko already. However, those tests may not be enough, so we should add more in Gecko later.

Source-Repo: https://github.com/servo/servo
Source-Revision: cd1251082511a44ef9ad020b7196336bca812a49

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : fd5b13ac29076c2aed7c0c7778932ed7cfbd8b8d
2017-08-13 23:08:03 -05:00
James Cheng
98f82df9cb Bug 1390022 - Add Galaxy S4 SPH-L720 model into blacklist for disabling adaptive playback feature. r=jolin
MozReview-Commit-ID: 1UOT759az4S

--HG--
extra : rebase_source : ce0fdaab5f8d8d8b73dbc998422aac319c63eff5
2017-08-14 11:01:44 +08:00
Prathiksha
7648dc7f6b Bug 1390049 - Fix the Settings button string under Permissions in about:preferences#privacy by appending ellipses. r=rickychien
MozReview-Commit-ID: 4qkZd4srWiP

--HG--
extra : rebase_source : 3e74e3ac5fb556ba67f0620560361376ee464d38
2017-08-14 13:50:10 +05:30
Daisuke Akatsuka
d6d4c04b81 Bug 1382138 - Part 2: Add -moz-appearance property to moz prefixed properties test. r=hiro
Since we made -moz-appearance animatable, append to the moz prefixed properties
test.

MozReview-Commit-ID: 9tdouU1umEB

--HG--
extra : rebase_source : 79e9639360461452249ce54ff538294f25b6cd4f
2017-08-14 16:27:05 +09:00
Daisuke Akatsuka
3045c90ee9 servo: Merge #18066 - Make -moz-appearance animatable (from dadaa:make-moz-appearance-animatable); r=hiro
<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes. The test code is patch part 2 in https://bugzilla.mozilla.org/show_bug.cgi?id=1382138

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: f93c6dfbd54f1ec40a0feba12932ef5aac379624

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 98467479ffc5ff76f72403be82321be487380d65
2017-08-14 02:24:47 -05:00
John Dai
5abb05dc54 Bug 1299363 - Part 6: Add tests for custom element upgrade. r=wchen
MozReview-Commit-ID: HsmtLzg9qP5

--HG--
extra : rebase_source : 99e670bd2a08b02f68818bfca5a410625e5aa7ee
extra : histedit_source : 669c2d72773079d6b0f24da012f5cde1444c898c
2017-08-13 16:40:49 +08:00
johndai1984
59be6e40c0 Bug 1299363 - Part 5-2: Implement new upgrade steps. r=bz, r=wchen
MozReview-Commit-ID: 34fIWSKUqyp

--HG--
extra : rebase_source : 3d7af3b1b262ab16c8d70e7389c0534c9261f3f0
extra : histedit_source : 8fd8debbc337ba260c4ec6384026a796bfd00021
2017-08-13 16:40:37 +08:00
Daisuke Akatsuka
2b35044776 Bug 1376495: Add expected value on traistion test for Servo. r=boris
Now, clip-path can animate as basic-shape in CSS Transitions.
However, the serialization of computed value both Gecko and Servo is
difference. Also, the serialization of Servo is correct.
Therefor, add the expected value for Servo.

MozReview-Commit-ID: 5hr2PRlLnPd

--HG--
extra : rebase_source : 417faa4d8819cd8d1fd2c7c79df1f54efdc2086b
2017-08-12 14:50:36 +09:00
Masayuki Nakano
5345065a53 Bug 1388647 - part2: Make IMEInputHandler of Cocoa widget handle request to commit/cancel composition synchronously r=m_kato
When Gecko started to support Cocoa widget, we needed to use NSInputManager.
That allowed applications to access only focused IME context.  Therefore, commit
composition request handler for Cocoa is designed as handling asynchronosly if
it's requested when the window is not active or is being inactivated.

Additionally, the asynchronous handling isn't perfect.  We hit some MOZ_ASSERT()
now in some places.  E.g., in SelectedRange(), it doesn't assume that it's
called during deactive.

On the other hand, NSInputManager was alreay obsolete and we already stopped using it
(bug 810225).  Instead, we're using NSTextInputContext and it allows applications
to access IME anytime.  Therefore, if we make IMEInputHandler handles commit/cancel
composition requests synchronsly, that behaves same as the other platforms.  So, we
can get rid of macOS specific issue completely.

MozReview-Commit-ID: X7aWmGq95x

--HG--
extra : rebase_source : a472a03e3ef6f424fe73c2d438b8326bed80278d
2017-08-09 18:41:19 +09:00
Masayuki Nakano
9467d56cf9 Bug 1388647 - part1: IMEStateManager::OnChangeFocusInternal() shouldn't request to commit composition with sFocusedIMETabParent r=m_kato
When a remote process has focus and it loses focus,
IMEStateManager::OnChangeFocusInternal() sends NOTIFY_IME_OF_BLUR via
IMEStateManager::NotifyIMEOfBlurForChildProcess().  Therefore,
sFocusedIMETabParent and sFocusedIMEWidget are set to nullptr here. So, if a
window becomes active, REQUEST_IME_TO_COMMIT_COMPOSITION in
IMEStateManager::OnChangeFocusInternal() won't work because
IMEStateManager::NotifyIME() ignores the request because of coming from wrong
process.

Therefore, IMEStateManager::OnChangeFocusInternal() needs to send
REQUEST_TO_COMMIT_COMPOSITION with proper process information which is only
stored by TextComposition instance.

MozReview-Commit-ID: KNEvOoQtK1E

--HG--
extra : rebase_source : 2d0c9297a6ffd3e7883130c80deec0479212148e
2017-08-09 18:04:28 +09:00
Ethan Lin
1d1cb1f032 Bug 1388634 - Set correct sampling filter when pushing image. r=kats
MozReview-Commit-ID: BkKbL2l0AYb

--HG--
extra : rebase_source : 0fb6b785ddf00df2aa1452c3b16cbad3978386df
2017-08-09 14:27:46 +08:00
Timothy Guan-tin Chien
4061434d79 Bug 1384830 - Show search result as the user types in Preferences search, r=jaws
This patch changes the event to listen on the search textbox from "command" to
"input", which means the code will run with every keystroke, instead of once
a few keystrokes after a timeout. It will make the search very responsive.

However, with that change, each keystroke will be blocked by the search function,
which go through the entire DOM of the page. This patch fixes that by making the
search function async. The search will now check the execution time with
Performance API, and give way when it blocks the page for more than 1/60 sec.

Further care was taken to make sure page won't flash unchecked content while
the loop go through the entire DOM. The elements to be checked can't be hidden
because of the JS bindings, so CSS rules are set to ensure they are kept
visually hidden. Unfortunately, CSS cannot change XUL layout so they still
occupies page space.

Additional check was made to make sure the search function skips hidden elements,
if the previous query is a substring of the search query. This is done so that
search function does not unhide and hide these elements, and causes the search
result to flash as the user types.

MozReview-Commit-ID: BwBoJmTperw

--HG--
rename : browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_1.js => browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_5.js
rename : browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_2.js => browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_6.js
rename : browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_3.js => browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_7.js
rename : browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_4.js => browser/components/preferences/in-content-new/tests/browser_search_subdialogs_within_preferences_8.js
extra : rebase_source : 2f1b6cd9f50d79c24dcddc22c61c50d347ddf3f0
2017-08-03 14:32:45 +08:00
gasolin
8b1e966bee Bug 1383505 - add test to make sure onboarding show the first uncomplete tour by default;r=mossop
MozReview-Commit-ID: APOBLLS6Pga

--HG--
extra : rebase_source : 9f7e0792416cbe9a3f62ef900f04cd75ada1f1a7
2017-08-03 10:18:11 +08:00
Fischer.json
cf9df2fcb0 Bug 1382520 - Place visual assets of onboarding tours of version 57, r=mossop
MozReview-Commit-ID: 4mfhRoseVZv

--HG--
rename : browser/extensions/onboarding/content/img/icons_search-colored.svg => browser/extensions/onboarding/content/img/icons_singlesearch-colored.svg
rename : browser/extensions/onboarding/content/img/icons_search.svg => browser/extensions/onboarding/content/img/icons_singlesearch.svg
extra : rebase_source : 2638454e8c7bc11d77a68aa1e5a845a40417b974
2017-08-11 14:50:55 +08:00
Nicholas Nethercote
57c26c9834 Bug 1387956 - Overhaul ComputedValues measurement, and add style structs measurement. r=bholley.
This patch moves measurement of ComputedValues objects from Rust to C++.
Measurement now happens (a) via DOM elements and (b) remaining elements via
the frame tree. Likewise for the style structs hanging off ComputedValues
objects.

Here is an example of the output.

> ├──27,600,448 B (26.49%) -- active/window(https://en.wikipedia.org/wiki/Barack_Obama)
> │  ├──12,772,544 B (12.26%) -- layout
> │  │  ├───4,483,744 B (04.30%) -- frames
> │  │  │   ├──1,653,552 B (01.59%) ── nsInlineFrame
> │  │  │   ├──1,415,760 B (01.36%) ── nsTextFrame
> │  │  │   ├────431,376 B (00.41%) ── nsBlockFrame
> │  │  │   ├────340,560 B (00.33%) ── nsHTMLScrollFrame
> │  │  │   ├────302,544 B (00.29%) ── nsContinuingTextFrame
> │  │  │   ├────156,408 B (00.15%) ── nsBulletFrame
> │  │  │   ├─────73,024 B (00.07%) ── nsPlaceholderFrame
> │  │  │   ├─────27,656 B (00.03%) ── sundries
> │  │  │   ├─────23,520 B (00.02%) ── nsTableCellFrame
> │  │  │   ├─────16,704 B (00.02%) ── nsImageFrame
> │  │  │   ├─────15,488 B (00.01%) ── nsTableRowFrame
> │  │  │   ├─────13,776 B (00.01%) ── nsTableColFrame
> │  │  │   └─────13,376 B (00.01%) ── nsTableFrame
> │  │  ├───3,412,192 B (03.28%) -- servo-style-structs
> │  │  │   ├──1,288,224 B (01.24%) ── Display
> │  │  │   ├────742,400 B (00.71%) ── Position
> │  │  │   ├────308,736 B (00.30%) ── Font
> │  │  │   ├────226,512 B (00.22%) ── Background
> │  │  │   ├────218,304 B (00.21%) ── TextReset
> │  │  │   ├────214,896 B (00.21%) ── Text
> │  │  │   ├────130,560 B (00.13%) ── Border
> │  │  │   ├─────81,408 B (00.08%) ── UIReset
> │  │  │   ├─────61,440 B (00.06%) ── Padding
> │  │  │   ├─────38,176 B (00.04%) ── UserInterface
> │  │  │   ├─────29,232 B (00.03%) ── Margin
> │  │  │   ├─────21,824 B (00.02%) ── sundries
> │  │  │   ├─────20,080 B (00.02%) ── Color
> │  │  │   ├─────20,080 B (00.02%) ── Column
> │  │  │   └─────10,320 B (00.01%) ── Effects
> │  │  ├───2,227,680 B (02.14%) -- computed-values
> │  │  │   ├──1,182,928 B (01.14%) ── non-dom
> │  │  │   └──1,044,752 B (01.00%) ── dom
> │  │  ├───1,500,016 B (01.44%) ── text-runs
> │  │  ├─────492,640 B (00.47%) ── line-boxes
> │  │  ├─────326,688 B (00.31%) ── frame-properties
> │  │  ├─────301,760 B (00.29%) ── pres-shell
> │  │  ├──────27,648 B (00.03%) ── pres-contexts
> │  │  └─────────176 B (00.00%) ── style-sets

The 'servo-style-structs' and 'computed-values' sub-trees are new. (Prior to
this patch, ComputedValues under DOM elements were tallied under the the
'dom/element-nodes' sub-tree, and ComputedValues not under DOM element were
ignored.) 'servo-style-structs/sundries' aggregates all the style structs that
are smaller than 8 KiB.

Other notable things done by the patch are as follows.

- It significantly changes the signatures of the methods measuring nsINode and
  its subclasses, in order to handle the tallying of style structs separately
  from element-nodes. Likewise for nsIFrame.

- It renames the 'layout/style-structs' sub-tree as
  'layout/gecko-style-structs', to clearly distinguish it from the new
  'layout/servo-style-structs' sub-tree.

- It adds some FFI functions to access various Rust-side data structures from
  C++ code.

- There is a nasty hack used twice to measure Arcs, by stepping backwards from
  an interior pointer to a base pointer. It works, but I want to replace it
  with something better eventually. The "XXX WARNING" comments have details.

- It makes DMD print a line to the console if it sees a pointer it doesn't
  recognise. This is useful for detecting when we are measuring an interior
  pointer instead of a base pointer, which is bad but easy to do when Arcs are
  involved.

- It removes the Rust code for measuring CVs, because it's now all done on the
  C++ side.

MozReview-Commit-ID: BKebACLKtCi

--HG--
extra : rebase_source : 4d9a8c6b198a0ff025b811759a6bfa9f33a260ba
2017-08-11 16:37:33 +10:00
Nicholas Nethercote
cb12286e7a servo: Merge #18065 - Overhaul ComputedValues measurement, and add style structs measurement (from nnethercote:bug-1387956); r=bholley
<!-- Please describe your changes on the following line: -->

See https://bugzilla.mozilla.org/show_bug.cgi?id=1387956.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because the tests are in Gecko.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 0eabba3c6fa232fd732eb2127f8fe285efd04288

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b7934ee159cccbbd1908828b700c4ff5c8fda5a4
2017-08-13 21:07:01 -05:00
Henry Chang
3fd3e9e316 Bug 1381744 - Extend current web-platform test to do data:css same-origin check. r=heycam
MozReview-Commit-ID: 2NYfdBEh3TW

--HG--
extra : rebase_source : b07dd822963f47b80063d5f2c02c9950151df3c3
extra : intermediate-source : 492ae735ac45ae0b7284e10414751885b9b1a757
extra : source : e2dfcb4b095c10fd1d4ea49b8a06aa2fe8852b0b
2017-08-08 18:36:10 +08:00
Henry Chang
c59973e89a Bug 1381744 - New web-platform test case for data:font same-origin check. r=heycam
MozReview-Commit-ID: AFSf532NLVl

--HG--
extra : rebase_source : e14e43c4f21cda61c8f8d73849b234cc20fbc33f
extra : intermediate-source : 2e8e6a40f41ab9aee1834c8124ed71591dfc547e
extra : source : 3905490bbcaecbf00073d7afda9adcdd3d45ff96
2017-08-10 17:35:54 +08:00
Sebastian Hengst
7aba8fd282 merge mozilla-central to autoland. r=merge a=merge 2017-08-14 01:31:43 +02:00
Sebastian Hengst
d98ea1f774 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FzIkMLHbOh2
2017-08-14 01:30:32 +02:00
Sebastian Hengst
924b0ba508 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUnN9pacyFH
2017-08-14 01:28:24 +02:00
Emilio Cobos Álvarez
4f1b65a21c Bug 1382925: Update test expectations for fewer timeouts. r=me
Yay

MozReview-Commit-ID: DiYzdXxjNqL
2017-08-14 00:37:03 +02:00
Anthony Ramine
8a1079fef4 servo: Merge #18058 - Introduce and derive ComputeSquaredDistance (from servo:compute-squared-distance); r=emilio
This new trait merges the former `Animatable` methods `compute_distance` and `compute_squared_distance`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 60c44b072c12d65d70649391631dd28f1d939b65

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9ed43b92d954d6fd6248f8e39a194bb0488957fd
2017-08-13 16:23:58 -05:00
Sebastian Hengst
3c06a153af Backed out changeset 33901272db44 (bug 1382520) for packaging failure. r=backout 2017-08-14 00:17:51 +02:00
Sebastian Hengst
cc2172ea89 Backed out changeset 7581c0c154de (bug 1377911) for causing bug 1389798. r=backout a=backout
MozReview-Commit-ID: CoDDnory94m
2017-08-13 20:27:05 +02:00
ffxbld
6482c8a5fa No bug, Automated HPKP preload list update from host bld-linux64-spot-304 - a=hpkp-update 2017-08-13 09:49:25 -07:00