Commit Graph

857 Commits

Author SHA1 Message Date
Jet Villegas
303cd79738 Bug 812638: backs out bug 480647 (part 6) r=ehsan 2013-02-06 06:57:26 -08:00
Jet Villegas
f42c3d0d69 Bug 812638: revert fix for bug 480647 (part 6) that introduced this regression. r=ehsan 2013-02-05 22:00:59 -08:00
Henri Sivonen
ebd208d6e6 Bug 820508 part 4 - Make <main> have the HTMLElement DOM interface. r=smaug. 2013-01-29 14:31:45 +02:00
Daniel Glazman
b53a71d806 Bug 833610 - Backout the second half of bug 832025; r=ehsan 2013-01-23 18:19:00 -05:00
Daniel Glazman
bd2faa434c Bug 832025 - Clear the cached styles and type-in state props when pressing Enter inside a heading or a list item; r=ehsan
--HG--
extra : rebase_source : 210c1b2b2c27761d89b6609017b9722607a33450
2013-01-19 09:43:01 -05:00
Trevor Saunders
9f0ad48b28 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Mats Palmgren
6c53161814 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
David Zbarsky
936f50944d Fix bustage for Bug 827149 2013-01-12 18:20:57 -05:00
David Zbarsky
ae40c85085 Bug 827149 - Remove some uses of nsIDOMHTMLBodyElement r=bz 2013-01-12 16:53:01 -05:00
Ms2ger
c5be726449 Bug 828975 - Cleanup nsHTMLCSSUtils::ElementsSameStyle a bit; r=ehsan 2013-01-11 09:43:01 +01:00
Ms2ger
3afadd016c Bug 825407 - Get rid of GetElementParent; r=mounir 2013-01-11 09:43:01 +01:00
Neil Rashbrook
15ad5a16df Bug 824926 Make relative font size change handle nested font size tags correctly r=ehsan 2012-12-31 21:49:49 +00:00
Trevor Saunders
dc7cb06198 bug 821593 - stop using nsIDOMCSSValue / nsIDOMRGBColor in editor r=bz 2012-12-14 04:14:21 -05:00
Ms2ger
7debeae6b4 Backout bug 821593 for bustage. 2012-12-22 15:33:46 +01:00
Trevor Saunders
d07cd72fc2 bug 821593 - stop using nsIDOMCSSValue / nsIDOMRGBColor in editor r=bz 2012-12-14 04:14:21 -05:00
Ms2ger
1ffa67723b Bug 813532 - Part b: Some cleanup for GetNextHTMLNode; r=ehsan 2012-12-22 09:17:05 +01:00
Ms2ger
5ebe7ea292 Bug 813532 - Part a: Some cleanup for GetPriorHTMLNode; r=ehsan 2012-12-22 09:17:05 +01:00
Jeff Walden
7146c23e80 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Boris Zbarsky
7cbdd79ac6 Bug 820902. nsAttrValue::Equals should do ASCII-case-insensitive compares when it's doing case-insensitive compares. r=sicking 2012-12-13 17:08:44 -05:00
Trevor Saunders
cdabdac86e bug 781409 - remove nsITableLayout r=roc,davidb 2012-08-08 09:05:17 -04:00
Saurabh Anand
c9e3659e16 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Olli Pettay
3243bf0a89 Bug 803853, make sure to not leak mRules, r=ehsan 2012-12-07 01:31:48 +02:00
Aryeh Gregor
316edf1905 Bug 200416 - Test; r=ehsan 2012-12-04 14:11:47 +02:00
Kai Engert
838796da5f Bug 200416 - Account for blocks inside inlines when deleting; r=ehsan 2012-11-25 14:38:23 +02:00
Mats Palmgren
60ccae9fe3 Bug 817574 - Replace NS_ABS with std::abs. r=roc 2012-12-04 13:33:33 +01:00
Ms2ger
590f343557 Bug 812885 - Cleanup nsHTMLEditor::GetElementOrParentByTagName some; r=ehsan 2012-12-02 09:59:41 +01:00
Benoit Jacob
a1d7e0f511 Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Masayuki Nakano
189313a6bf Bug 806996 part.5 nsEditor::PostCreate() should call nsIMEStateManager::UpdateIMEState() rather than nsIMEStateManager::OnChangeFocus() when it already has focus r=ehsan 2012-11-09 17:40:39 +09:00
Bobby Holley
c351c18d32 Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 21:47:49 -03:00
Ed Morley
b159aab211 Backout 23c9f61a243b & 6ca11f4b470c (bug 805807) for mochitest-1 orange in test_contextmenu.html 2012-11-02 14:12:51 +00:00
Bobby Holley
ac090a0e20 Bug 805807 - Make Components wrapper throw on denial. r=mrbkap
There's really no reason to use the wishy-washy static COW Deny() here.

