Commit Graph

19 Commits

Author SHA1 Message Date
Ehsan Akhgari
51a1729c29 Bug 1143570 - Part 1: Use an nsBlockInFlowLineIterator to determine whether a BR frame is visible or not; r=roc 2015-06-09 15:58:55 -04:00
Andrew McCreight
92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Ehsan Akhgari
de579779ae Bug 1151873 - Stop forcing text/plain-only content being copied to the clipboard when an ancestor of the selected node has significant whitespace; r=roc
When fixing bug 116083, I didn't understand the purpose of the original
code correctly.  Setting mIsTextWidget to true will force a text/plain
MIME type, and therefore disabling the copying of any HTML content.  I
don't know why this path in the code used to exist, but it is basically
the cause of this bug, so we should remove it.
2015-04-09 09:45:33 -04:00
Xidorn Quan
4570c138a4 Bug 1130891 part 2 - Add option in document encoder for including ruby annotation in plain text. r=roc 2015-03-10 17:11:55 +11:00
Andrea Marchesini
0ffd16daf3 Bug 1134280 - Get rid of Tag() - patch 4 - Get rid of nsDocumentEncoder::IsTag, r=smaug 2015-03-03 11:09:00 +00:00
Andrea Marchesini
ae571f51bb Bug 1134280 - Get rid of Tag() - patch 2.3 - dom/base and docshell - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Ehsan Akhgari
a199f8e68c Bug 1125956 - Hack around the broken assumptions of Thunderbird about the HTML copy encoder by disabling the plaintext encoding detection logic; r=roc 2015-03-02 16:06:09 -05: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
664a207be2 Bug 1123505 - part 1, Reset mStart/EndDepth before serializing each range. Use mStartDepth of the first range and mEndDepth of the last range for multi-range Selections. r=smaug 2015-02-02 22:34:17 +00:00
Mike Hommey
715db83e04 Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn 2015-02-02 09:56:13 +09:00
Ehsan Akhgari
80ac1541ec Bug 611103 - Part 3: Handle the edge case where the br element appears immediately after another br; r=bzbarsky
The test for bug 1119503 examines this edge case.
2015-01-24 15:01:34 -05:00
Ehsan Akhgari
e893209d10 Bug 611103 - Part 2: Handle the edge case where the BR element is the only child of a block element; r=bzbarsky
The test for bug 1119503 examines this edge case.
2015-01-22 23:16:32 -05:00
Ehsan Akhgari
1742ac4ab1 Bug 611103 - Don't depend on the editor in nsDocumentEncoder; r=bzbarsky 2015-01-22 17:54:55 -05:00
Ryan VanderMeulen
a971c28b1b Backed out 4 changesets (bug 1113238) for mochitest-dt failures.
Backed out changeset 8439a009837d (bug 1113238)
Backed out changeset 34b89a4f9dea (bug 1113238)
Backed out changeset ce0ed9dc4d6d (bug 1113238)
Backed out changeset 9dd632bab2aa (bug 1113238)

CLOSED TREE
2015-01-13 13:50:12 -05:00
Ehsan Akhgari
01d6ecd6c8 Bug 1113238 - Part 3: Flush the styles before determining whether an element is preformatted; r=bzbarsky
This ensures that calls to nsComputedDOMStyle::GetStyleContextForElementNoFlush()
in the part 1 of this series give us the correct results.
2015-01-13 12:04:46 -05:00
Ehsan Akhgari
e0c81ab40a Bug 1113796 - Use the WhiteSpaceOrNewlineIsSignificant() helper method; r=roc 2014-12-20 10:27:25 -05:00
Ehsan Akhgari
e449126221 Bug 116083 - Correctly handle the whitespace in all preformatted elements; r=roc
Previously this code only handled the special case of a <body> element that
had an explicit style attribute, which doesn't really make sense.  Now we
do the right thing based on the computed white-space style.
2014-12-01 06:38:11 -05:00
Birunthan Mohanathas
e9068bbc4f Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv 2014-10-25 20:25:22 +03:00