mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class
This commit is contained in:
parent
4d7bdedade
commit
4bf43b8fb4
58 changed files with 155 additions and 589 deletions
|
|
@ -8,8 +8,7 @@
|
|||
#include "nsGkAtoms.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsNameSpaceManager.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsDisplayList.h"
|
||||
#include "nsITheme.h"
|
||||
#include "nsFrame.h"
|
||||
|
|
@ -376,7 +375,7 @@ nsButtonFrameRenderer::ReResolveStyles(nsPresContext* aPresContext)
|
|||
{
|
||||
// get all the styles
|
||||
nsStyleContext* context = mFrame->StyleContext();
|
||||
StyleSetHandle styleSet = aPresContext->StyleSet();
|
||||
nsStyleSet* styleSet = aPresContext->StyleSet();
|
||||
|
||||
#ifdef DEBUG
|
||||
if (mInnerFocusStyle) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
#include "nsIDOMHTMLInputElement.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIFormControl.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
using mozilla::dom::Element;
|
||||
|
|
|
|||
|
|
@ -30,8 +30,7 @@
|
|||
#include "nsIDocument.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include "nsListControlFrame.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsNodeInfoManager.h"
|
||||
#include "nsContentCreatorFunctions.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
|
|
@ -1358,7 +1357,7 @@ nsComboboxControlFrame::CreateFrameForDisplayNode()
|
|||
|
||||
// Get PresShell
|
||||
nsIPresShell *shell = PresContext()->PresShell();
|
||||
StyleSetHandle styleSet = shell->StyleSet();
|
||||
nsStyleSet* styleSet = shell->StyleSet();
|
||||
|
||||
// create the style contexts for the anonymous block frame and text frame
|
||||
RefPtr<nsStyleContext> styleContext;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@
|
|||
#include "nsGfxButtonControlFrame.h"
|
||||
#include "nsIFormControl.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsContentUtils.h"
|
||||
// MouseEvent suppression in PP
|
||||
#include "nsContentList.h"
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@
|
|||
#include "nsContentList.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsThemeConstants.h"
|
||||
#include <algorithm>
|
||||
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@
|
|||
#include "nsContentList.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsIDOMMutationEvent.h"
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/FloatingPoint.h"
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@
|
|||
#include "nsContentList.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsThemeConstants.h"
|
||||
#include <algorithm>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@
|
|||
#include "nsNodeInfoManager.h"
|
||||
#include "nsRenderingContext.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "nsThemeConstants.h"
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
|
|
@ -84,7 +83,7 @@ nsRangeFrame::Init(nsIContent* aContent,
|
|||
}
|
||||
aContent->AddEventListener(NS_LITERAL_STRING("touchstart"), mDummyTouchListener, false);
|
||||
|
||||
StyleSetHandle styleSet = PresContext()->StyleSet();
|
||||
nsStyleSet* styleSet = PresContext()->StyleSet();
|
||||
|
||||
mOuterFocusStyle =
|
||||
styleSet->ProbePseudoElementStyle(aContent->AsElement(),
|
||||
|
|
|
|||
|
|
@ -44,8 +44,7 @@
|
|||
#include "mozilla/TextEditRules.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsTextNode.h"
|
||||
#include "mozilla/StyleSetHandle.h"
|
||||
#include "mozilla/StyleSetHandleInlines.h"
|
||||
#include "nsStyleSet.h"
|
||||
#include "mozilla/dom/HTMLInputElement.h"
|
||||
#include "mozilla/dom/HTMLTextAreaElement.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue