From 98d88074edbf55cb9df0f7d8e634e95e39007615 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Wed, 6 Aug 2014 17:19:31 +1200 Subject: [PATCH] Bug 1048752. Part 36: Remove ancient horizontal rules. r=tn --HG-- extra : rebase_source : 7537ad3060b7703565d2a259109fae96e238e0a4 --- layout/base/nsCaret.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/layout/base/nsCaret.cpp b/layout/base/nsCaret.cpp index ba4079fe7984..ab8440c4c3fa 100644 --- a/layout/base/nsCaret.cpp +++ b/layout/base/nsCaret.cpp @@ -113,8 +113,6 @@ IsBidiUI() return Preferences::GetBool("bidi.browser.ui"); } -//----------------------------------------------------------------------------- - nsCaret::nsCaret() : mOverrideOffset(0) , mIsBlinkOn(false) @@ -125,13 +123,11 @@ nsCaret::nsCaret() { } -//----------------------------------------------------------------------------- nsCaret::~nsCaret() { StopBlinking(); } -//----------------------------------------------------------------------------- nsresult nsCaret::Init(nsIPresShell *inPresShell) { NS_ENSURE_ARG(inPresShell); @@ -203,7 +199,6 @@ nsCaret::ComputeMetrics(nsIFrame* aFrame, int32_t aOffset, nscoord aCaretHeight) return result; } -//----------------------------------------------------------------------------- void nsCaret::Terminate() { // this doesn't erase the caret if it's drawn. Should it? We might not have @@ -223,17 +218,14 @@ void nsCaret::Terminate() mOverrideContent = nullptr; } -//----------------------------------------------------------------------------- NS_IMPL_ISUPPORTS(nsCaret, nsISelectionListener) -//----------------------------------------------------------------------------- nsISelection* nsCaret::GetSelection() { nsCOMPtr sel(do_QueryReferent(mDomSelectionWeak)); return sel; } -//----------------------------------------------------------------------------- void nsCaret::SetSelection(nsISelection *aDOMSel) { MOZ_ASSERT(aDOMSel); @@ -242,8 +234,6 @@ void nsCaret::SetSelection(nsISelection *aDOMSel) SchedulePaint(); } - -//----------------------------------------------------------------------------- void nsCaret::SetVisible(bool inMakeVisible) { mVisible = inMakeVisible; @@ -252,8 +242,6 @@ void nsCaret::SetVisible(bool inMakeVisible) SchedulePaint(); } - -//----------------------------------------------------------------------------- bool nsCaret::IsVisible() { if (!mVisible) { @@ -278,8 +266,6 @@ bool nsCaret::IsVisible() return true; } - -//----------------------------------------------------------------------------- void nsCaret::SetCaretReadOnly(bool inMakeReadonly) { mReadOnly = inMakeReadonly; @@ -527,8 +513,6 @@ void nsCaret::PaintCaret(nsDisplayListBuilder *aBuilder, } } - -//----------------------------------------------------------------------------- NS_IMETHODIMP nsCaret::NotifySelectionChanged(nsIDOMDocument *, nsISelection *aDomSel, int16_t aReason) @@ -555,8 +539,6 @@ nsCaret::NotifySelectionChanged(nsIDOMDocument *, nsISelection *aDomSel, return NS_OK; } - -//----------------------------------------------------------------------------- void nsCaret::ResetBlinking() { mIsBlinkOn = true; @@ -583,7 +565,6 @@ void nsCaret::ResetBlinking() } } -//----------------------------------------------------------------------------- void nsCaret::StopBlinking() { if (mBlinkTimer) @@ -866,7 +847,6 @@ nsCaret::ComputeCaretRects(nsIFrame* aFrame, int32_t aFrameOffset, } } -//----------------------------------------------------------------------------- /* static */ void nsCaret::CaretBlinkCallback(nsITimer* aTimer, void* aClosure) {