summaryrefslogtreecommitdiffstats
path: root/layout/mathml/nsMathMLmtableFrame.cpp
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-02-03 20:47:41 +0200
committerwin7-7 <win7-7@users.noreply.github.com>2020-02-03 20:47:41 +0200
commit597a6996f14429d09a7c89b1f774d2490cca3dd6 (patch)
tree3dbc37b8f412d636abcb5b167f58f3fbb1faa2a0 /layout/mathml/nsMathMLmtableFrame.cpp
parentc4e1022f578b264641f5e25fcef3069bdae7490e (diff)
downloadUXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar.gz
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar.lz
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.tar.xz
UXP-597a6996f14429d09a7c89b1f774d2490cca3dd6.zip
Issue #1386 - Devirtualize GetRowSpan/GetColSpan
It's at ~1.5% on the perf log for the Netflix use case, which seems a bit too much.
Diffstat (limited to 'layout/mathml/nsMathMLmtableFrame.cpp')
-rw-r--r--layout/mathml/nsMathMLmtableFrame.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/layout/mathml/nsMathMLmtableFrame.cpp b/layout/mathml/nsMathMLmtableFrame.cpp
index fd184e637..1ff8a28ef 100644
--- a/layout/mathml/nsMathMLmtableFrame.cpp
+++ b/layout/mathml/nsMathMLmtableFrame.cpp
@@ -1160,47 +1160,6 @@ nsMathMLmtdFrame::Init(nsIContent* aContent,
RemoveStateBits(NS_FRAME_FONT_INFLATION_FLOW_ROOT);
}
-int32_t
-nsMathMLmtdFrame::GetRowSpan()
-{
- int32_t rowspan = 1;
-
- // Don't look at the content's rowspan if we're not an mtd or a pseudo cell.
- if (mContent->IsMathMLElement(nsGkAtoms::mtd_) &&
- !StyleContext()->GetPseudo()) {
- nsAutoString value;
- mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::rowspan, value);
- if (!value.IsEmpty()) {
- nsresult error;
- rowspan = value.ToInteger(&error);
- if (NS_FAILED(error) || rowspan < 0)
- rowspan = 1;
- rowspan = std::min(rowspan, MAX_ROWSPAN);
- }
- }
- return rowspan;
-}
-
-int32_t
-nsMathMLmtdFrame::GetColSpan()
-{
- int32_t colspan = 1;
-
- // Don't look at the content's colspan if we're not an mtd or a pseudo cell.
- if (mContent->IsMathMLElement(nsGkAtoms::mtd_) &&
- !StyleContext()->GetPseudo()) {
- nsAutoString value;
- mContent->GetAttr(kNameSpaceID_None, nsGkAtoms::columnspan_, value);
- if (!value.IsEmpty()) {
- nsresult error;
- colspan = value.ToInteger(&error);
- if (NS_FAILED(error) || colspan <= 0 || colspan > MAX_COLSPAN)
- colspan = 1;
- }
- }
- return colspan;
-}
-
nsresult
nsMathMLmtdFrame::AttributeChanged(int32_t aNameSpaceID,
nsIAtom* aAttribute,