diff options
author | Andy Huang <ath@google.com> | 2013-03-12 21:09:40 -0700 |
---|---|---|
committer | Andy Huang <ath@google.com> | 2013-03-13 17:56:51 -0700 |
commit | 8a396bea575d6a71a3a1ecb4e2df88c9a7158a67 (patch) | |
tree | 1171c6150f15b7d96ce10b0c0c6580029b33c3c3 /assets | |
parent | 0180f27c0998623b702274048b49cd4bec536cf1 (diff) | |
download | android_packages_apps_UnifiedEmail-8a396bea575d6a71a3a1ecb4e2df88c9a7158a67.tar.gz android_packages_apps_UnifiedEmail-8a396bea575d6a71a3a1ecb4e2df88c9a7158a67.tar.bz2 android_packages_apps_UnifiedEmail-8a396bea575d6a71a3a1ecb4e2df88c9a7158a67.zip |
remove the unpopular intra-word rule
It kicked in too often to warrant fixing 1% of unbreakable long email
signatures. Maybe we could bring it back if it could be properly scoped,
but I haven't figured out a good scoping rule yet.
Bug: 7400516
Change-Id: Id15ca8ec45783182d2c0fedd211a9b449ad12bb0
Diffstat (limited to 'assets')
-rw-r--r-- | assets/script.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/assets/script.js b/assets/script.js index b11fd6df9..45df0f891 100644 --- a/assets/script.js +++ b/assets/script.js @@ -274,21 +274,6 @@ function transformContent(el, docWidth, elWidth) { } } - // OK, that wasn't enough. Try further munging all <td> to override text wrapping. - // - // TODO: this is a risky transform that should not be attempted on sufficiently complex mail. - // (TBD how to measure that) - touched = addClassToElements(nodes, null /* mungeAll */, "munged2", actionLog); - if (touched) { - newWidth = el.scrollWidth; - console.log("ran td munger2 on el=" + el + " oldW=" + elWidth + " newW=" + newWidth - + " docW=" + docWidth); - if (newWidth <= docWidth) { - console.log("munger succeeded, elapsed time=" + (Date.now() - start)); - return; - } - } - // If the transformations shrank the width significantly enough, leave them in place. // We figure that in those cases, the benefits outweight the risk of rendering artifacts. if ((elWidth - newWidth) / (elWidth - docWidth) > TRANSFORM_MINIMUM_EFFECTIVE_RATIO) { |