Mats Palmgren
89416847ae
Bug 1340771 part 2 - Introduce a WeakFrame class for heap allocated weak frame pointers, stored in a hashtable for fast lookup. r=tn
...
* * *
Bug 1340771 part 3 - Change existing heap allocated AutoWeakFrame instances to use WeakFrame instead. r=tn
MozReview-Commit-ID: GSuUiy98jBa
2017-03-01 18:03:14 +01:00
Mats Palmgren
7c43dcf986
Bug 1340771 part 1 - Rename nsWeakFrame to AutoWeakFrame (automated change). r=tn
...
MozReview-Commit-ID: 8pl4nyeGEkr
2017-03-01 18:03:14 +01:00
Timothy Nikkel
d5fa93e35b
Bug 1340451. Don't use weak frames for reflow callbacks in nsMenuFrame. r=mats
...
Weak frames are stored in a linked list, so are not fast. Hence they are not meant to be used when there can be a lot of them active at the same time. When constructing large selects with lots of options we create one for every option.
There's no need to use a weak frame for a reflow callback as we can just cancel the reflow callback in the Destroy function.
2017-02-18 02:13:40 -06:00
beachjar
83577879ac
Bug 1316597 Prevent immediate opening and closing of select dropdowns when anchored on selection r=enndeakin+6102
...
MozReview-Commit-ID: CkKTh2j2vZF
2016-11-18 11:46:42 -05:00
Neil Deakin
86d770c8a3
Bug 1313131, don't wrap when using cursor navigation in menus onr dropdowns on Mac, or dropdowns on Windows, r=ksteuber
2016-11-17 09:56:43 -05:00
Carsten "Tomcat" Book
f184be4ebd
Backed out changeset 4ed7a34ea7ab (bug 1313131)
2016-11-17 15:42:45 +01:00
Neil Deakin
9da3647006
Bug 1313131, don't wrap when using cursor navigation in menus onr dropdowns on Mac, or dropdowns on Windows, r=ksteuber
2016-11-17 09:28:27 -05:00
Neil Deakin
125b949a34
Bug 1305362, skip disabled menuitems in menulists on all platforms, r=ksteuber
2016-10-17 11:56:34 -04:00
Neil Deakin
a95143ba64
Bug 1307793, pressing space when menulist is ofocused should perform incremental find select rather than open the menu, r=ksteuber
2016-10-12 09:18:08 -04:00
Neil Deakin
24f1b04c80
Bug 52106, open menulist popup with selection over cursor, r=mstange
2016-08-11 10:37:25 -04:00
Masayuki Nakano
f75bc688b3
Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
...
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.
MozReview-Commit-ID: JMT614copjG
2016-05-13 16:06:18 +09:00
Masayuki Nakano
55b60a37e4
Bug 1254755 part.1 Rename WidgetKeyboardEvent::keyCode to WidgetKeyboardEvent::mKeyCode r=smaug
...
And also WidgetKeyboardEvent::mKeyCode should be compared with NS_VK_* rather than nsIDOMKeyEvent::DOM_VK_*.
MozReview-Commit-ID: IKjQ1nr8XYe
2016-05-12 17:13:49 +09:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
L. David Baron
6fb63a21d2
Bug 1053986 - Rename nsBox::DoLayout to DoXULLayout. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
(While this wasn't explicitly reviewed, I'm considering it as r=dholbert
based on the request in comment 47 in the bug.)
MozReview-Commit-ID: 6Q0F4ViOyjJ
2016-04-20 21:28:35 -07:00
L. David Baron
678819f59f
Bug 1053986 - Rename nsIFrame::AddCSSPrefSize, AddCSSMinSize, AddCSSMaxSize, and AddCSSFlex by replacing CSS with XUL. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: BTsQw1EMqvY
2016-04-20 21:28:34 -07:00
L. David Baron
3d37ecce2b
Bug 1053986 - Rename nsIFrame::SetDebug to SetXULDebug. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: KQYtO7JS2Zm
2016-04-20 21:28:34 -07:00
L. David Baron
b94d981327
Bug 1053986 - Rename nsIFrame::GetBorderAndPadding to GetXULBorderAndPadding. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: A8rWLW213Uo
2016-04-20 21:28:32 -07:00
L. David Baron
a66b07471f
Bug 1053986 - Rename nsIFrame::IsCollapsed to IsXULCollapsed, and related methods. r=dholbert
...
This is a manual subset of changes written with sed, over .h and .cpp
files in layout/. It's a subset because there is also a Selection
method called IsCollapsed, which is not changed here.
MozReview-Commit-ID: 9JgnPv0Hkff
2016-04-20 21:28:32 -07:00
L. David Baron
62a468a6c1
Bug 1053986 - Rename nsIFrame::GetFlex to GetXULFlex. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: DNL01eSXB73
2016-04-20 21:28:31 -07:00
L. David Baron
8f4665f9af
Bug 1053986 - Rename nsIFrame::GetMaxSize to GetXULMaxSize, and related methods. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: 39fYXMz7kqR
2016-04-20 21:28:31 -07:00
L. David Baron
0527201e1d
Bug 1053986 - Rename nsIFrame::GetPrefSize to GetXULPrefSize, and related methods. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: yvcAZ8rndu
2016-04-20 21:28:31 -07:00
L. David Baron
4419f3e86b
Bug 1053986 - Rename nsIFrame::GetMinSize to GetXULMinSize, and related methods. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
MozReview-Commit-ID: Jhe3o3kIOe0
2016-04-20 21:28:31 -07:00
L. David Baron
7511e4ea42
Bug 1053986 - Rename nsIFrame::IsBoxFrame to IsXULBoxFrame. r=dholbert
...
Written purely with sed, over .h and .cpp files in layout/.
But with additional manual changes in accessible/.
MozReview-Commit-ID: W0wUPoQsVH
2016-04-20 21:28:30 -07:00
Ting-Yu Chou
fc2da935e7
Bug 1197913 - Keep the last hovered item highlighted after moving the cursor outside the <select> drop-down list on Windows. r=neil
...
MozReview-Commit-ID: 1mWm5ltckHl
2016-03-25 17:10:16 +08:00
Masayuki Nakano
84e308d663
Bug 1256589 part.6 Move the implementation of IsTrusted() from dom::Event to WidgetEvent r=smaug
...
MozReview-Commit-ID: 1SgMbTL8csl
2016-03-17 16:01:30 +09:00
Ting-Yu Lin
122e5b9aeb
Bug 1227927 Part 2 - Remove nsIFrame::GetFirstPrincipalChild(). r=mats
2016-01-29 22:42:14 +08:00
Xidorn Quan
9ad6eb8dd0
Bug 1230034 part 8 - Convert frame properties which assert on destructor to be typed. r=dbaron
2016-01-28 14:23:59 +11:00
Xidorn Quan
0f1150d793
Bug 1064843 part 5 - Ensure frames behave properly for unknown child list id passed into SetInitialChildList. r=dholbert
...
Note that nsMathMLContainerFrame and its subclasses are unchanged since
they are not target of fullscreen (and thus no backdrop frame), and they
have an assertion to ensure we really don't pass any unexpected list in.
2016-01-28 10:11:00 +11:00
Nicholas Nethercote
85a3a5acf0
Bug 1231256 (part 1) - Remove unused nsBoxLayoutState parameters from many functions. r=roc.
2015-12-07 10:17:47 -08:00
Nicholas Nethercote
a0edd1fb5f
Bug 1230863 - Remove unused nsPresContext args from many functions. r=roc.
2015-12-06 17:15:53 -08:00
Nathan Froyd
4e6d8f6705
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
Gijs Kruitbosch
65f8e77ddb
Bug 1181560 - ensure previous menus get closed when opening new ones, r=Enn
2015-07-14 18:06:45 +01:00
Masayuki Nakano
0093d06e7f
Bug 895274 part.51 Rename NS_CONTEXTMENU to eContextMenu r=smaug
2015-09-01 00:20:06 +09:00
Masayuki Nakano
3591262e6b
Bug 895274 part.34 Rename NS_MOUSE_OUT to eMouseOut r=smaug
2015-08-29 08:58:32 +09:00
Masayuki Nakano
5efe61139d
Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
00ded62efd
Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
329427650a
Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug
2015-08-29 08:58:29 +09:00
Masayuki Nakano
fc091c723d
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
5473d2dcb9
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Aryeh Gregor
6e1dae88e0
Bug 874842 - Return Event instead of nsIDOMEvent
2015-08-12 14:39:31 +03:00
Neil Deakin
ad2b72768e
Bug 1149745, on Windows, menulist should select the value when the cursor keys are used to navigate items, r=neil
2015-06-26 09:32:25 -07:00
Anthony Tseng
fde5de9cff
Bug 1158425 - Rename _SYNTH event names. r=smaug
2015-05-01 22:06:00 -04:00
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Ehsan Akhgari
ea41d8de48
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
Mats Palmgren
6e2b90ea60
Bug 1116753 - Remove the nsIPresShell* param from remaining frame ctors that still have it. r=roc
2015-01-06 09:27:56 +00:00
Ehsan Akhgari
8bb87f8a27
Bug 1060985 - Fix more bad implicit constructors in layout; r=roc
2014-08-31 23:36:37 -04:00
Olli Pettay
c099a1134e
Bug 314095 - Eliminate nsIContent::GetDocument, r=jst
2014-08-22 23:11:27 +03:00
Mats Palmgren
a43fc7a0a3
Bug 1015781 - part 1+2, Make the SetInitialChildList/AppendFrames/InsertFrames/RemoveFrame methods return void (scripted change). Remove code handling the return values. r=roc
2014-05-28 19:36:58 +00:00
Carsten "Tomcat" Book
546a4439d9
merge fx-team to mozilla-central
2014-05-26 14:59:21 +02:00
Jared Wein
3efbd40bdb
Bug 1000513 - Allow menuitems in menupopups to be children of a menugroup for horizontal arrangement. r=enn
2014-05-12 16:23:12 -04:00