Bug 474417. <wbr> support broken. r+sr=roc
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 20 Jan 2009 14:42:25 -0500
changeset 23977 60efe7c929574ad266599970ea35b3454f3a34c0
parent 23976 2cda622c9bd9fa2f4a83c13b584d20bdf190c7a9
child 23978 700bca4b693f4e21805bc035f36e5b66ae9fdf60
push id4822
push userbzbarsky@mozilla.com
push dateTue, 20 Jan 2009 19:43:04 +0000
treeherdermozilla-central@60efe7c92957 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs474417
milestone1.9.2a1pre
Bug 474417. <wbr> support broken. r+sr=roc
layout/base/nsCSSFrameConstructor.cpp
layout/reftests/bugs/474417-1-ref.html
layout/reftests/bugs/474417-1.html
layout/reftests/bugs/reftest.list
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -4987,17 +4987,17 @@ nsCSSFrameConstructor::FindHTMLData(nsIC
     return nsnull;
   }
 
   static const FrameConstructionDataByTag sHTMLData[] = {
     SIMPLE_TAG_CHAIN(img, nsCSSFrameConstructor::FindImgData),
     SIMPLE_TAG_CHAIN(mozgeneratedcontentimage,
                      nsCSSFrameConstructor::FindImgData),
     { &nsGkAtoms::br, FCDATA_DECL(FCDATA_SKIP_FRAMEMAP, NS_NewBRFrame) },
-    SIMPLE_TAG_CREATE(wbr, NS_NewBRFrame),
+    SIMPLE_TAG_CREATE(wbr, NS_NewWBRFrame),
     SIMPLE_TAG_CHAIN(input, nsCSSFrameConstructor::FindInputData),
     SIMPLE_TAG_CREATE(textarea, NS_NewTextControlFrame),
     COMPLEX_TAG_CREATE(select, &nsCSSFrameConstructor::ConstructSelectFrame),
     SIMPLE_TAG_CHAIN(object, nsCSSFrameConstructor::FindObjectData),
     SIMPLE_TAG_CHAIN(applet, nsCSSFrameConstructor::FindObjectData),
     SIMPLE_TAG_CHAIN(embed, nsCSSFrameConstructor::FindObjectData),
     COMPLEX_TAG_CREATE(fieldset,
                        &nsCSSFrameConstructor::ConstructFieldSetFrame),
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/474417-1-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+  <!-- Use the 0-width non-breakable space to force the same kerning behavior
+       as <wbr> -->
+<html>
+  <div style="width: 100em">
+    A&#xFEFF;B
+  </div>
+  <div style="width: 0">
+    A&#xFEFF; B
+  </div>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/474417-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+  <!-- Use the 0-width non-breakable space to give the same heights as the
+       reference -->
+<html>
+  <div style="width: 100em">
+    A&#xFEFF;<wbr>B
+  </div>
+  <div style="width: 0">
+    A&#xFEFF;<wbr>B
+  </div>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1025,8 +1025,9 @@ fails == 461512-1.html 461512-1-ref.html
 == 467084-1.html 467084-1-ref.html
 == 467084-2.html 467084-2-ref.html
 == 467460-1.html 467460-1-ref.html
 == 468473-1.xul 468473-1-ref.xul
 == 471356-1.html 471356-1-ref.html
 == 471594-1.xhtml 471594-1-ref.html
 == 472500-1.xul 472500-1-ref.xul
 == 474336-1.xul 474336-1-ref.xul
+== 474417-1.html 474417-1-ref.html