OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 #if OS(WIN) | 1057 #if OS(WIN) |
1058 if (panScrollInProgress()) | 1058 if (panScrollInProgress()) |
1059 return NoCursorChange; | 1059 return NoCursorChange; |
1060 #endif | 1060 #endif |
1061 | 1061 |
1062 Node* node = result.innerPossiblyPseudoNode(); | 1062 Node* node = result.innerPossiblyPseudoNode(); |
1063 if (!node) | 1063 if (!node) |
1064 return selectAutoCursor(result, node, iBeamCursor()); | 1064 return selectAutoCursor(result, node, iBeamCursor()); |
1065 | 1065 |
1066 LayoutObject* renderer = node->renderer(); | 1066 LayoutObject* renderer = node->renderer(); |
1067 LayoutStyle* style = renderer ? renderer->style() : nullptr; | 1067 const LayoutStyle* style = renderer ? renderer->style() : nullptr; |
1068 | 1068 |
1069 if (renderer) { | 1069 if (renderer) { |
1070 Cursor overrideCursor; | 1070 Cursor overrideCursor; |
1071 switch (renderer->getCursor(roundedIntPoint(result.localPoint()), overri
deCursor)) { | 1071 switch (renderer->getCursor(roundedIntPoint(result.localPoint()), overri
deCursor)) { |
1072 case SetCursorBasedOnStyle: | 1072 case SetCursorBasedOnStyle: |
1073 break; | 1073 break; |
1074 case SetCursor: | 1074 case SetCursor: |
1075 return overrideCursor; | 1075 return overrideCursor; |
1076 case DoNotSetCursor: | 1076 case DoNotSetCursor: |
1077 return NoCursorChange; | 1077 return NoCursorChange; |
(...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3906 unsigned EventHandler::accessKeyModifiers() | 3906 unsigned EventHandler::accessKeyModifiers() |
3907 { | 3907 { |
3908 #if OS(MACOSX) | 3908 #if OS(MACOSX) |
3909 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; | 3909 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; |
3910 #else | 3910 #else |
3911 return PlatformEvent::AltKey; | 3911 return PlatformEvent::AltKey; |
3912 #endif | 3912 #endif |
3913 } | 3913 } |
3914 | 3914 |
3915 } // namespace blink | 3915 } // namespace blink |
OLD | NEW |