Remove out-of-date macros
authorJaehun Lim <ljaehun.lim@samsung.com>
Wed, 8 May 2013 22:35:05 +0000 (07:35 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 22 May 2013 00:38:40 +0000 (09:38 +0900)
[Title] Remove out-of-date macros
[Issue#] N/A
[Problem] Code cleanup
[Cause] TIZEN_EXPEDIA_CALENDAR_FIX and TIZEN_PREVENT_CRASH_VIMEO_SITE
        are useless now
[Solution] Remove macros and codes

Change-Id: I33d5962f2b71b2a8861b1baa6ab6ebc6cffdde4f

Source/WTF/wtf/Platform.h
Source/WebCore/rendering/RenderBlockLineLayout.cpp
Source/WebCore/rendering/RenderTheme.cpp

index 3d7e798..7f84cb7 100755 (executable)
 
 /* Workaround Patches */
 #define ENABLE_TIZEN_PREVENT_INCREMENTAL_IMAGE_RENDERING_WORKAROUND 1 /* Ryuan Choi(ryuan.choi@samsung.com) : */
-/* fix for showing callendar on expedia site when frame flattening enabled */
-#define ENABLE_TIZEN_EXPEDIA_CALENDAR_FIX 1
 #define ENABLE_TIZEN_POPUP_FIX 1
 /* fix for connection timeout */
 #define ENABLE_TIZEN_TIMEOUT_FIX 1 /* Łukasz Ślachciak(l.slachciak@samsung.com) : */
 #define ENABLE_TIZEN_FIX_BUILD_BREAK_GCC 1 /* Sanggyu Lee(sg5.lee@samsung.com) : Fixed a fastMalloc compile error for Thumb2 with GCC */
 /* View mode patches */
 #define ENABLE_TIZEN_VIEW_MODE 1 /* Who is ownver ? : */
-#define ENABLE_TIZEN_PREVENT_CRASH_VIMEO_SITE 1 /* Jaehun Lim(ljaehun.lim@samsung.com) : Add NULL check to prevent crash in vimeo.com (for i386 or non-flash environment) */
 /* Workaround for using the defaut encoding set */
 #define ENABLE_TIZEN_FIX_CLIP_PATTERN_RECT 1 /* Kyungjin Kim(gen.kim@samsung.com) : adjust clip rect to the min of pattern and clip for repeatX, repeatY */
 #define ENABLE_TIZEN_2D_CANVAS_ZERO_GRADIENT 1 /* Rashmi Shyamasundar (rashmi.s2@samsung.com) : If the gradient size is zero, then the functions fillXXX/strokeXXX should paint nothing */
index 3399d03..4e81775 100755 (executable)
@@ -1532,11 +1532,7 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, LayoutUnit& repain
                 if (relayoutChildren && box->needsPreferredWidthsRecalculation())
                     o->setPreferredLogicalWidthsDirty(true, MarkOnlyThis);
 
-#if ENABLE(TIZEN_PREVENT_CRASH_VIMEO_SITE)
-                if (o->isOutOfFlowPositioned() && o->containingBlock())
-#else
                 if (o->isOutOfFlowPositioned())
-#endif
                     o->containingBlock()->insertPositionedObject(box);
                 else if (o->isFloating())
                     layoutState.floats().append(FloatWithRect(box));
index 3255227..faaec04 100644 (file)
@@ -714,21 +714,6 @@ bool RenderTheme::stateChanged(RenderObject* o, ControlState state) const
     if (state == PressedState && !isEnabled(o))
         return false;
 
-#if ENABLE(TIZEN_EXPEDIA_CALENDAR_FIX)
-    if (state == PressedState && isEnabled(o)) {
-        Node* node = o->node();
-        if (node) {
-            Frame* frame = node->document()->frame();
-            if (frame) {
-                Page* page = frame->page();
-                if (page)
-                    if (page->settings()->frameFlatteningEnabled())
-                        frame->document()->evaluateMediaQueryList();
-            }
-        }
-    }
-#endif
-
     // Repaint the control.
     o->repaint();
     return true;