Commit Graph

46 Commits

Author SHA1 Message Date
Xidorn Quan
6ede83db64 Bug 1157569 part 10 - Add operator+= for LogicalMargin. r=jfkthame
--HG--
extra : source : 1d2c1844a8d1cc4cac15c2e8dc88e8367dd828d9
2015-05-04 19:09:25 +12:00
Xidorn Quan
1d2d23191b Bug 1117227 part 1 - Add IntersectRect method to LogicalRect. r=jfkthame
--HG--
extra : source : 3c42cbab1f5087c5411984c69b2f06939b735e93
2015-04-24 10:15:32 +12:00
Simon Montagu
f66d48dc0f Bug 1143218 patch 2: Add LineLeft and LineRight accessors to LogicalRect, r=jfkthame 2015-03-22 11:44:48 +02:00
Ehsan Akhgari
883849ee32 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
Jonathan Kew
382e4487fa Bug 1141928 part 2 - Correct the position of ruby text frames. r=roc
--HG--
extra : source : 914513f894ef001ff8fc593cd36f5e702d49f184
2015-03-14 16:46:33 +11:00
Xidorn Quan
b806fae66c Bug 1141928 part 0 - Change line relative dir mapping code to return LogicalSide instead of physical side. r=jfkthame
This also fixes the line relative dir mapping code for inline axis direction.

