diff options
| author | Steve Block <steveblock@google.com> | 2011-06-08 08:26:01 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-08 08:26:01 -0700 |
| commit | 3742ac093d35d923c81693096ab6671e9b147700 (patch) | |
| tree | c2add9100f789dad45ef1ec5328bddde02c47a4c /Source/WebCore/platform/efl/ScrollbarEfl.cpp | |
| parent | 901401d90459bc22580842455d4588b9a697514d (diff) | |
| parent | e5926f4a0d6adc9ad4a75824129f117181953560 (diff) | |
| download | external_webkit-3742ac093d35d923c81693096ab6671e9b147700.zip external_webkit-3742ac093d35d923c81693096ab6671e9b147700.tar.gz external_webkit-3742ac093d35d923c81693096ab6671e9b147700.tar.bz2 | |
Merge changes I55c6d71a,Ifb3277d4,Ia1b847a2,I7ba9cf3f,Ida2b2a8a,I1280ec90,I72f818d5,I2e3b588b,I9a4e6289,Ia724c78b,Icd8612c8,Ie31b15d7,Ie125edae,I77941a88,I89dae78b,I3516e5ca,I1a4c17b5,I2c4ecc1a,I9c8e6537,Ifac13115,Ie1f80e09,Ia541ed77,I60ce9d78
* changes:
Merge WebKit at r82507: Update ThirdPartyProject.prop
Merge WebKit at r82507: Cherry-pick change r88166 to add INSPECTOR guards to ScriptProfiler
Merge WebKit at r82507: Work around a V8 bug
Merge WebKit at r82507: JNIType renamed to JavaType
Merge WebKit at r82507: IconDatabaseClient interface expanded
Merge WebKit at r82507: Don't use new loss-free code path in HTMLCanvasElement::toDataURL()
Merge WebKit at r82507: IcondDatabaseBase::iconForPageURL() renamed
Merge WebKit at r82507: IconDatabaseBase::Open() signature changed
Merge WebKit at r82507: Node::isContentEditable() renamed
Merge WebKit at r82507: Use icon database through IconDatabaseBase
Merge WebKit at r82507: toInputElement() is now a member of Node
Merge WebKit at r82507: FrameLoaderClient::objectContentType() signature changed
Merge WebKit at r82507: StringImpl::computeHash() removed
Merge WebKit at r82507: Stub out FontPlatformData::setOrientation()
Merge WebKit at r82507: Path::strokeBoundingRect() is now const
Merge WebKit at r82507: Add missing UnusedParam.h include in ApplicationCacheGroup.cpp
Merge WebKit at r82507: Continue to use Android's version of FontPlatformData.h
Merge WebKit at r82507: Update signature of FontCustomPlatformData::fontPlatformData()
Merge WebKit at r82507: Fix conflicts due to JNI refactoring
Merge WebKit at r82507: Fix conflicts due to new StorageTracker
Merge WebKit at r82507: Fix conflicts
Merge WebKit at r82507: Fix makefiles
Merge WebKit at r82507: Initial merge by git
Diffstat (limited to 'Source/WebCore/platform/efl/ScrollbarEfl.cpp')
| -rw-r--r-- | Source/WebCore/platform/efl/ScrollbarEfl.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/Source/WebCore/platform/efl/ScrollbarEfl.cpp b/Source/WebCore/platform/efl/ScrollbarEfl.cpp index e71d1e3..162c2a1 100644 --- a/Source/WebCore/platform/efl/ScrollbarEfl.cpp +++ b/Source/WebCore/platform/efl/ScrollbarEfl.cpp @@ -64,50 +64,50 @@ ScrollbarEfl::~ScrollbarEfl() setEvasObject(0); } -static void scrollbarEflEdjeMessage(void* data, Evas_Object* o, Edje_Message_Type type, int id, void* msg) +static void scrollbarEflEdjeMessage(void* data, Evas_Object* object, Edje_Message_Type messageType, int id, void* message) { ScrollbarEfl* that = static_cast<ScrollbarEfl*>(data); - Edje_Message_Float* m; - int v; + Edje_Message_Float* messageFloat; + int value; if (!id) { EINA_LOG_ERR("Unknown message id '%d' from scroll bar theme.", id); return; } - if (type != EDJE_MESSAGE_FLOAT) { + if (messageType != EDJE_MESSAGE_FLOAT) { EINA_LOG_ERR("Message id '%d' of incorrect type from scroll bar theme. " "Expected '%d', got '%d'.", - id, EDJE_MESSAGE_FLOAT, type); + id, EDJE_MESSAGE_FLOAT, messageType); return; } - m = static_cast<Edje_Message_Float*>(msg); - v = m->val * (that->totalSize() - that->visibleSize()); - that->scrollableArea()->scrollToOffsetWithoutAnimation(that->orientation(), v); + messageFloat = static_cast<Edje_Message_Float*>(message); + value = messageFloat->val * (that->totalSize() - that->visibleSize()); + that->scrollableArea()->scrollToOffsetWithoutAnimation(that->orientation(), value); } void ScrollbarEfl::setParent(ScrollView* view) { - Evas_Object* o = evasObject(); + Evas_Object* object = evasObject(); Evas_Coord w, h; Widget::setParent(view); - if (!o) { + if (!object) { if (!view) return; - o = edje_object_add(view->evas()); - if (!o) { + object = edje_object_add(view->evas()); + if (!object) { EINA_LOG_ERR("Could not create edje object for view=%p (evas=%p)", view, view->evas()); return; } - edje_object_message_handler_set(o, scrollbarEflEdjeMessage, this); - setEvasObject(o); + edje_object_message_handler_set(object, scrollbarEflEdjeMessage, this); + setEvasObject(object); } else if (!view) { - evas_object_hide(o); + evas_object_hide(object); return; } @@ -117,23 +117,23 @@ void ScrollbarEfl::setParent(ScrollView* view) if (theme.isEmpty()) { EINA_LOG_ERR("Could not load theme '%s': no theme path set.", group); - evas_object_hide(o); + evas_object_hide(object); return; } - if (!edje_object_file_set(o, theme.utf8().data(), group)) { - Edje_Load_Error err = edje_object_load_error_get(o); - const char* errmsg = edje_load_error_str(err); + if (!edje_object_file_set(object, theme.utf8().data(), group)) { + Edje_Load_Error err = edje_object_load_error_get(object); + const char* errmessage = edje_load_error_str(err); EINA_LOG_ERR("Could not load theme '%s' from file '%s': #%d '%s'", - group, theme.utf8().data(), err, errmsg); + group, theme.utf8().data(), err, errmessage); return; } - setPlatformWidget(o); - evas_object_smart_member_add(o, view->evasObject()); - evas_object_show(o); + setPlatformWidget(object); + evas_object_smart_member_add(object, view->evasObject()); + evas_object_show(object); - edje_object_size_min_get(o, &w, &h); + edje_object_size_min_get(object, &w, &h); IntRect rect = frameRect(); rect.setSize(IntSize(w, h)); @@ -168,21 +168,21 @@ void ScrollbarEfl::updateThumbPositionAndProportion() m_lastTotalSize = tSize; m_lastVisibleSize = vSize; - Edje_Message_Float_Set* msg = static_cast<Edje_Message_Float_Set*> + Edje_Message_Float_Set* message = static_cast<Edje_Message_Float_Set*> (alloca(sizeof(Edje_Message_Float_Set) + sizeof(float))); - msg->count = 2; + message->count = 2; if (tSize - vSize > 0) - msg->val[0] = pos / (float)(tSize - vSize); + message->val[0] = pos / static_cast<float>(tSize - vSize); else - msg->val[0] = 0.0; + message->val[0] = 0.0; if (tSize > 0) - msg->val[1] = vSize / (float)tSize; + message->val[1] = vSize / static_cast<float>(tSize); else - msg->val[1] = 0.0; + message->val[1] = 0.0; - edje_object_message_send(platformWidget(), EDJE_MESSAGE_FLOAT_SET, 0, msg); + edje_object_message_send(platformWidget(), EDJE_MESSAGE_FLOAT_SET, 0, message); } void ScrollbarEfl::setFrameRect(const IntRect& rect) @@ -193,10 +193,10 @@ void ScrollbarEfl::setFrameRect(const IntRect& rect) void ScrollbarEfl::frameRectsChanged() { - Evas_Object* o = platformWidget(); + Evas_Object* object = platformWidget(); Evas_Coord x, y; - if (!parent() || !o) + if (!parent() || !object) return; IntRect rect = frameRect(); @@ -206,11 +206,11 @@ void ScrollbarEfl::frameRectsChanged() rect.setLocation(parent()->contentsToWindow(rect.location())); evas_object_geometry_get(root()->evasObject(), &x, &y, 0, 0); - evas_object_move(o, x + rect.x(), y + rect.y()); - evas_object_resize(o, rect.width(), rect.height()); + evas_object_move(object, x + rect.x(), y + rect.y()); + evas_object_resize(object, rect.width(), rect.height()); } -void ScrollbarEfl::paint(GraphicsContext* context, const IntRect& rect) +void ScrollbarEfl::paint(GraphicsContext* graphicsContext, const IntRect& damageRect) { } |
