| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 3002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3013 element->document().updateStyleAndLayoutTree(); | 3013 element->document().updateStyleAndLayoutTree(); |
| 3014 if (hasEditableStyle(*element)) | 3014 if (hasEditableStyle(*element)) |
| 3015 return true; | 3015 return true; |
| 3016 | 3016 |
| 3017 if (element->isTextFormControl()) { | 3017 if (element->isTextFormControl()) { |
| 3018 const HTMLTextFormControlElement* input = toHTMLTextFormControlElement(e
lement); | 3018 const HTMLTextFormControlElement* input = toHTMLTextFormControlElement(e
lement); |
| 3019 if (!input->isDisabledOrReadOnly()) | 3019 if (!input->isDisabledOrReadOnly()) |
| 3020 return true; | 3020 return true; |
| 3021 } | 3021 } |
| 3022 | 3022 |
| 3023 return equalIgnoringCase(element->getAttribute(HTMLNames::roleAttr), "textbo
x"); | 3023 return equalIgnoringASCIICase(element->getAttribute(HTMLNames::roleAttr), "t
extbox"); |
| 3024 } | 3024 } |
| 3025 | 3025 |
| 3026 bool WebViewImpl::scrollFocusedEditableElementIntoRect(const WebRect& rectInView
port) | 3026 bool WebViewImpl::scrollFocusedEditableElementIntoRect(const WebRect& rectInView
port) |
| 3027 { | 3027 { |
| 3028 LocalFrame* frame = page()->mainFrame() && page()->mainFrame()->isLocalFrame
() | 3028 LocalFrame* frame = page()->mainFrame() && page()->mainFrame()->isLocalFrame
() |
| 3029 ? page()->deprecatedLocalMainFrame() : nullptr; | 3029 ? page()->deprecatedLocalMainFrame() : nullptr; |
| 3030 Element* element = focusedElement(); | 3030 Element* element = focusedElement(); |
| 3031 if (!frame || !frame->view() || !element) | 3031 if (!frame || !frame->view() || !element) |
| 3032 return false; | 3032 return false; |
| 3033 | 3033 |
| (...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4618 return nullptr; | 4618 return nullptr; |
| 4619 return focusedFrame; | 4619 return focusedFrame; |
| 4620 } | 4620 } |
| 4621 | 4621 |
| 4622 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const | 4622 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const |
| 4623 { | 4623 { |
| 4624 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4624 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4625 } | 4625 } |
| 4626 | 4626 |
| 4627 } // namespace blink | 4627 } // namespace blink |
| OLD | NEW |