--HG--
extra : source : 49a69e2193006dd6571765af0f6e464af9fec5b4
2015-03-14 16:46:33 +11:00
Xidorn Quan
4f9602615b Bug 1123917 part 1 - Add line-relative direction mapping methods to writing modes. r=jfkthame
--HG--
extra : rebase_source : b560e4956cef826d5d7c55fd2c644aa52857dfca
extra : source : ae961e0f6c20b5a9bfec10a99568d0282e437c9e
2015-01-22 14:04:55 +11:00
Cameron McCormack
920c31261c Bug 1120284 - Part 4: Add functions to convert from logical to physical axes based on writing mode. r=jfkthame 2015-01-17 15:43:20 +11:00
Cameron McCormack
00a0ddeb0e Bug 1120284 - Part 3: Add physical axis constants. r=jfkthame 2015-01-17 15:43:20 +11:00
Cameron McCormack
0d6e5754f9 Bug 1083134 - Part 3: Add functions to WritingMode to convert between logical and physical sides. r=jfkthame 2015-01-17 15:22:51 +11:00
Jonathan Kew
f194052f6a Bug 1119770 - Remove the compile-time switch to enable/disable vertical writing mode support. r=smontagu 2015-01-12 20:55:52 +00:00
Ehsan Akhgari
4354953b4f Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Simon Montagu
8ef1ab91de Bug 1079154 patch 7: remove obsoleted nsPoint::GetPhysicalPosition, r=jfkthame 2015-01-06 23:10:43 -08:00
Simon Montagu
999a094a1f Bug 1079154 patch 1: add a != operator to LogicalPoint and sprinkle some const dust in WritingModes.h, r=jfkthame 2015-01-06 23:10:07 -08:00
Jonathan Kew
b6db377e53 Bug 1110181 - Move mTextOrientation to the nsStyleVisibility struct to avoid potential recursive dependency in nsStyleText. r=dbaron 2014-12-11 18:56:19 +00:00
Jonathan Kew
f067b8adaf Bug 1108923 - Use the correct containing box dimension as the percent basis for margin/padding in vertical writing modes. r=smontagu 2014-12-11 11:16:22 +00:00
Jonathan Kew
491103743a Bug 1107617 - Add support for writing-mode to the NotifyIMESelection message. r=smaug 2014-12-04 18:15:43 -08:00
Simon Montagu
af6d171075 Bug 1104711: short-circuit LogicalSize.ConvertTo when the source and target modes are non-orthogonal, r=jfkthame 2014-11-30 01:17:56 -08:00
Simon Montagu
ad766a1fcb Bug 1100071 patch 2: add macros for common tests whether bidi level is odd and whether two bidi levels have the same parity, r=dholbert 2014-11-20 12:45:22 +02:00
Jonathan Kew
8cde7ce607 Bug 1097128 - Enable compile-time support for vertical writing modes. r=smontagu 2014-11-19 11:15:45 +00:00
Jonathan Kew
34fea182cd Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu 2014-11-13 08:58:06 +00:00
Jonathan Kew
f97a6b6a7d Bug 1093165 - Include the text-orientation value in WritingMode, and add the IsSideways flag for baseline decisions. r=smontagu 2014-11-13 08:58:04 +00:00
Simon Montagu
b363c0fa88 Bug 1062963 patch 2: changes and additions to WritingModes.h. r=jfkthame 2014-10-21 15:16:12 -07:00
Phil Ringnalda
b2eb743d9b Backed out 4 changesets (bug 1062963, bug 1079139) for failures in 427129-table-caption.html in b2g reftest-6 and Android 2.3 reftest-5
Backed out changeset a9672db96a5d (bug 1079139)
Backed out changeset 241c23570a62 (bug 1062963)
Backed out changeset 90172cc0b012 (bug 1062963)
Backed out changeset 71211c4a4acc (bug 1062963)
2014-10-19 18:44:16 -07:00
Simon Montagu
7ed4ceb17c Bug 1062963 patch 2: changes and additions to WritingModes.h. r=jfkthame 2014-10-19 12:32:17 -07:00
Jonathan Kew
b3f3928b2a Bug 1079314 - Remove the mWritingMode field from logical-coordinate objects in non-debug builds. r=smontagu 2014-10-08 10:32:50 +01:00
Carsten "Tomcat" Book
bd22f2fcfd Backed out changeset b818ba8aabc2 (bug 1079314) for reftest failures on a CLOSED TREE 2014-10-08 13:07:39 +02:00
Jonathan Kew
846b797e54 Bug 1079314 - Remove the mWritingMode field from logical-coordinate objects in non-debug builds. r=smontagu 2014-10-08 10:32:50 +01:00
Simon Montagu
ceafcb2a98 Bug 1076986: make LogicalMargin and LogicalRect's IsEmpty the same as nsMargin and nsRect, r=jfkthame 2014-10-04 23:02:36 -07:00
Jonathan Kew
636b4bc534 bug 1061170 - constrain the reflow-state's available inline size for an orthogonal flow. r=smontagu 2014-09-03 16:43:03 +01:00
Jonathan Kew
1e0d48aa2d bug 1046950 pt 1 - additional/modified APIs on LogicalSize. r=smontagu 2014-08-24 15:34:21 +01:00
Ehsan Akhgari
2b84010cb8 Bug 1048246 - Fix more bad implicit constructors in layout; r=roc
--HG--
extra : rebase_source : ed828993139bc70232508364a9f046e38b7d3e06
2014-08-07 19:48:38 -04:00
Simon Montagu
18c9f2f61a Bug 789096 patch 10: make Reflow set nsHTMLReflowMetrics.ISize and BSize instead of Width and Height. r=jfkthame 2014-07-24 01:30:07 -07:00
Mats Palmgren
0f6c0582fb Bug 1028460 - part 4, Remove LOGICAL_SIDE* and use the LogicalSideBits enum values instead. r=roc
CLOSED TREE
2014-06-28 10:13:14 +00:00
Mats Palmgren
831bc3ff50 Bug 1028460 - part 2, Implement a mozilla::LogicalSides type that represents a set of logical sides that can be used for the GetLogicalSkipSides() result among other things. r=roc 2014-06-28 10:13:13 +00:00
Phil Ringnalda
811c3783d4 Back out 5 changesets (bug 1028460, bug 1031444) for somehow breaking asmjscache/test/test_cachingBasic.html on Android 2.2
Backed out changeset 0b5918ec6521 (bug 1031444)
Backed out changeset 663ff18cd4a1 (bug 1028460)
Backed out changeset ae01b3919c8c (bug 1028460)
Backed out changeset 316c8dfeca9b (bug 1028460)
Backed out changeset e237b2c61ea2 (bug 1028460)
2014-06-28 22:01:28 -07:00
Mats Palmgren
a4cf38d7b4 Bug 1028460 - part 4, Remove LOGICAL_SIDE* and use the LogicalSideBits enum values instead. r=roc 2014-06-28 10:13:14 +00:00
Mats Palmgren
488cd5e8c7 Bug 1028460 - part 2, Implement a mozilla::LogicalSides type that represents a set of logical sides that can be used for the GetLogicalSkipSides() result among other things. r=roc 2014-06-28 10:13:13 +00:00
Mats Palmgren
cb30f027c3 Bug 1025669 - part 0.5, Add LogicalMargin::ApplySkipSides. r=jfkthame 2014-06-24 17:52:19 +00:00
Simon Montagu
f3e261c3a0 Bug 789096 patch 7: Use logical coordinates in nsBlockReflowContext. r=jfkthame 2014-06-17 07:41:35 -07:00
Simon Montagu
f3f1e4c964 Add some more logical getters to nsIFrame.h. Bug 735577, r=jfkthame 2014-04-16 01:03:30 -07:00
Simon Montagu
2110ef8dc6 Use logical text layout API in nsLineLayout. Bug 789096, r=jfkthame 2014-03-11 13:23:50 -07:00
Carsten "Tomcat" Book
b99f5df532 Backed out changeset aeff4052ef00 (bug 789096) 2014-03-11 09:22:52 +01:00
Simon Montagu
5e0cf76c45 Use logical text layout API in nsLineLayout. Bug 789096, r=jfkthame 2014-03-10 22:19:03 -07:00
Simon Montagu
1ca7304c0e Extend the WritingModes API. Bug 735577, r=jfkthame 2014-02-12 23:55:08 -08:00
Jonathan Kew
3a4e628dd9 bug 735577 - pt 1 - introduce mozilla::WritingMode and logical-coordinate Point/Size/Margin/Rect classes. r=smontagu 2013-12-27 17:58:37 +00:00