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 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 return WebTextInputTypeTextArea; | 2255 return WebTextInputTypeTextArea; |
2256 } | 2256 } |
2257 | 2257 |
2258 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 2258 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
2259 if (element->isHTMLElement()) { | 2259 if (element->isHTMLElement()) { |
2260 if (toHTMLElement(element)->isDateTimeFieldElement()) | 2260 if (toHTMLElement(element)->isDateTimeFieldElement()) |
2261 return WebTextInputTypeDateTimeField; | 2261 return WebTextInputTypeDateTimeField; |
2262 } | 2262 } |
2263 #endif | 2263 #endif |
2264 | 2264 |
2265 if (element->shouldUseInputMethod()) | 2265 if (element->isContentEditable(Node::UserSelectAllIsAlwaysNonEditable)) |
2266 return WebTextInputTypeContentEditable; | 2266 return WebTextInputTypeContentEditable; |
2267 | 2267 |
2268 return WebTextInputTypeNone; | 2268 return WebTextInputTypeNone; |
2269 } | 2269 } |
2270 | 2270 |
2271 WebString WebViewImpl::inputModeOfFocusedElement() | 2271 WebString WebViewImpl::inputModeOfFocusedElement() |
2272 { | 2272 { |
2273 if (!RuntimeEnabledFeatures::inputModeAttributeEnabled()) | 2273 if (!RuntimeEnabledFeatures::inputModeAttributeEnabled()) |
2274 return WebString(); | 2274 return WebString(); |
2275 | 2275 |
(...skipping 1977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4253 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4253 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4254 | 4254 |
4255 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4255 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4256 return false; | 4256 return false; |
4257 | 4257 |
4258 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4258 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4259 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4259 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4260 } | 4260 } |
4261 | 4261 |
4262 } // namespace blink | 4262 } // namespace blink |
OLD | NEW |