Check node value when called getFocusedRect method
authorTaeyun An <ty.an@samsung.com>
Fri, 26 Apr 2013 10:50:01 +0000 (19:50 +0900)
committerTaeyun An <ty.an@samsung.com>
Fri, 26 Apr 2013 10:50:01 +0000 (19:50 +0900)
[Title] Check node value when called getFocusedRect method
[Issue#] P130426-5253
[Problem] When push the View more tweets in twitter app Webprocess
[Cause] Missing null check routine node value while proceed getFocusedRect method.
[Solution] Adding check routine for node value.

Change-Id: I381685b7a3e3c7595d7e38f5c196ba157535d78b

Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp

index 8da9d30..df173cf 100755 (executable)
@@ -850,6 +850,9 @@ static IntRect getNodeRect(Node* node, Node* focusableNode, bool isImage)
 static IntRect getFocusedRect(HitTestResult hitTestResult, Page* page)
 {
     Node* node = hitTestResult.innerNode();
+    if (!node)
+        return IntRect();
+
     bool isFocusRingDrawable = false;
     Node* focusableNode = node;
     while (focusableNode) {