Also, note that the xpcshell-test wasn't testing what it thought it
was - interfaces is accessible from content code.
2012-11-02 13:27:59 +01:00
Jet Villegas
3727936e46 Bug 806068 part 2: Change in-tree usage of -moz-initial to initial. r=dholbert 2012-10-30 16:57:36 +01: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
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
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
David Zbarsky
0e8c52b0d4 Bug 801803: Followup to convert 2 more call sites r=me 2012-10-15 17:39:46 -04:00
Trevor Saunders
9ab39abf8f bug 798599 - remove prmem from editor r=ehsan 2012-10-04 02:45:16 -04:00
Aryeh Gregor
c7f2c15225 Bug 793866 - Missing null check in mozInlineSpellChecker::UpdateCurrentDictionary(); r=ehsan 2012-10-10 09:05:16 +02: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
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
ff1c5bbcf7 Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
--HG--
extra : rebase_source : 93c2e11edeaa2f7275302a2c7499aa09c330da14
2012-09-17 22:58:51 -04:00
Aryeh Gregor
dedea83946 Bug 788950 - Prevent mRules from dying in DoInsertHTMLWithContext; r=ehsan 2012-09-16 13:13:31 +03: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
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
Kent James
65f0d8311e Bug 780908 - Fix crash in editor with head after body. r=ehsan 2012-08-17 08:39:52 -07:00
Neil Deakin
96c084b896 Bug 775110, allow data from the same domain to be dropped in editor fields, r=ehsan 2012-08-15 15:35:08 -04:00
Aryeh Gregor
1f5f272808 Bug 782252 - Cast NS_ENUMERATOR_FALSE to nsresult; r=ehsan 2012-08-07 17:54:44 +03:00
Aryeh Gregor
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Aryeh Gregor
b88e267a1a Bug 780035 - Don't cache font-style as CSS; r=ehsan 2012-08-14 12:10:43 +03:00
Aryeh Gregor
30201a72e9 Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan 2012-08-12 21:28:26 +03:00
Ed Morley
afd5340800 Merge mozilla-central to mozilla-inbound 2012-08-09 12:51:21 +01:00
Ed Morley
61bd42dc2d Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-09 12:46:05 +01:00
Ms2ger
f1b5bdfdf7 Bug 780502 - Remove unsound assertion; r=ehsan 2012-08-09 09:20:11 +02:00
Ms2ger
eb175d3103 Bug 179956 - Remove unsound assertion; r=ehsan 2012-08-09 09:20:06 +02:00
Ms2ger
cb6fef5051 Bug 461440 - Remove unsound assertion; r=ehsan 2012-08-09 09:20:01 +02:00
Aryeh Gregor
fbd5b103d1 Bug 778428 - Refcount arrays of nodes in editor/; r=ehsan 2012-08-01 11:17:51 +03:00
Aryeh Gregor
07e11d5e7d Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan 2012-08-01 15:22:07 +03:00
Bobby Holley
364da93593 Bug 778420 - Fix up tests that don't like the new enablePrivilege. r=jmaher
--HG--
extra : rebase_source : 1158df4a4eb917074204e649efd8f2b8e699f115
2012-08-03 22:19:54 +02:00
William Chen
7a0429e652 Bug 778420 - Initial stab at the tests. v2 r=bholley
--HG--
extra : rebase_source : c24abc031c82a87f2f669e4b708f8ee364a9682b
2012-08-06 22:15:49 +02:00
Ms2ger
c7a5b33778 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ed Morley
bba173e66e Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE 2012-08-04 18:05:15 +01:00
Ms2ger
babf67cce2 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
a261a556a4 Bug 291789 part 3 - Try not to ever delete across table boundaries; r=ehsan 2012-07-27 17:03:28 +03:00
Aryeh Gregor
2c96b3d490 Bug 291789 part 2 - Clean up nsHTMLEditRules::InDifferentTableElements; r=ehsan 2012-07-27 17:03:28 +03:00
Aryeh Gregor
b03a28a187 Bug 291789 part 1 - Make various nsHTMLEditUtils methods take nsINode instead of Element; r=ehsan 2012-07-27 17:03:28 +03:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
6c09cdec31 Bug 777292 - Use assert for arg validity in nsHTMLAnonymousUtils' GetCSSFloatValue instead of NS_ENSURE_ARG_POINTER; r=ehsan 2012-07-27 17:03:25 +03:00
Aryeh Gregor
73e087be3a Bug 777292 - editor/: Remove conversions to nsresult that will always result in NS_SUCCEEDED; r=ehsan 2012-07-27 16:46:48 +03:00
Aryeh Gregor
a9370a8066 Bug 776323 part 2 - Clean up nsSelectionState::SaveSelection; r=ehsan 2012-07-23 13:27:22 +03:00
Aryeh Gregor
cd25ad4136 Bug 772332 part 1 - Make nsWSRunObject's type enum type-safe; r=ehsan 2012-07-13 09:33:43 +03:00
Aryeh Gregor
be252a8dce Bug 775552 - Don't access siblings of nodes that might be deleted; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor
bd54d2aad1 Bug 768756 part 4 - Clean up nsHTMLCSSUtils::GetCSSInlinePropertyBase; r=ehsan 2012-07-08 13:31:53 +03:00
Aryeh Gregor
6161edba6d Bug 768756 part 3 - Get rid of nsHTMLCSSUtils::GetDefaultViewCSS; r=ehsan 2012-07-08 12:50:31 +03:00
Aryeh Gregor
b37af2288b Bug 768756 part 1 - Use enum in nsHTMLCSSUtils for computed/specified style; r=ehsan 2012-07-06 14:50:07 +03:00
Masayuki Nakano
d628388400 Bug 751749 part.3 Editor should handle Win key as a modifier key r=ehsan 2012-07-19 10:28:17 +09:00
Jared Wein
a390f133e1 Bug 754169 - Fix intermittent orange related to imprecise scrolling positions in test. r=ehsan 2012-07-17 11:40:49 -04:00
Ed Morley
53c5da4c5a Backout 6ceeca8b4b73 (bug 772332), ce5629b973e4, 1dcff1db63b4, 108d06ef7755 & 7bf6519b3f43 (bug 768756) for bustage 2012-07-15 11:42:31 +01:00
Aryeh Gregor
a72a488e1a Bug 772332 part 1 - Don't access siblings of nodes that might be deleted; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor
81be98cff9 Bug 768756 part 4 - Clean up nsHTMLCSSUtils::GetCSSInlinePropertyBase; r=ehsan 2012-07-08 13:31:53 +03:00
Aryeh Gregor
55d5f8a990 Bug 768756 part 3 - Get rid of nsHTMLCSSUtils::GetDefaultViewCSS; r=ehsan 2012-07-08 12:50:31 +03:00