[packages/chromium-browser/stable-26] harfbuzz 0.13 fix from WebKit for Oops pages

glen glen at pld-linux.org
Wed Mar 27 12:30:03 CET 2013


commit 17196832f859dce1d227ae4536a055cf8280c413
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 27 13:28:56 2013 +0200

    harfbuzz 0.13 fix from WebKit for Oops pages

 chromium-browser.spec |  5 ++++-
 harfbuzz-0.13.patch   | 15 +++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/chromium-browser.spec b/chromium-browser.spec
index afd8dcc..5922c10 100644
--- a/chromium-browser.spec
+++ b/chromium-browser.spec
@@ -114,6 +114,7 @@ Patch26:	master-prefs-path.patch
 Patch27:	tcmalloc-glibc2.16.patch
 Patch28:	system-mesa.patch
 Patch29:	speechd-0.8.patch
+Patch30:	harfbuzz-0.13.patch
 URL:		http://www.chromium.org/Home
 %{?with_gconf:BuildRequires:	GConf2-devel}
 %{?with_system_mesa:BuildRequires:	Mesa-libGL-devel >= 9.1}
@@ -210,7 +211,6 @@ Requires:	xorg-lib-libX11 >= 1.4.99.1
 Provides:	wwwbrowser
 Obsoletes:	chromium-browser-bookmark_manager < 5.0.388.0
 Obsoletes:	chromium-browser-inspector < 15.0.863.0
-%{?with_system_harfbuzz:Conflicts:	harfbuzz >= 0.9.13}
 ExclusiveArch:	%{ix86} %{x8664} arm
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -299,6 +299,9 @@ ln -s %{SOURCE7} .
 %patch24 -p2
 %patch26 -p2
 %patch29 -p2
+cd third_party/WebKit
+%patch30 -p1
+cd -
 
 sh -x clean-source.sh \
 	%{!?with_nacl:nacl=0} \
diff --git a/harfbuzz-0.13.patch b/harfbuzz-0.13.patch
new file mode 100644
index 0000000..d540bcf
--- /dev/null
+++ b/harfbuzz-0.13.patch
@@ -0,0 +1,15 @@
+http://crbug.com/223500
+http://trac.webkit.org/changeset/143337/trunk/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp
+
+Index: trunk/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp
+===================================================================
+--- trunk/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp	(revision 142928)
++++ trunk/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp	(revision 143337)
+@@ -330,4 +330,7 @@
+         if (shouldSetDirection)
+             hb_buffer_set_direction(harfBuzzBuffer.get(), currentRun->rtl() ? HB_DIRECTION_RTL : HB_DIRECTION_LTR);
++        else
++            // Leaving direction to HarfBuzz to guess is *really* bad, but will do for now.
++            hb_buffer_guess_segment_properties(harfBuzzBuffer.get());
+ 
+         // Add a space as pre-context to the buffer. This prevents showing dotted-circle
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/17196832f859dce1d227ae4536a055cf8280c413



More information about the pld-cvs-commit mailing list