summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2010-03-30 00:56:29 +0100
committerNicolas Roard <nicolas@android.com>2010-03-30 00:56:34 +0100
commit93db38007491957ef1db24320270a8cbc7a83819 (patch)
tree26dab99848d46661827094b6f65e4827a8f7caed /WebCore
parent526c77460deab759c0c4cb3c7eb701b1d4e92da3 (diff)
downloadexternal_webkit-93db38007491957ef1db24320270a8cbc7a83819.zip
external_webkit-93db38007491957ef1db24320270a8cbc7a83819.tar.gz
external_webkit-93db38007491957ef1db24320270a8cbc7a83819.tar.bz2
Remove ANDROID_FIXED_ELEMENTS
Bug:2534420 Change-Id: Ieb93c8888a1d05dece3c817a8847e4f2c22a865a
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/config.h4
-rw-r--r--WebCore/rendering/RenderBox.cpp16
2 files changed, 0 insertions, 20 deletions
diff --git a/WebCore/config.h b/WebCore/config.h
index 12ada30..9c14b28 100644
--- a/WebCore/config.h
+++ b/WebCore/config.h
@@ -137,10 +137,6 @@
#define ANDROID_FIX
-// Ensure that the fixed elements are set relative to the screen
-// rather than the virtual viewport
-#define ANDROID_FIXED_ELEMENTS
-
// Passes the webkit-originated changes of a focused textfield to our UI
// thread
#define ANDROID_ACCEPT_CHANGES_TO_FOCUSED_TEXTFIELDS
diff --git a/WebCore/rendering/RenderBox.cpp b/WebCore/rendering/RenderBox.cpp
index 91f72ed..92c3d99 100644
--- a/WebCore/rendering/RenderBox.cpp
+++ b/WebCore/rendering/RenderBox.cpp
@@ -56,10 +56,6 @@
#include "WMLNames.h"
#endif
-#ifdef ANDROID_FIXED_ELEMENTS
-#include "PlatformBridge.h"
-#endif
-
using namespace std;
namespace WebCore {
@@ -1790,12 +1786,6 @@ void RenderBox::calcVerticalMargins()
int RenderBox::containingBlockWidthForPositioned(const RenderBoxModelObject* containingBlock) const
{
-#ifdef ANDROID_FIXED_ELEMENTS
- if (style()->position() == FixedPosition && containingBlock->isRenderView()) {
- const RenderView* view = toRenderView(containingBlock);
- return PlatformBridge::screenWidth(view->frameView());
- }
-#endif
if (containingBlock->isBox()) {
const RenderBox* containingBlockBox = toRenderBox(containingBlock);
return containingBlockBox->width() - containingBlockBox->borderLeft() - containingBlockBox->borderRight() - containingBlockBox->verticalScrollbarWidth();
@@ -1826,12 +1816,6 @@ int RenderBox::containingBlockWidthForPositioned(const RenderBoxModelObject* con
int RenderBox::containingBlockHeightForPositioned(const RenderBoxModelObject* containingBlock) const
{
-#ifdef ANDROID_FIXED_ELEMENTS
- if (style()->position() == FixedPosition && containingBlock->isRenderView()) {
- const RenderView* view = toRenderView(containingBlock);
- return PlatformBridge::screenHeight(view->frameView());
- }
-#endif
int heightResult = 0;
if (containingBlock->isBox())
heightResult = toRenderBox(containingBlock)->height();