mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Attach FrameProperties to each frame instead of using a shared hashtable
Dispense the shared hashtable and instead attach the frame property list directly to nsIFrame.
This commit is contained in:
parent
c135831979
commit
922e819d1c
62 changed files with 738 additions and 945 deletions
|
|
@ -1328,7 +1328,7 @@ NS_DECLARE_FRAME_PROPERTY_DELETABLE(TextNodeCorrespondenceProperty,
|
|||
static uint32_t
|
||||
GetUndisplayedCharactersBeforeFrame(nsTextFrame* aFrame)
|
||||
{
|
||||
void* value = aFrame->Properties().Get(TextNodeCorrespondenceProperty());
|
||||
void* value = aFrame->GetProperty(TextNodeCorrespondenceProperty());
|
||||
TextNodeCorrespondence* correspondence =
|
||||
static_cast<TextNodeCorrespondence*>(value);
|
||||
if (!correspondence) {
|
||||
|
|
@ -1517,8 +1517,8 @@ TextNodeCorrespondenceRecorder::TraverseAndRecord(nsIFrame* aFrame)
|
|||
}
|
||||
|
||||
// Set the frame property.
|
||||
frame->Properties().Set(TextNodeCorrespondenceProperty(),
|
||||
new TextNodeCorrespondence(undisplayed));
|
||||
frame->SetProperty(TextNodeCorrespondenceProperty(),
|
||||
new TextNodeCorrespondence(undisplayed));
|
||||
|
||||
// Remember how far into the current nsTextNode we are.
|
||||
mNodeCharIndex = frame->GetContentEnd();
|
||||
|
|
@ -3391,7 +3391,7 @@ SVGTextFrame::HandleAttributeChangeInDescendant(Element* aElement,
|
|||
// Blow away our reference, if any
|
||||
nsIFrame* childElementFrame = aElement->GetPrimaryFrame();
|
||||
if (childElementFrame) {
|
||||
childElementFrame->Properties().Delete(
|
||||
childElementFrame->DeleteProperty(
|
||||
nsSVGEffects::HrefAsTextPathProperty());
|
||||
NotifyGlyphMetricsChange();
|
||||
}
|
||||
|
|
@ -4817,7 +4817,7 @@ SVGPathElement*
|
|||
SVGTextFrame::GetTextPathPathElement(nsIFrame* aTextPathFrame)
|
||||
{
|
||||
nsSVGTextPathProperty *property =
|
||||
aTextPathFrame->Properties().Get(nsSVGEffects::HrefAsTextPathProperty());
|
||||
aTextPathFrame->GetProperty(nsSVGEffects::HrefAsTextPathProperty());
|
||||
|
||||
if (!property) {
|
||||
nsIContent* content = aTextPathFrame->GetContent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue