Commit Graph

23217 Commits

Author SHA1 Message Date
Nathan Froyd
29e8bfeb34 Bug 1299594 - part 2 - remove opened actor tracking from IToplevelProtocol; r=billm
The only thing we needed opened actor tracking for was the ability to
clone all the actors.  But now that we no longer have support for
cloning actors, we no longer need to track the actors that we've cloned,
which makes a number of things significantly simpler.
2016-09-02 16:13:50 -04:00
Nathan Froyd
fff9bd3854 Bug 1299594 - part 1 - remove CloneManagees/CloneToplevel code from IPDL; r=billm
CloneOpenedToplevels, which is never called, is the only interesting
caller of CloneToplevel.  And CloneToplevel, in turn, is the only
interesting caller of CloneManagees.  Which means we can ditch all this
code for a decent amount of space savings, both in code and writable
static data (no more useless virtual function entries in vtables).
2016-09-02 16:13:50 -04:00
Nicolas Silva
bf9481d44e Bug 1088300 - Null-check TileClient::mAllocator. r=milan 2016-08-30 13:48:29 +02:00
Nicolas Silva
21ca5648d3 Bug 1088300 - Remove mCompositableClient from TileClient, pass the compositable and layer by reference to remove the possibility of unexpectedly storing null pointers. r=milan 2016-08-30 13:48:20 +02:00
Sotaro Ikeda
f4338e33b8 Bug 1299410 - Shrink TextureClientRecycleAllocator more aggressively r=nical 2016-09-02 02:05:58 -07:00
Nicholas Nethercote
b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Nicholas Nethercote
742fc7eb48 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
Emilio Cobos Álvarez
619cb14d87 Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz
The main renaming was generated with the following python script:

```

import sys
import re

CAMEL_CASE_REGEX = re.compile(r"(^|_|-)([A-Z])([A-Z]+)")
DISPLAY_REGEX = re.compile(r"\bNS_STYLE_DISPLAY_([^M][A-Z_]+)\b")

def to_camel_case(ident):
  return re.sub(CAMEL_CASE_REGEX,
                lambda m: m.group(2) + m.group(3).lower(), ident)

def constant_to_enum(constant):
  return "StyleDisplay::" + to_camel_case(constant) + ("_" if constant == "NONE" else "")

def process_line(line):
  return re.sub(DISPLAY_REGEX,
                lambda m: constant_to_enum(m.group(1)), line)

lines = []
with open(sys.argv[1], "r") as f:
  for line in f:
    lines.append(process_line(line))

with open(sys.argv[1], "w") as f:
  for line in lines:
    f.write(line)
```

And the following shell commands:

```
find . -name '*.cpp' -exec python display.py {} \;
find . -name '*.h' -exec python display.py {} \;
```

MozReview-Commit-ID: 91xYCbLC2Vf
2016-09-01 20:41:17 -07:00
Lee Salzman
8e129f50b3 Bug 1299738 - warn instead of crash if DrawTargetSkia's GetBitmapForSurface fails. r=mchang 2016-09-01 21:17:03 -04:00
Lee Salzman
0716a90344 Bug 1299485 - fix USE_SKIA_GPU ifdefs. r=mchang 2016-09-01 21:10:39 -04:00
Milan Sreckovic
9412980973 Bug 1205900: Automated test. r=me 2016-09-01 16:40:21 -04:00
Milan Sreckovic
4061321fa2 Bug 1088300: More diagnostic to see what went wrong. r=mchang 2016-09-01 16:27:08 -04:00
George Wright
0920a76f5e Bug 1280715 - Move FixedSizeShmemAllocator to CompositorBridgeChild to allow for a more sane destruction sequence r=nical 2016-09-01 12:31:38 -04:00
Ryan VanderMeulen
37b200a0c5 Merge autoland to m-c. a=merge 2016-09-01 12:11:51 -04:00
Ryan VanderMeulen
f2ae8f9bce Merge m-c to autoland. a=merge 2016-08-31 22:34:02 -04:00
James Willcox
6adf1a424f Bug 1298822 - Always invalidate layers when resuming the compositor r=BenWa 2016-08-31 16:24:06 -05:00
Kartikaya Gupta
114ff898bb Bug 1299488 - Remove TabParent::InjectTouchEvent as it is unused but error-prone. r=botond
MozReview-Commit-ID: EVBRK70veT1
2016-08-31 16:54:23 -04:00
Lee Salzman
af21c66e1e Bug 725119 - allow Skia as a content backend in gfxPlatform. r=mchang
MozReview-Commit-ID: GjIybnjz4wl
2016-08-31 15:53:08 -04:00
Botond Ballo
2af3f87bb6 Bug 1288686 - Avoid X11's |#define None 0L| intruding on other parts of the code. r=jrmuizel
MozReview-Commit-ID: 9rD0KLTLg7l

