Commit Graph

33 Commits

Author SHA1 Message Date
Timothy Nikkel
8ee980fb91 Bug 1241651. Remove nsPresContext::GetDisplayRootPresContext. r=mattwoodrow
It should no longer serve any purpose different from nsPresContext::GetRootPresContext.
2016-01-21 19:09:04 -06:00
Jonathan Kew
78f0829154 Bug 890156 - patch 6 - Update window placement code to work with desktop pixels, for per-monitor DPI support on Windows. r=emk 2015-12-03 13:19:50 +00:00
Bogdan Postelnicu
5b564d9dc0 Bug 1237227 - Check the return of context->GetDisplayRootPresContext() for validity. r=roc 2016-01-06 04:32:00 -05:00
Nicholas Nethercote
b4513bb5c0 Bug 1230047 (part 2) - Make several PaintWindow() functions use LayoutDevice coordinates. r=kats.
Specifically, the PaintWindow() functions in the following classes:
- nsIWidgetListener, and its subclasses nsView and nsWebBrowser;
- nsChildView;
- nsWindow (the one in widget/uikit/);
- nsViewManager.
2015-12-02 21:45:41 -08:00
Nicholas Nethercote
aa1114c018 Bug 1229237 (part 1) - Make nsIWidget::{Create,CreateChildren}() take a LayoutDeviceIntRect. r=botond. 2015-11-16 00:35:18 -08:00
Nicholas Nethercote
fef09fc527 Bug 1228125 (part 3) - Remove nsIWidget::GetClientBoundsUntyped(). r=botond. 2015-11-25 20:55:36 -08:00
Nicholas Nethercote
bae167ebf7 Bug 1228125 (part 1) - Remove nsIWidget::GetBoundsUntyped(). r=botond.
This requires adding a new overloading of LayoutDevicePixel::ToAppUnits and a
new PixelCastJustification: LayoutDeviceIsParentLayerForRCDRSF.
2015-11-25 20:32:47 -08:00
Nicholas Nethercote
7215329de9 Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.
2015-11-09 21:37:32 -08:00
Victor Porof
f79d1f92ef Bug 1211841 - Style off the main thread markers differently, r=jsantell 2015-10-28 11:00:52 +01:00
Victor Porof
a1499ed3b5 Bug 1202657 - Add markers for workers' message passing and serialization/deserialization, r=smaug, jsantell, tromey, ejpbruel 2015-10-21 23:10:05 +02:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
46cd87c401 Bug 1207161 - fix run-by-dir leak in test_bug846906.xul; r=mccr8 2015-10-12 21:41:35 -04:00
Victor Porof
473b0a4e82 Bug 1195232 - Stop using TracingMetadata from GeckoProfiler.h, r=tromey 2015-08-31 16:14:14 +02:00
Victor Porof
d3b7c864af Bug 1050498 - Record compositing operations, r=jsantell,smaug,tromey 2015-08-25 08:51:58 +03:00
George Wright
44888c310e Bug 1157941 - If the current PresShell is suppressed, paint the old one if it is available r=tn,Enn 2015-07-21 21:09:02 -04:00
Andrew Comminos
8ce4bf1ddd Bug 1177171 - Round widget coordinates on GTK3. r=karlt 2015-06-29 11:50:00 -04:00
Timothy Nikkel
4041d0b155 Bug 1159772. Don't let nsContainerFrame::SyncWindowProperties make widget calls that can result in synchronous painting during reflow or frame construction. r=mats
Specifically on Windows nsIWidget::SetTransparencyMode can result in sync painting.

So we give nsContainerFrame::SyncWindowProperties a sync or async option and use the view manager post pending update infrastructure to flush SyncWindowProperties calls async.
2015-05-04 14:29:19 -05:00
Nicolas Silva
d93b5d5970 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Ehsan Akhgari
50a875bed7 Bug 1156110 - Make nsView::mWindow an nsCOMPtr; r=roc 2015-04-19 16:44:15 -04:00
Mats Palmgren
53e122f6fd Bug 1149035 - Make nsXULPopupManager::PopupResized take a LayoutDeviceIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 11:36:01 -04:00
Carsten "Tomcat" Book
c9a6e1a8e0 Backed out changeset 9ac36968bff2 (bug 1149035) 2015-03-30 15:03:30 +02:00
Mats Palmgren
73daa2a1b7 Bug 1149035 - Make nsXULPopupManager::PopupResized take a LayoutDeviceIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00
Timothy Nikkel
67581c6b64 Bug 1144951. Rename ConvertAppUnits to ScaleToOtherAppUnits. r=mats 2015-03-26 16:44:40 -05:00
Nicholas Nethercote
ee41df7dc2 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
1ee96e7527 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Robert O'Callahan
d351d1ea08 Bug 1129774. Part 6: Remove aContext parameter from nsIWidget::CreateChild. r=jmathies 2015-02-05 18:38:47 +13:00
Robert O'Callahan
40382b5946 Bug 1129774. Part 4: Remove aContext parameter from AttachViewToTopLevel. r=jmathies 2015-02-05 18:33:49 +13:00
Nicholas Nethercote
0a02b5d31c Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
David Zbarsky
792f700e75 Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Karl Tomlinson
f50b25aa80 bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
--HG--
extra : rebase_source : 220ede5d449a752c16064bb77905bc68af3df707
2014-11-14 00:53:02 +13:00
Karl Tomlinson
2ceb8d1823 backout bug 1096132 for Mac build failure
--HG--
extra : rebase_source : 6994fe50e8fb1a4f89298e1b9ad1c714acdfe39e
2014-11-12 16:02:34 +13:00
Karl Tomlinson
c08f9a6639 bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
--HG--
extra : rebase_source : 113b249f2cb6f1619e0b1a495655726b5100038b
2014-11-08 17:48:14 +13:00
Birunthan Mohanathas
7fa4906769 Bug 1044448 - Flatten view/{public,src}/ directories. r=roc
--HG--
rename : view/src/Makefile.in => view/Makefile.in
rename : view/src/nsView.cpp => view/nsView.cpp
rename : view/public/nsView.h => view/nsView.h
rename : view/src/nsViewManager.cpp => view/nsViewManager.cpp
rename : view/public/nsViewManager.h => view/nsViewManager.h
2014-07-28 18:02:44 -07:00