-
- Downloads
Make nsRuleNode's use of font metrics for ch and ex units pass the correct...
Make nsRuleNode's use of font metrics for ch and ex units pass the correct language. (Bug 678671, patch 3) r=roc This makes these users (which are exceptions within layout, although low-level enough that it won't matter for font inflation work) call through to GetMetricsFor explicitly with the correct language, rather than using the broken nsPresContext::GetMetricsFor and its charset-detected language. This improves the correctness of our behavior for 'ch' and 'ex' CSS units when the font selection (or defaults) are language-dependent. It should also reduce the number of unique sets of font metrics requested (which helps nsFontCache effectiveness).
Showing
- layout/style/nsRuleNode.cpp 70 additions, 20 deletionslayout/style/nsRuleNode.cpp
- layout/style/nsRuleNode.h 1 addition, 0 deletionslayout/style/nsRuleNode.h
- layout/style/test/Makefile.in 1 addition, 0 deletionslayout/style/test/Makefile.in
- layout/style/test/test_ch_ex_no_infloops.html 64 additions, 0 deletionslayout/style/test/test_ch_ex_no_infloops.html
Loading
Please register or sign in to comment