Birunthan Mohanathas
a29151dc87
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
Ted Clancy
82fca59b55
Bug 1067788 - Part 4: Update test_bug496275.html. Add setCaretBidiLevel method to Selection. r=smontagu r=ehsan
2015-05-22 00:37:16 -04:00
Andrea Marchesini
ad97ae68b8
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00: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
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Ting-Yu Lin
644c017524
Bug 1140238 - Part 2: Adjust ranges after changing selection direction. r=mats
...
When dragging the second caret (eDirNext) over non-selectable elements,
the last range is not generated. Therefore when dragging the first
caret, we will change the selection direction to eDirPrevious, the last
range will be excluded by AutoPrepareFocusRange.
We add a new function to adjust generated bit and anchor focus range
after changing selection direction.
2015-03-18 03:26:00 -04:00
Ting-Yu Lin
0150330dad
Bug 1136065 - Remove GetRangeCount() in Selection.h. r=ehsan
...
We replace GetRangeCount() with the identical function RangeCount() to
avoid any confusion.
2015-02-25 17:08:00 +01:00
Mats Palmgren
5f601ae51c
Bug 1129078 - part 4, Add AutoPrepareFocusRange stack objects on paths to TakeFocus that sets up mAnchorFocusRange (and possibly removes mIsGenerated ranges) based on what operation the user is performing. r=smaug
2015-02-21 04:27:59 +00:00
Wes Kocher
3097a8a409
Backed out 8 changesets (bug 1129078, bug 1128722) for mochitest-5 failures
...
Backed out changeset f7eff607655a (bug 1128722)
Backed out changeset 801b3abc0de8 (bug 1128722)
Backed out changeset 275d27c2dba0 (bug 1129078)
Backed out changeset 9830ab1a2028 (bug 1129078)
Backed out changeset ce5cb876af9a (bug 1129078)
Backed out changeset c199ff86c77f (bug 1129078)
Backed out changeset 38b1b039f14d (bug 1129078)
Backed out changeset c8a99ee97313 (bug 1129078)
2015-02-20 12:24:25 -08:00
Mats Palmgren
abdb864d23
Bug 1129078 - part 4, Add AutoPrepareFocusRange stack objects on paths to TakeFocus that sets up mAnchorFocusRange (and possibly removes mIsGenerated ranges) based on what operation the user is performing. r=smaug
2015-02-20 17:34:21 +00:00
Morris Tseng
058f931bf5
Bug 1120316 - Part 1: Move SelectionBatcher to Selection.h. r=roc
2015-02-04 21:34:00 +01:00
Ehsan Akhgari
0e6dee9fca
Bug 1068058 - Update Selection.containsNode according to the spec; r=smaug
...
Specifically, this makes the first argument non-nullable.
2014-09-16 15:11:52 -04:00
Ehsan Akhgari
68e56a3bc5
Bug 1065667 - Fix more bad implicit ctors in layout; r=roc
2014-09-11 15:41:21 -04:00
Mats Palmgren
6df48575f6
Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees.
2014-09-10 17:07:36 +00:00
Ryan VanderMeulen
56a940c146
Backed out 3 changesets (bug 739396) for Mulet perma-fail on a CLOSED TREE.
...
Backed out changeset 299911e6983b (bug 739396)
Backed out changeset de11af3e0964 (bug 739396)
Backed out changeset e274cb276cc5 (bug 739396)
2014-09-10 12:21:58 -04:00
Mats Palmgren
f09e0fd50a
Bug 739396, part 1 - Split a range (that are to be added to the Selection as a result of a user action) into multiple ranges that excludes any non-selectable (-moz-user-select:none) sub-trees.
2014-09-10 13:07:43 +00:00
Trevor Saunders
d67df400c1
bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj
2014-08-05 13:33:55 -04:00
Ehsan Akhgari
17f80c37f2
Bug 1048246 - Fix more bad implicit constructors in layout; r=roc
2014-08-07 19:48:38 -04:00
Benoit Jacob
553e5b2a13
Bug 1028588 - Fix dangerous public destructors in layout/ - r=dbaron
2014-06-23 18:40:01 -04:00
Aryeh Gregor
366b23e568
Bug 950386 - Move mozilla::Selection to mozilla::dom::Selection; r=ehsan
2014-04-10 19:09:40 +03:00
Boris Zbarsky
b95c359828
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Ehsan Akhgari
3dfc543079
Bug 949445 - Part 2: Move Selection to WebIDL; r=bzbarsky
2013-12-17 09:12:33 -05:00
Masayuki Nakano
24485810ff
Bug 602787 part.10 Create TextRange.h for separating TextEvents.h r=roc
2013-10-22 22:27:36 +09:00
Wes Kocher
3708337984
Backed out 9 changesets (bug 602787) on suspicion of breaking mochitest-metro on a CLOSED TREE
...
Backed out changeset 1730bcae2c45 (bug 602787)
Backed out changeset 70606b9b1e42 (bug 602787)
Backed out changeset 57ca2861ea30 (bug 602787)
Backed out changeset 3b9f1062d915 (bug 602787)
Backed out changeset 3ee56eacc84b (bug 602787)
Backed out changeset 1c35693be3d3 (bug 602787)
Backed out changeset ef095c3aef98 (bug 602787)
Backed out changeset 4827bdae97fd (bug 602787)
Backed out changeset fa0f355e7871 (bug 602787)
2013-10-22 13:11:53 -04:00
Masayuki Nakano
1e86be1a39
Bug 602787 part.10 Create TextRange.h for separating TextEvents.h r=roc
2013-10-22 22:27:36 +09:00
Masayuki Nakano
3ad4e4d61c
Bug 920377 part.18 Get rid of nsTextRangeStyle r=roc
2013-10-01 16:22:59 +09:00
Masayuki Nakano
5256146045
Bug 912956 part.15 mozilla/TextEvents.h should be included directly r=roc
2013-09-25 20:21:19 +09:00
David Zbarsky
8376c6c78f
Bug 908180 - Don't #include nsGUIEvent.h in nsIPresShell.h. r=mounir
2013-08-23 13:56:20 -04:00
David Zbarsky
ed4f0c0f0a
Backout c619171e0070 for windows assertion failure on a CLOSED TREE
2013-08-23 14:58:41 -04:00
David Zbarsky
dcdec29afe
Bug 908180 - Don't #include nsGUIEvent.h in nsIPresShell.h r=mounir
2013-08-23 13:56:20 -04:00
Ehsan Akhgari
e93533425f
Bug 902111 - Forward-declare nsIFrame in nsISelectionPrivate.h; r=bzbarsky
2013-08-06 16:19:11 -04:00
Trevor Saunders
08fdf22a1b
bug 845562 - remove GetFrameSelection() from nsISelectionPrivate r=smaug
2013-02-15 15:09:28 -05:00
Trevor Saunders
405ff5ffa1
bug 841706 - remove nsSelectionIterator r=smaug
2013-02-15 05:52:57 -05:00
Trevor Saunders
8006627889
bug 828138 - remove out arg from Selection::GetPresContext() r=ehsan
2012-12-19 13:44:58 -05:00
Trevor Saunders
7ddadfb14b
bug 828138 - make Selection::GetPresShell() return the pres shell instead of use an out arg r=ehsan
2012-12-18 19:55:11 -05:00
Ehsan Akhgari
55e6f065a7
Remove nsSelectionIterator::mType because it is unused, no bug
2012-10-13 17:37:09 -04:00
David Zbarsky
be5735e6c2
Backed out changeset 3884ab03451d (bug Bug 799407) because new warnings have
...
been added.
2012-10-13 14:49:35 -04:00
David Zbarsky
db694a5027
Bug 799407: Fix warnings under layout/generic, r=roc
2012-10-13 14:31:19 -04:00
Masayuki Nakano
b6bbe5c1a3
Bug 795785 part.1 Editor should scroll the selection into view after edit even when the editor is specified overflow: hidden; r=ehsan,smaug, sr=smaug
2012-10-08 03:45:51 +09:00
Graeme McCutcheon
8448210d07
Bug 766181 - Require Selection::AddItem's aOutIndex param. r=roc
2012-09-17 14:54:01 +01:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Aryeh Gregor
22bb3e3489
Bug 771873 part 1 - Check for reversed indices in Selection::GetIndicesForInterval; r=ehsan
2012-07-12 18:56:30 +03:00
Aryeh Gregor
c8e8ced492
Bug 762183 part 2 - Publicize nsSelectionIterator; r=ehsan
2012-06-12 17:15:23 +03:00
Aryeh Gregor
463121ea8c
Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
2012-06-08 17:20:55 +03:00