From 0191705e87d1e61d24b8fc1a9b2a7d8ac82fa5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 22 Oct 2018 11:59:09 +0000 Subject: [PATCH] style: Use searchfox links instead of dxr links for nsRuleNode. Searchfox has better blame. Differential Revision: https://phabricator.services.mozilla.com/D9375 --- components/style/gecko/conversions.rs | 4 ++-- components/style/properties/gecko.mako.rs | 2 +- components/style/values/specified/font.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/style/gecko/conversions.rs b/components/style/gecko/conversions.rs index 10b177558fa..8cd9e4bdde2 100644 --- a/components/style/gecko/conversions.rs +++ b/components/style/gecko/conversions.rs @@ -1032,13 +1032,13 @@ impl TrackSize { match *self { TrackSize::FitContent(ref lop) => { // Gecko sets min value to None and max value to the actual value in fit-content - // https://dxr.mozilla.org/mozilla-central/rev/0eef1d5/layout/style/nsRuleNode.cpp#8221 + // https://searchfox.org/mozilla-central/rev/c05d9d61188d32b8209dfe4295944c0f1e0ce621/layout/style/nsRuleNode.cpp#7910 gecko_min.set_value(CoordDataValue::None); lop.to_gecko_style_coord(gecko_max); }, TrackSize::Breadth(ref breadth) => { // Set the value to both fields if there's one breadth value - // https://dxr.mozilla.org/mozilla-central/rev/0eef1d5/layout/style/nsRuleNode.cpp#8230 + // https://searchfox.org/mozilla-central/rev/c05d9d61188d32b8209dfe4295944c0f1e0ce621/layout/style/nsRuleNode.cpp#7919 breadth.to_gecko_style_coord(gecko_min); breadth.to_gecko_style_coord(gecko_max); }, diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 04e65b5fa7f..c0c01b5120f 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -2394,7 +2394,7 @@ fn static_assert() { /// from the parent. /// /// This is a port of Gecko's old ComputeScriptLevelSize function: - /// https://dxr.mozilla.org/mozilla-central/rev/35fbf14b9/layout/style/nsRuleNode.cpp#3197-3254 + /// https://searchfox.org/mozilla-central/rev/c05d9d61188d32b8209dfe4295944c0f1e0ce621/layout/style/nsRuleNode.cpp#3103 /// /// scriptlevel is a property that affects how font-size is inherited. If scriptlevel is /// +1, for example, it will inherit as the script size multiplier times diff --git a/components/style/values/specified/font.rs b/components/style/values/specified/font.rs index b7bc40b116e..daedd16887e 100644 --- a/components/style/values/specified/font.rs +++ b/components/style/values/specified/font.rs @@ -753,8 +753,8 @@ impl ToComputedValue for KeywordSize { // The tables in this function are originally from // nsRuleNode::CalcFontPointSize in Gecko: // - // https://dxr.mozilla.org/mozilla-central/rev/35fbf14b9/layout/style/nsRuleNode.cpp#3262-3336 - + // https://searchfox.org/mozilla-central/rev/c05d9d61188d32b8209dfe4295944c0f1e0ce621/layout/style/nsRuleNode.cpp#3150 + // // Mapping from base size and HTML size to pixels // The first index is (base_size - 9), the second is the // HTML size. "0" is CSS keyword xx-small, not HTML size 0,