Commit Graph
34 Commits
Author SHA1 Message Date
Simon Montagu 07a48a097e Assert that entry exists before removing it. Bug 876155, r=ehsan 2013-05-29 10:36:59 +03:00
Simon Montagu eaf764198a Fix document.dir getters and setters to (a) work and (b) conform to HTML5. Bug 151407, r=ehsan 2013-04-14 05:37:48 -07:00
Simon Montagu b2cfe73c26 Remove elements from text node directionality map when they cease to have dir=auto, Bug 861610, r=ehsan 2013-04-15 23:14:42 +03:00
Simon Montagu aa85bee907 Add some assertions to DirectionalityUtils.cpp, Bug 861606, r=ehsan 2013-04-15 23:14:39 +03:00
Simon Montagu 49fcc6bc8e Set AncestorHasDirAuto on the descendants of a <bdi> having its dir attribute removed or set to an invalid value. Bug 849732, r=ehsan 2013-03-24 11:27:03 +02:00
Simon Montagu a00849efe1 Don't rerun the downward propagation algorithm from ResetNodeDirection after an element has had dir=auto removed. Bug 849727, r=ehsan 2013-03-24 11:27:02 +02:00
Simon Montagu 758f5bbbf9 Move WalkDescendantsClearAncestorDirAuto from BeforeSetAttr to OnSetDirAttr to simplify the test for elements that had dir=auto but no longer do, especially <bdi>. Bug 845093, r=ehsan 2013-03-07 22:53:08 +02:00
Simon Montagu 64840b855b Make sure not to return the old text node in ResetNodeDirection. Bug 845093, r=ehsan 2013-03-07 22:53:08 +02:00
Simon Montagu 4110c2d308 Set the AncestorHasDirAuto flag for all new text nodes that need it. Bug 847127, r=ehsan 2013-03-07 22:53:07 +02:00
Simon Montagu c1406e8f33 Text nodes in anonymous subtrees shouldn't affect ancestors with dir=auto. Bug 839886, r=ehsan 2013-02-20 22:57:51 -08:00
Simon Montagu 47edc729be Make the test for <bdi> without dir=auto more accurate. Bug 838689, r=ehsan 2013-02-20 22:57:50 -08:00
Simon Montagu 26ce84566e Set AncestorHasDirAuto flag when adding a new text node. Bug 836890, r=ehsan 2013-02-06 00:13:21 -08:00
Simon Montagu bd906bf6c6 Distinguish between bdi with default auto direction and with explicit auto-direction. Bug 832644, r=ehsan 2013-01-26 23:14:14 -08:00
Simon Montagu 6d347af081 Make DoesNotParticipateInAutoDirection return true for non-HTML elements; and make WalkDescendantsSetDirAuto consistent with SetDirOnBind. Bug 829428, r=ehsan 2013-01-15 00:20:08 -08:00
Simon Montagu 70cd258c27 Remove aStartAfterNode from WalkDescendantsSetDirectionFromText. Bug 828054, r=ehsan 2013-01-13 08:09:00 -08:00
Simon Montagu fd1bc6b9ee Use IsHtml(foo) instead of NodeInfo()->Equals(foo). Bug 828166, r=peterv 2013-01-13 08:08:59 -08:00
Simon Montagu 7ad6786875 Use a utility method for repeated code. Bug 828166, r=ehsan 2013-01-13 08:08:59 -08:00
Simon Montagu 1cb443ed0c Fix whitespace and remove an unused method argument in DirectionalityUtils.cpp. Bug 828166, r=ehsan 2013-01-13 08:08:59 -08:00
Simon Montagu 71bfce3b87 Set AncestorHasDirAuto on descendants of a node being bound to an element with HasDirAuto or AncestorHasDirAuto. Bug 827190, r=ehsan 2013-01-13 08:08:58 -08:00
Ms2ger d83d923861 Bug 825407 - Get rid of GetElementParent; r=mounir 2013-01-11 09:43:01 +01:00
Simon Montagu 511f7dc708 Clear element from nsTextDirectionalityMap when unbinding. Bug 819623, r=peterv 2013-01-06 01:45:28 -08:00
Simon Montagu f1542431c3 Don't set AncestorHasDirAuto when binding a <bdi> element to the tree. Bug 815043, r=peterv 2013-01-06 01:45:28 -08:00
Simon Montagu db5ad3a4a0 Clear the HasTextNodeDirectionalityMap property from the text node when deleting the map. Bug 815276, r=peterv 2013-01-06 01:45:27 -08:00
Simon Montagu 9bddc2dfa6 Don't set autodirection on elements like <script>, <style> and <textarea>. Bug 819014. 2012-12-23 00:13:32 -08:00
Simon Montagu e5a885e9eb Be consistent in what text nodes we look at in the #ifdef DEBUG pre-loop and the actual loop. Bug 822723 2012-12-23 00:13:29 -08:00
Simon Montagu 63397cef89 When the text node that set the directionality of an element with dir=auto is removed, and there is no other text node that can set the directionality, clear the dirAutoSetBy property on the element. Bug 815500, r=peterv 2012-12-16 07:35:07 -08:00
Mats Palmgren 1a88c533a4 Bug 820219 - Remove the PR_ prefix for a few PR_[U]INT32_MAX that has been added since bug 791906. r=roc 2012-12-11 16:45:50 +01:00
Simon Montagu 5ca25a9074 Remove node from nsTextNodeDirectionalityMap when another node is going to replace it. Bug 816253, r=peterv 2012-12-09 23:10:56 -08:00
Simon Montagu 0bbf55b1e3 Implementation of HTML5 dir=auto. Bug 548206, r=ehsan, peterv. 2012-11-21 02:13:57 -08:00
Phil Ringnalda 75509b91e0 Backout b7e492bf7c13, a64c112c6858, 84b9a773104b, 4bd4aabbaf28 and 24ad2de34061 (bug 548206) for Win Ru orange 2012-11-20 08:44:04 -08:00
Simon Montagu 2ab4169322 Implementation of HTML5 dir=auto. Bug 548206, r=ehsan, peterv 2012-11-20 06:21:15 -08:00
Simon Montagu bf14fac2a4 Bug 562169. Add support for :dir(ltr/rtl) CSS selector, content part, r=bz 2012-04-17 07:03:10 +03:00
Matt Brubeck 77d013d0d3 Back out bug 562169 because of Dromaeo DOM regressions
Backed out changeset 841cd6e1e585 (bug 562169)
Backed out changeset e226e413dd27 (bug 562169)
Backed out changeset 9c24b7287c5b (bug 562169)
2012-08-08 08:14:48 -07:00
Simon Montagu a49ff60ce7 Add support for :dir(ltr/rtl) CSS selector, content part, Bug 562169, r=bz 2012-04-17 07:03:10 +03:00