Title: [149811] trunk/Source/WebKit/blackberry
Revision
149811
Author
[email protected]
Date
2013-05-09 08:43:21 -0700 (Thu, 09 May 2013)

Log Message

[BlackBerry] Style updates required based on new check-webkit-style
https://bugs.webkit.org/show_bug.cgi?id=115857

Reviewed by Rob Buis.

Update DOMSupport to match check-webkit-style updates.

* WebKitSupport/DOMSupport.cpp:
(BlackBerry::WebKit::DOMSupport::isTextInputElement):
(BlackBerry::WebKit::DOMSupport::isPasswordElement):
(BlackBerry::WebKit::DOMSupport::convertPointToFrame):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/ChangeLog (149810 => 149811)


--- trunk/Source/WebKit/blackberry/ChangeLog	2013-05-09 15:42:09 UTC (rev 149810)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2013-05-09 15:43:21 UTC (rev 149811)
@@ -1,3 +1,17 @@
+2013-05-09  Mike Fenton  <[email protected]>
+
+        [BlackBerry] Style updates required based on new check-webkit-style
+        https://bugs.webkit.org/show_bug.cgi?id=115857
+
+        Reviewed by Rob Buis.
+
+        Update DOMSupport to match check-webkit-style updates.
+
+        * WebKitSupport/DOMSupport.cpp:
+        (BlackBerry::WebKit::DOMSupport::isTextInputElement):
+        (BlackBerry::WebKit::DOMSupport::isPasswordElement):
+        (BlackBerry::WebKit::DOMSupport::convertPointToFrame):
+
 2013-05-09  Xuefei Ren  <[email protected]>
 
         [BLACKBERRY]fix regression in Webpage

Modified: trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp (149810 => 149811)


--- trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp	2013-05-09 15:42:09 UTC (rev 149810)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp	2013-05-09 15:43:21 UTC (rev 149811)
@@ -103,14 +103,14 @@
 bool isTextInputElement(Element* element)
 {
     return element->isTextFormControl()
-           || element->hasTagName(HTMLNames::textareaTag)
-           || element->isContentEditable();
+        || element->hasTagName(HTMLNames::textareaTag)
+        || element->isContentEditable();
 }
 
 bool isPasswordElement(const Element* element)
 {
     return element && element->hasTagName(HTMLNames::inputTag)
-           && static_cast<const HTMLInputElement*>(element)->isPasswordField();
+        && static_cast<const HTMLInputElement*>(element)->isPasswordField();
 }
 
 WTF::String inputElementText(Element* element)
@@ -473,8 +473,9 @@
 
     // Requested point is outside of target frame, return InvalidPoint.
     if (clampToTargetFrame && !targetFrameRect.contains(targetPoint))
-        targetPoint = IntPoint(targetPoint.x() < targetFrameRect.x() ? targetFrameRect.x() : std::min(targetPoint.x(), targetFrameRect.maxX()),
-                targetPoint.y() < targetFrameRect.y() ? targetFrameRect.y() : std::min(targetPoint.y(), targetFrameRect.maxY()));
+        targetPoint = IntPoint(
+            targetPoint.x() < targetFrameRect.x() ? targetFrameRect.x() : std::min(targetPoint.x(), targetFrameRect.maxX()),
+            targetPoint.y() < targetFrameRect.y() ? targetFrameRect.y() : std::min(targetPoint.y(), targetFrameRect.maxY()));
     else if (!targetFrameRect.contains(targetPoint))
         return InvalidPoint;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to