Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2734153003: Remove ReadOnly flag when mouseleave with touch (Closed)
Patch Set: add todo Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 6149 matching lines...) Expand 10 before | Expand all | Expand 10 after
6160 for (LayoutObject* currObj2 = obj2; currObj2; 6160 for (LayoutObject* currObj2 = obj2; currObj2;
6161 currObj2 = currObj2->hoverAncestor()) { 6161 currObj2 = currObj2->hoverAncestor()) {
6162 if (currObj1 == currObj2) 6162 if (currObj1 == currObj2)
6163 return currObj1; 6163 return currObj1;
6164 } 6164 }
6165 } 6165 }
6166 6166
6167 return 0; 6167 return 0;
6168 } 6168 }
6169 6169
6170 // TODO(mustaq) |request| parameter maybe a misuse of HitTestRequest in
6171 // updateHoverActiveState() since the function doesn't bother with hit-testing.
6170 void Document::updateHoverActiveState(const HitTestRequest& request, 6172 void Document::updateHoverActiveState(const HitTestRequest& request,
6171 Element* innerElement, 6173 Element* innerElement,
6172 Scrollbar* hitScrollbar) { 6174 Scrollbar* hitScrollbar) {
6173 DCHECK(!request.readOnly()); 6175 DCHECK(!request.readOnly());
6174 6176
6175 if (request.active() && m_frame) 6177 if (request.active() && m_frame)
6176 m_frame->eventHandler().notifyElementActivated(); 6178 m_frame->eventHandler().notifyElementActivated();
6177 6179
6178 Element* innerElementInDocument = hitScrollbar ? nullptr : innerElement; 6180 Element* innerElementInDocument = hitScrollbar ? nullptr : innerElement;
6179 // Replace the innerElementInDocument to be srollbar's parent when hit 6181 // Replace the innerElementInDocument to be srollbar's parent when hit
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
6666 } 6668 }
6667 6669
6668 void showLiveDocumentInstances() { 6670 void showLiveDocumentInstances() {
6669 WeakDocumentSet& set = liveDocumentSet(); 6671 WeakDocumentSet& set = liveDocumentSet();
6670 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6672 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6671 for (blink::Document* document : set) 6673 for (blink::Document* document : set)
6672 fprintf(stderr, "- Document %p URL: %s\n", document, 6674 fprintf(stderr, "- Document %p URL: %s\n", document,
6673 document->url().getString().utf8().data()); 6675 document->url().getString().utf8().data());
6674 } 6676 }
6675 #endif 6677 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698