--HG--
extra : rebase_source : a537ba1913b6959e74fc4fcaf58f51f759cc5882
extra : source : 9278e13a7d664e787f763a7c21a32833700899e1
2016-08-29 16:51:43 -04:00
Ryan VanderMeulen
435c0addca Merge autoland to m-c. a=merge 2016-08-31 09:52:43 -04:00
Nicholas Nethercote
fb96bf1f91 Bug 1298722 - Use MOZ_MUST_USE in StyleAnimationValue. r=birtles.
--HG--
extra : rebase_source : c5b8cca624b9ffa7b3263b1aa7ce4f64dd80f13b
2016-08-30 16:10:59 +10:00
Makoto Kato
ec124dbfbd Bug 1299054 - Remove old Android support (API level < 15) from Gecko. r=snorp
MozReview-Commit-ID: K32YSqGsLf9

--HG--
extra : rebase_source : be0d3b3fc1146234efc75229171ea61258c46492
2016-08-30 14:11:55 +09:00
Milan Sreckovic
ff3ca93c38 Bug 1287316 - Release assert or deal with empty arrays. r=mstange
--HG--
extra : rebase_source : 07b022071bf63b213f78d361d18464cbcbf6b562
2016-08-30 18:38:30 -04:00
Ryan VanderMeulen
feb9c5a04a Merge m-c to inbound. a=merge 2016-08-30 09:59:38 -04:00
Ryan VanderMeulen
71d43e7c12 Merge inbound to m-c. a=merge 2016-08-30 09:52:55 -04:00
Nicholas Nethercote
346d5f4895 Bug 1296993 (part 7) - Streamline nsIWidget::CaptureRollupEvents. r=mstange.
This patch does the following.

- Removes the return value, because none of the call sites check it.

- Puts an empty implementation into nsBaseWidget.

- Removes the empty implementations from several nsIWidget instances, because
  they can use the nsBaseWidget one.

--HG--
extra : rebase_source : 2a94a47f1e7fe986d1efc3854c72968a3e28e365
2016-08-25 13:43:27 +10:00
Nicholas Nethercote
d8684f0659 Bug 1296993 (part 3) - Streamline nsIWidget::ConstrainPosition. r=mstange.
This patch does the following.

- Removes the return value, because none of the call sites check it.

- Puts an empty implementation into nsBaseWidget.

- Removes the empty implementations from several nsIWidget instances, because
  they can use the nsBaseWidget one.

--HG--
extra : rebase_source : ccf64aaa9364d096e1f060ef77be7e8455b11e1f
2016-08-25 13:43:27 +10:00
Nicholas Nethercote
ff02e25e13 Bug 1296993 (part 1) - Streamline nsIWidget::ReparentNativeWidget. r=mstange.
This patch does the following.

- Removes the return value, because none of the call sites check it.

- Puts an empty implementation into nsBaseWidget.

- Removes the empty implementations from several nsIWidget instances, because
  they can use the nsBaseWidget one.

--HG--
extra : rebase_source : e98b7f9970a920c39e941bb531dfc098125913d1
2016-08-25 13:43:26 +10:00
Sebastian Hengst
0aa16b8142 Backed out changeset a8ff54e28b15 (bug 1088300) for unused variable error in SingleTiledContentClient.h. r=backout on a CLOSED TREE 2016-08-30 14:06:14 +02:00
Sebastian Hengst
db7d0332c4 Backed out changeset 1ec40ecc63f8 (bug 1088300) 2016-08-30 14:05:23 +02:00
Nicolas Silva
653aa96fb8 Bug 1088300 - Null-check TileClient::mAllocator. r=milan 2016-08-30 13:48:29 +02:00
Nicolas Silva
f96d58b170 Bug 1088300 - Remove mCompositableClient from TileClient, pass the compositable and layer by reference to remove the possibility of unexpectedly storing null pointers. r=milan 2016-08-30 13:48:20 +02:00
Nicolas Silva
27169d083f Bug 1298378 - Pop clips from the corresponding target in gfxContext's style stack. r=Bas 2016-08-30 13:48:11 +02:00
Munro Mengjue Chiang
66b4d655fb Bug 1272877 - Allow access to derived Image classes; r=sotaro
MozReview-Commit-ID: 3fXjwaDN5KV

