Changeset 173450 in webkit
- Timestamp:
- Sep 9, 2014, 4:16:55 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
Shared/InteractionInformationAtPosition.cpp (modified) (2 diffs)
-
Shared/InteractionInformationAtPosition.h (modified) (2 diffs)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (1 diff)
-
WebProcess/WebPage/ios/WebPageIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r173443 r173450 1 2014-09-09 Enrica Casucci <enrica@apple.com> 2 3 REGRESSION (WebKit2): -webkit-touch-callout: none has no effect. 4 https://bugs.webkit.org/show_bug.cgi?id=136685 5 rdar://problem/17629840 6 7 Reviewed by Benjamin Poulain. 8 9 We need to check if the touch callout is enabled for the element before starting 10 the long press gesture. 11 The information about the touch callout is returned together with the rest of data 12 returned by the InteractionInformationAtPosition. 13 14 * Shared/InteractionInformationAtPosition.cpp: 15 (WebKit::InteractionInformationAtPosition::encode): 16 (WebKit::InteractionInformationAtPosition::decode): 17 * Shared/InteractionInformationAtPosition.h: 18 (WebKit::InteractionInformationAtPosition::InteractionInformationAtPosition): 19 * UIProcess/ios/WKContentViewInteraction.mm: 20 (-[WKContentView _actionForLongPress]): 21 * WebProcess/WebPage/ios/WebPageIOS.mm: 22 (WebKit::WebPage::getPositionInformation): 23 1 24 2014-09-09 Benjamin Poulain <bpoulain@apple.com> 2 25 -
trunk/Source/WebKit2/Shared/InteractionInformationAtPosition.cpp
r171057 r173450 39 39 encoder << isSelectable; 40 40 encoder << isNearMarkedText; 41 encoder << touchCalloutEnabled; 41 42 encoder << clickableElementName; 42 43 encoder << url; … … 64 65 return false; 65 66 67 if (!decoder.decode(result.touchCalloutEnabled)) 68 return false; 69 66 70 if (!decoder.decode(result.clickableElementName)) 67 71 return false; -
trunk/Source/WebKit2/Shared/InteractionInformationAtPosition.h
r171848 r173450 44 44 , isSelectable(false) 45 45 , isNearMarkedText(false) 46 , touchCalloutEnabled(true) 46 47 { 47 48 } … … 51 52 bool isSelectable; 52 53 bool isNearMarkedText; 54 bool touchCalloutEnabled; 53 55 String clickableElementName; 54 56 String url; -
trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm
r173045 r173450 783 783 - (SEL)_actionForLongPress 784 784 { 785 if (!_positionInformation.touchCalloutEnabled) 786 return nil; 787 785 788 if (_positionInformation.clickableElementName == "IMG") 786 789 return @selector(_showImageSheet); -
trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm
r173071 r173450 1906 1906 if (linkElement && info.title.isEmpty()) 1907 1907 info.title = element->innerText(); 1908 if (element->renderer()) 1908 if (element->renderer()) { 1909 1909 info.bounds = element->renderer()->absoluteBoundingBoxRect(true); 1910 info.touchCalloutEnabled = element->renderer()->style().touchCalloutEnabled(); 1911 } 1910 1912 } 1911 1913 }
Note:
See TracChangeset
for help on using the changeset viewer.