Nicholas Nethercote
ec89bbf7f2
Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj.
2016-01-05 17:08:45 -08:00
L. David Baron
e729cb0a30
Bug 1228934 - Remove style, weight, and stretch parameters from nsFont constructor. r=jdaggett
...
--HG--
extra : commitid : AjhXsILlXJt
2015-11-30 16:23:09 -08:00
L. David Baron
bf50ef11b4
Bug 1228501 patch 1 - Remove decorations parameter to nsFont constructors. r=jdaggett
...
The removed parameter is always 0.
--HG--
extra : commitid : 2YNm9lizlzt
2015-11-30 14:02:25 -08:00
Carsten "Tomcat" Book
681c0ef404
Backed out changeset e1fd92eeb5ba (bug 1228501)
2015-11-30 12:10:40 +01:00
L. David Baron
c3ea47d074
Bug 1228501 patch 1 - Remove decorations parameter to nsFont constructors. r=jdaggett
...
The removed parameter is always 0.
--HG--
extra : commitid : 2nTtt0E9Syb
2015-11-29 23:15:01 -08:00
Xidorn Quan
ee559c1cab
Bug 1040668 part 13 - Move first part of nsStyleFont::GetLanguage to nsPresContext::GetContentLanguage. r=dbaron
...
--HG--
extra : source : 2878e5e63e111995b4a67cd72b0df5a5a2b6531f
2015-11-28 11:56:33 +11:00
Mats Palmgren
91c762fa9b
Bug 576927 - Use saturating multiply when calculating zoomed app units to avoid integer overflow. r=roc
2015-11-16 17:32:39 +01:00
Wes Kocher
e4aa9d36de
Backed out changeset cbc8ceae73a2 (bug 576927) for test_value_cloning.html bustage CLOSED TREE
...
--HG--
extra : commitid : KD1fFkxta16
2015-11-16 11:00:32 -08:00
Mats Palmgren
313a973bc0
Bug 576927 - Use saturating multiply when calculating zoomed app units to avoid integer overflow. r=roc
2015-11-16 17:32:39 +01:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Botond Ballo
705ac24ef9
Bug 1205511 - Give nsPresContext a method that returns the CSS to device pixel scale. r=dbaron
...
--HG--
extra : source : 50b0470193cef87e4292aee14dc940b39864832d
2015-09-28 20:13:52 -04:00
Xidorn Quan
5d040064dc
Bug 1201798 part 2 - Update viewport scrollbar override for fullscreen and remove the leagcy css rule. r=roc
...
--HG--
extra : source : 339b4099bd0fa78b54befdfb55bebfbb98a46c14
2015-09-30 10:48:41 +10:00
Xidorn Quan
0e00ba39ac
Bug 1201798 part 1 - Move PropagateScrollToViewport() from nsCSSFrameConstructor to nsPresContext as a public method. r=roc
...
--HG--
extra : source : bfbd88293e3701653f3f7ab393239f69265561a8
2015-09-30 10:48:41 +10:00
Cameron McCormack
54e04d5eff
Bug 1203766 - Part 4: Add a "restyle generation" counter, which increments whenever we process pending restyles. r=bzbarsky
2015-09-17 12:08:20 +10:00
Daniel Holbert
14faf6467e
Bug 1195857: Make nsPresContext::HasAuthorSpecifiedRules()'s arg 'const', to remove need for const_cast in callers. r=jwatt
2015-08-18 15:41:24 -07:00
Birunthan Mohanathas
2b4a52cf2e
Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
edbcd5e014
Bug 1185763 - Part 1: Always use mozilla::Move with nsTArray::MoveElementsFrom. r=froydnj
2015-08-11 08:29:46 -07:00
Daniel Holbert
7f7ddf2033
Bug 1183786 - Part 3: Make nsPresContext helper-function return already_AddRefed instead of bool+outparam. r=tn
2015-08-03 17:13:07 -07:00
Eric Rahm
0a5b83be7b
Bug 1183786 - Part 2: Delay updating after prefs changed if detached. r=tn r=dholbert
2015-07-30 20:47:26 -07:00
Eric Rahm
9287574901
Bug 1183786 - Part 1: Refactor timer setup code into a helper function. r=dholbert
2015-07-30 14:24:51 -07:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Michael Layzell
7a3f88beaa
Bug 1167406 - Mark nsRootPresContext::RunWillPaintObservers::mPresContext as MOZ_NON_OWNING_REF. r=dbaron
...
--HG--
extra : rebase_source : 86a4d3a30240c7d00a0c65a66c968e66cb2ab5e8
2015-06-17 11:48:00 +02:00
Cameron McCormack
e32a5afe7f
Bug 1161413 - Part 4: Move FontFaceSet ownership from nsPresContext to nsIDocument. r=smaug
2015-06-27 11:39:54 +10:00
Cameron McCormack
dd81f3c902
Bug 1169512 - Add and remove quirk.css rather than enable and disable a clone of it. r=jwatt
2015-06-26 13:49:58 +10:00
Michael Layzell
844a54d17f
Bug 1167402 - Mark nsPresContext::mLinkHandler as MOZ_NON_OWNING_REF. r=dbaron
...
--HG--
extra : rebase_source : 07f40be887154af524ad5c8288122aa549507a58
2015-06-16 08:30:00 -04:00
Michael Layzell
a811337e33
Bug 1168180 - Mark nsPresContext::mShell as MOZ_NON_OWNING_REF. r=dbaron
...
--HG--
extra : rebase_source : d2bd620caa680978c30f0797f07169625e97c65c
2015-06-16 08:25:00 -04:00
Michael Layzell
e2e244b4e9
Bug 1168179 - Mark nsPresContext::mMedium as MOZ_UNSAFE_REF. r=dbaron
...
--HG--
extra : rebase_source : abbb50b03b3f1058a8febac0fd5db368118ef97d
2015-06-16 08:17:00 -04:00
David Parks
c485e27130
Bug 1125325 - Make TabParent/TabChild UpdateDimensions messages aware of the display scale. r=kats
...
When connecting a lowdpi external monitor on hidpi mac, TabChild gets an
UpdateDimensions call, followed by a UIResolutionChanged call. After
the UpdateDimensions call, the content process is in an incorrect state
where it has the dimensions of the new display and scale of the old one.
After the UIResolutionChanged message, the values are again consistent.
In the interim, reflow resizes layers based on the incorrect (old) scale
and subsequently uses those incorrect values when the new scale comes
in. This patch normalizes the message parameters by dividing by scale
(the result is what OS X calls point coordinates) so that this doesn't happen.
2015-06-07 22:39:28 -07:00
Kartikaya Gupta
eb7580bebc
Back out 3 csets from bug 1125325 for introducing bug 1173224. r=me
2015-06-10 15:55:34 -04:00
David Parks
f412d3f7b6
Bug 1125325 - Make TabParent/TabChild UpdateDimensions messages aware of the display scale. r=kats
...
When connecting a lowdpi external monitor on hidpi mac, TabChild gets an
UpdateDimensions call, followed by a UIResolutionChanged call. After
the UpdateDimensions call, the content process is in an incorrect state
where it has the dimensions of the new display and scale of the old one.
After the UIResolutionChanged message, the values are again consistent.
In the interim, reflow resizes layers based on the incorrect (old) scale
and subsequently uses those incorrect values when the new scale comes
in. This patch normalizes the message parameters by dividing by scale
(the result is what OS X calls point coordinates) so that this doesn't happen.
2015-06-07 22:39:28 -07:00
Cameron McCormack
e567ca4a56
Bug 1162366 - Fix spelling of nsPresContext::mSupressResizeReflow and associated methods. r=dholbert
...
--HG--
extra : rebase_source : dac8dd0f388b5f14231572f57608052439f14951
2015-05-06 20:56:00 -04:00
Andrea Marchesini
085da9302a
Bug 1156632 - Remove unused forward class declarations - patch 5 - rdf, parser, layout and something else, r=ehsan
2015-04-22 08:29:22 +02:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jonathan Kew
eda6f033e5
Bug 1138495 - pt 3 - Compute font inflation based on inline-axis dimensions rather than always using physical width. r=smontagu
2015-03-10 14:28:23 +00:00
John Daggett
af0ef7b9f2
Bug 935862 p3 - implement selective reflow for downloadable fonts. r=heycam
2015-03-06 17:44:23 +09:00
John Daggett
0e183d4c4d
Bug 935862 p1 - add flag for ex/ch unit usage. r=heycam
2015-03-06 17:44:14 +09:00
Jim Mathies
7149a4e627
Bug 1095754 - Rather than apply geometry updates to plugins in the content process, collect updates and stash them in the shadow layer forwarder so that on the next composite, they update with the remote layer tree. r=roc
2015-01-29 13:41:54 -06:00
L. David Baron
2c4447faf5
Bug 1115691 patch 1 - Store counts of frames constructed and reflowed on the pres context. r=roc
...
(I've tested the frame construction counts in my test for bug 1110277; I
haven't actually tested the reflow counts.)
2015-01-11 15:43:10 -08:00
Fernando Jimenez Moreno
c4551483eb
Bug 1101029 - Overlay iframe on top of front-most app. r=roc, sicking
2015-01-09 09:55:18 +01:00
Jonathan Kew
b77ae133f8
Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett
2014-12-22 16:35:54 +00:00
Gijs Kruitbosch
d1d9d27161
Bug 639134 - change document color pref to tristate, r=dbaron
2014-11-27 19:06:14 +00:00
Neil Deakin
4d77f120ba
Bug 1072342
, propagate the window activation state down to child process windows, r=smaug,mstange
2014-11-27 08:28:26 -05:00
Boris Zbarsky
d474b181de
Bug 771043. Move MediaQueryList tracking from the prescontext to the document, so they will correctly outlive prescontext changes. r=dbaron
2014-10-03 14:15:25 -04:00
Brian Birtles
b8775a0cfa
Bug 1073336 part 3b - Add nsPresContext::ClearLastStyleUpdateForAllAnimations; r=dbaron
2014-11-17 13:45:57 +09:00
John Schoenick
1218c93b60
Bug 1090530
- Ensure that we unregister preference observers in nsPresContext unlink. r=roc
2014-10-30 14:49:01 -07:00
Kearwood (Kip) Gilbert
66cbd490cf
Bug 1010538 - Part 2 - Add scroll-behavior to ScrollbarStyles. r=mstange
...
- ScrollbarStyles extended to support the scroll-behavior CSS property
- Corrected naming of parameters to ScrollbarStyles CTOR
2014-09-15 12:30:00 -07:00
L. David Baron
b049f8117f
Bug 1047928 patch 13 - Don't rerun selector matching for changes to zoom, min font size, or app units per dev pixel. r=bzbarsky
2014-10-08 14:27:04 -07:00
L. David Baron
6cd790c1a2
Bug 1047928 patch 10 - Pass restyle hint to nsPresContext::MediaFeatureValuesChanged. r=bzbarsky
...
This patch is not intended to contain any changes in behavior.
The behavior changes in these callers are in the following 4 patches.
2014-10-08 14:27:03 -07:00
L. David Baron
9d6f04553e
Bug 1047928 patch 6 - Pass restyle hint to nsPresContext::PostRebuildAllStyleDataEvent. r=bzbarsky
...
This patch is not intended to contain any changes in behavior.
The behavior changes for these callers are in the following 2 patches.
2014-10-08 14:27:02 -07:00
L. David Baron
396b48143a
Bug 1047928 patch 3 - Pass restyle hint to nsPresContext::RebuildAllStyleData. r=bzbarsky
...
This patch is not intended to contain any changes in behavior.
The behavior changes for these callers are in the following patch.
2014-10-08 14:26:57 -07:00