Commit Graph

1405 Commits

Author SHA1 Message Date
Masayuki Nakano
072949e794 Bug 805306 Get rid of nsIMEStateManager::OnTextStateBlur() and nsIMEStateManager::OnTextStateFocus() r=smaug 2012-10-26 09:49:13 +09:00
Mike Conley
c6e489304e Bug 790475 - Part 2: Regression test for the adjacent text node case. r=ehsan. 2012-10-25 18:32:22 -04:00
Ehsan Akhgari
f117c7a7b0 Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
48b5c1a608 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
Aryeh Gregor
18d73c0331 Bug 802995 - Missing null check in nsTextServicesDocument::DeleteSelection; r=ehsan 2012-10-25 14:36:23 +02:00
Ehsan Akhgari
1f78e9ca0c Merge mozilla-central into mozilla-inbound 2012-10-22 17:05:46 -04:00
Olli Pettay
5edd829335 Bug 798677, make sure events are fully handled in editor, r=ehsan 2012-10-21 15:35:47 +03:00
Olli Pettay
f5c0c70f94 Bug 802985, PreDestroy editor, r=ehsan 2012-10-20 21:48:34 +03:00
Peter Van der Beken
0fca6b2112 Fix for bug 801083 (Remove old proxy-based list bindings). r=bz. 2012-10-13 14:50:24 +02:00
Aryeh Gregor
2b7a1092b2 Bug 795708 - Use more nsCOMPtr; r=ehsan 2012-10-11 12:26:15 +02:00
Peter Van der Beken
57adeb4354 Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz.
--HG--
extra : rebase_source : 5dd51c4ad5274da9235c8c341b0531f234e95a91
2012-10-09 14:31:24 +02:00
Peter Van der Beken
350f7dd89a Fix for bug 799464 (Make Element.getElementsBy* return HTMLCollection). r=bz.
--HG--
extra : rebase_source : fe059b8ad3b98df9e611899832584cc866db0479
2012-09-26 16:17:47 +02:00
Ehsan Akhgari
335b6cc84a Bug 802884 - Fix a build failure in Visual C++ 2012 because of what seems to be a compiler bug; r=me 2012-10-17 20:07:05 -04:00
Masayuki Nakano
d03c724521 Bug 705057 part.3 XP level code shouldn't call nsIWidget::ResetInputState() and nsIWidget::CancelIMEComposition() directly r=smaug+ehsan 2012-09-26 14:47:51 +09:00
David Zbarsky
0e8c52b0d4 Bug 801803: Followup to convert 2 more call sites r=me 2012-10-15 17:39:46 -04:00
Masayuki Nakano
89534dc748 Bug 795785 part.3 Add horizontal scroll test r=smaug 2012-10-15 09:32:53 +09:00
Trevor Saunders
9ab39abf8f bug 798599 - remove prmem from editor r=ehsan 2012-10-04 02:45:16 -04:00
Ehsan Akhgari
5a7253fa1e Merge mozilla-central into mozilla-inbound 2012-10-10 20:21:13 -04:00
Olli Pettay
69e091e8e4 Bug 733305, add a way to hide XBL, r=bz, a=abillings
--HG--
extra : rebase_source : df18273ecdbf013138e8e6f1f4ef8082ac4f410c
2012-10-10 22:04:42 +03:00
Aryeh Gregor
c7f2c15225 Bug 793866 - Missing null check in mozInlineSpellChecker::UpdateCurrentDictionary(); r=ehsan 2012-10-10 09:05:16 +02:00
Masayuki Nakano
a4e119b5dc Bug 795785 part.2 Scroll editor when caret is moved even if it's specified overflow: hidden; r=smaug 2012-10-08 03:45:51 +09:00
Masayuki Nakano
cbffcf6ade 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
Ed Morley
cc9e8c3305 Bug 795393 - Remove instances of "ifneq (mobile,$(MOZ_BUILD_APP))" since they're now always true; r=ted 2012-10-06 16:46:09 +01:00
Vladimir Vukicevic
52a04c8b93 b=716031 and probably 752808 and 759254; fix test_selection_move_commands by driving RefreshDriver directly; r=ehsan 2012-10-02 14:41:04 -04:00
Ehsan Akhgari
e630637a1d Bug 796839 - Part 4: Don't pretend that empty text nodes are not editable; r=roc
This is the real fix for this bug.  Previously we mistakenly thought
that if a text node is empty (or has only whitespace content), it is not
editable.  This patch removes that check completely and makes us treat
text nodes the same way that we treat element nodes.
2012-10-03 21:25:00 -04:00
Ehsan Akhgari
10859e4967 Bug 796839 - Part 3: Don't get the inline properties from empty text nodes; r=roc
This is basically the equivalent of the previous part, just for getting
the inline properties.
2012-10-04 20:58:00 -04:00
Ehsan Akhgari
9fe0740025 Bug 796839 - Part 2 - Don't set inline properties on empty text nodes; r=roc
This part, similar to the previous one, ensures that we skip empty text
nodes when setting inline properties.  Previously we were implicitly
getting this behavior becasue we were calling IsEditable, but we need to
be explicit about this.
2012-10-04 20:37:45 -04:00
Ehsan Akhgari
9d564e7cf4 Bug 796839 - Part 1: Make sure not to try wrapping empty text nodes when applying alignment in editable regions; r=roc
The code here is just missing this condition, and this patch is needed
to make the last part of this series pass tests.  Previously,
nsEditor::IsEditable would return false when it hit an empty text node,
which implied this property almost by accident.  This check makes this
property explicit, so this patch by itself doesn't really change
semantics.
2012-10-04 11:34:58 -04:00
Vladimir Vukicevic
89abde398d b=768838; fix intermittent test_bug549262 failure; r=ehsan 2012-10-01 17:51:28 -04:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Matt Woodrow
58d3d65ab2 Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
* * *
[mq]: test-fixes
2012-08-29 17:48:13 +12:00
Aryeh Gregor
a127537505 Bug 787432 - Don't strip existing empty wrappers when inserting text; r=ehsan 2012-09-27 14:39:39 +02:00
Ed Morley
c863356300 Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE 2012-09-27 16:34:46 +01:00
Matt Woodrow
0b20201fde Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
* * *
[mq]: test-fixes
2012-08-29 17:48:13 +12:00
Bobby Holley
9f03f90fb7 Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
7f912ddc79 Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Ehsan Akhgari
b5c39afb4e Bug 792502 - Kill the FunctionTimer code; r=vlad 2012-09-19 16:59:38 -04:00
Ehsan Akhgari
ff1c5bbcf7 Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
--HG--
extra : rebase_source : 93c2e11edeaa2f7275302a2c7499aa09c330da14
2012-09-17 22:58:51 -04:00
Koosha Khajeh Moogahi
8d39310f18 Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
Aryeh Gregor
dedea83946 Bug 788950 - Prevent mRules from dying in DoInsertHTMLWithContext; r=ehsan 2012-09-16 13:13:31 +03:00
Mark Capella
5a5ba0a45c Bug 785091 - Remove nsIEditorObserver, r=ehsan 2012-09-17 11:14:56 -04:00
Andrew McCreight
3a73ccc71e Bug 775868 - fix more tests. r=bholley 2012-09-10 12:44:29 -07:00
Neil Deakin
7276ffca3a Bug 788404, return unconditionally from attempts to insert from drop to prevent mutliple copies of text from appearing in contenteditable areas, r=ehsan 2012-09-07 15:57:10 -04:00
Isaac Aggrey
bdf73fba49 Bug 785131 - Don't process any node when aChildrenOnly is set; r=ehsan 2012-08-23 12:17:43 -05:00
Abhishek Potnis
91a7ba9fed Bug 777925 : Removes HTML editor logging support; r=ehsan 2012-09-04 21:18:59 +05:30
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
e7af112ab9 Bug 785574 - Add a script blocker in nsHTMLEditor::SetAttributeOrEquivalent; r=bzbarsky 2012-08-29 16:43:32 -04:00
Andrew McCreight
62325fa9f3 Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.

This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.

nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over.  See bug 774874.
2012-08-24 09:50:06 -07:00
Ehsan Akhgari
0fd9123eac 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
Isaac Aggrey
7bf0363244 Bug 711862 - Do not process the node itself in nsHTMLEditor::RemoveStyleInside if the caller requests only children to be modified; r=ehsan 2012-08-21 14:31:19 -04:00