diff --git a/layout/html/table/src/nsTableColFrame.cpp b/layout/html/table/src/nsTableColFrame.cpp
index 6ddbf73163e2..577bb2ec779d 100644
--- a/layout/html/table/src/nsTableColFrame.cpp
+++ b/layout/html/table/src/nsTableColFrame.cpp
@@ -161,15 +161,6 @@ nsTableColFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame)
{
- if ((aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND) &&
- (mRect.Contains(aPoint))) {
- const nsStyleVisibility* vis =
- (const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
- if (vis->IsVisible()) {
- *aFrame = this;
- return NS_OK;
- }
- }
return NS_ERROR_FAILURE;
}
diff --git a/layout/html/table/src/nsTableColGroupFrame.cpp b/layout/html/table/src/nsTableColGroupFrame.cpp
index ffdd205f07cf..81a94041678f 100644
--- a/layout/html/table/src/nsTableColGroupFrame.cpp
+++ b/layout/html/table/src/nsTableColGroupFrame.cpp
@@ -437,7 +437,7 @@ nsTableColGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
- return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
+ return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
NS_METHOD nsTableColGroupFrame::Reflow(nsIPresContext* aPresContext,
diff --git a/layout/html/table/src/nsTableRowFrame.cpp b/layout/html/table/src/nsTableRowFrame.cpp
index acdc25708bc8..315b0f97e1bc 100644
--- a/layout/html/table/src/nsTableRowFrame.cpp
+++ b/layout/html/table/src/nsTableRowFrame.cpp
@@ -707,15 +707,6 @@ nsTableRowFrame::GetFrameForPoint(nsIPresContext* aPresContext,
return NS_OK;
}
- if ( inThisFrame && (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND)) {
- const nsStyleVisibility* vis =
- (const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
- if (vis->IsVisible()) {
- *aFrame = this;
- return NS_OK;
- }
- }
-
return NS_ERROR_FAILURE;
}
diff --git a/layout/html/table/src/nsTableRowGroupFrame.cpp b/layout/html/table/src/nsTableRowGroupFrame.cpp
index 08fa927b6c34..0a9a56c38d23 100644
--- a/layout/html/table/src/nsTableRowGroupFrame.cpp
+++ b/layout/html/table/src/nsTableRowGroupFrame.cpp
@@ -305,7 +305,7 @@ nsTableRowGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
- return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
+ return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
// Position and size aKidFrame and update our reflow state. The origin of
diff --git a/layout/tables/nsTableColFrame.cpp b/layout/tables/nsTableColFrame.cpp
index 6ddbf73163e2..577bb2ec779d 100644
--- a/layout/tables/nsTableColFrame.cpp
+++ b/layout/tables/nsTableColFrame.cpp
@@ -161,15 +161,6 @@ nsTableColFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame)
{
- if ((aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND) &&
- (mRect.Contains(aPoint))) {
- const nsStyleVisibility* vis =
- (const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
- if (vis->IsVisible()) {
- *aFrame = this;
- return NS_OK;
- }
- }
return NS_ERROR_FAILURE;
}
diff --git a/layout/tables/nsTableColGroupFrame.cpp b/layout/tables/nsTableColGroupFrame.cpp
index ffdd205f07cf..81a94041678f 100644
--- a/layout/tables/nsTableColGroupFrame.cpp
+++ b/layout/tables/nsTableColGroupFrame.cpp
@@ -437,7 +437,7 @@ nsTableColGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
- return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
+ return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
NS_METHOD nsTableColGroupFrame::Reflow(nsIPresContext* aPresContext,
diff --git a/layout/tables/nsTableRowFrame.cpp b/layout/tables/nsTableRowFrame.cpp
index acdc25708bc8..315b0f97e1bc 100644
--- a/layout/tables/nsTableRowFrame.cpp
+++ b/layout/tables/nsTableRowFrame.cpp
@@ -707,15 +707,6 @@ nsTableRowFrame::GetFrameForPoint(nsIPresContext* aPresContext,
return NS_OK;
}
- if ( inThisFrame && (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND)) {
- const nsStyleVisibility* vis =
- (const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
- if (vis->IsVisible()) {
- *aFrame = this;
- return NS_OK;
- }
- }
-
return NS_ERROR_FAILURE;
}
diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp
index 08fa927b6c34..0a9a56c38d23 100644
--- a/layout/tables/nsTableRowGroupFrame.cpp
+++ b/layout/tables/nsTableRowGroupFrame.cpp
@@ -305,7 +305,7 @@ nsTableRowGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
- return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
+ return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
// Position and size aKidFrame and update our reflow state. The origin of