--HG--
extra : rebase_source : 7da96726ab3f9664f3dc9efb9927e1cfc1337c40
2016-08-23 15:44:40 +08:00
Ethan Lin
d2db92ebce Bug 1295742 - Add gfxCriticalNote for driver reset. r=jerry, r=dvander 2016-08-25 02:17:00 -04:00
Wes Kocher
08fbeaaf2e Merge m-c to autoland, a=merge 2016-08-29 17:57:01 -07:00
Lee Salzman
7cd3c97c52 Bug 1298833 - disable gamma correction in SkFontHost_cairo to match cairo-ft. r=mchang
MozReview-Commit-ID: Ee70HBUJxou
2016-08-29 16:36:09 -04:00
Kartikaya Gupta
143fd0431f Bug 1298084 - Manually tick the refresh driver to ensure the interrupted reflow happens when we want it to. r=tnikkel
MozReview-Commit-ID: 2q9hdZPjrPt

--HG--
extra : rebase_source : 0e3582d8495f28e28096457ab3cc5a53a6643b97
2016-08-29 16:22:57 -04:00
James Cheng
19a28705ea Bug 1297315 - Fix Wmaybe-uninitialized warning and get rid of goto statement in GLContextProviderGLX.cpp and GfxTexturesReporter.cpp. r=jgilbert
MozReview-Commit-ID: AUjK7HhatX6

--HG--
extra : rebase_source : 3df07981fdd0f7cff9576cff8fecf955522294bf
2016-08-23 14:30:37 +08:00
Nathan Froyd
76bc75d243 Bug 1298171 - store result of BitmapProperties1 in a temporary to avoid warnings; r=jrmuizel
MozReview-Commit-ID: ANy1vKc5p07

--HG--
extra : rebase_source : d2b43299ec7244bc5bccb21c96f6604f50b083e8
2016-08-29 10:31:25 -04:00
Yuri Kazuna
3a366477e0 Bug 1291481 - Represent direction enum as uint8_t in LayersMessages.ipdlh; r=birtles
MozReview-Commit-ID: 9RcyYqsdsaB
2016-08-27 16:50:29 +09:00
George Wright
b04020febc Bug 1293908 - Specify the LayersBackend to be used when creating Textures r=nical 2016-08-26 20:30:58 -04:00
Wes Kocher
cbdf3625fa Merge m-c to inbound, a=merge 2016-08-26 16:32:56 -07:00
Wes Kocher
f09e8fef1a Merge inbound to central, a=merge 2016-08-26 16:20:50 -07:00
Wes Kocher
493b1533ea Backed out changeset e82fc4bb4cc4 (bug 1298324) for windows build bustage a=backout
CLOSED TREE

--HG--
extra : amend_source : b780f41c130ad5be13c451b4bcbc2b8cfd5570a1
2016-08-26 14:07:32 -07:00
Ryan Hunt
4656974491 Bug 1298324 - Change D3D11DeviceStatus to a union. r=dvander
MozReview-Commit-ID: LCy2NSch39X
2016-08-26 13:32:39 -07:00
Lee Salzman
33c485e430 Bug 1297178 - disable explicit subpixel AA when not permitted in DrawTargetCairo::FillGlyphs. r=jrmuizel
MozReview-Commit-ID: 7VG7837zyh0
2016-08-26 15:28:28 -04:00
Milan Sreckovic
5459132cb1 Bug 1296731: Add parameter to GetAlignedStride and check for overflow. r=bas
MozReview-Commit-ID: 5Ptm0bxwKdG

--HG--
extra : rebase_source : 535f2fa2447a1401b76acc0b82ce210b3c4d6dfc
2016-08-25 13:57:39 -04:00
Kartikaya Gupta
fc01e735ec Bug 1298401 - Ensure that eNone scroll update types from the APZC don't prevent eUserAction scroll updates from getting sent. r=tnikkel
MozReview-Commit-ID: 7b9QN8knQUM

--HG--
extra : rebase_source : 1c5f4ec63d23b3c3f8bdf835c28c2915c8b42d02
2016-08-26 10:55:22 -04:00
Ryan VanderMeulen
628ab3deff Merge m-c to inbound. a=merge 2016-08-26 09:39:29 -04:00