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

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

Issue 2737883002: Rename LayoutPart::widget to LayoutPart::frameViewBase (Closed)
Patch Set: Rename LayoutPart::widget to LayoutPart::frameViewBase 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/editing/FrameSelection.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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 if (decompType == DecompositionFont || decompType == DecompositionCompat) 365 if (decompType == DecompositionFont || decompType == DecompositionCompat)
366 return false; 366 return false;
367 367
368 return true; 368 return true;
369 } 369 }
370 370
371 static FrameViewBase* widgetForElement(const Element& focusedElement) { 371 static FrameViewBase* widgetForElement(const Element& focusedElement) {
372 LayoutObject* layoutObject = focusedElement.layoutObject(); 372 LayoutObject* layoutObject = focusedElement.layoutObject();
373 if (!layoutObject || !layoutObject->isLayoutPart()) 373 if (!layoutObject || !layoutObject->isLayoutPart())
374 return 0; 374 return 0;
375 return toLayoutPart(layoutObject)->widget(); 375 return toLayoutPart(layoutObject)->frameViewBase();
376 } 376 }
377 377
378 static bool acceptsEditingFocus(const Element& element) { 378 static bool acceptsEditingFocus(const Element& element) {
379 DCHECK(hasEditableStyle(element)); 379 DCHECK(hasEditableStyle(element));
380 380
381 return element.document().frame() && rootEditableElement(element); 381 return element.document().frame() && rootEditableElement(element);
382 } 382 }
383 383
384 uint64_t Document::s_globalTreeVersion = 0; 384 uint64_t Document::s_globalTreeVersion = 0;
385 385
(...skipping 6280 matching lines...) Expand 10 before | Expand all | Expand 10 after
6666 } 6666 }
6667 6667
6668 void showLiveDocumentInstances() { 6668 void showLiveDocumentInstances() {
6669 WeakDocumentSet& set = liveDocumentSet(); 6669 WeakDocumentSet& set = liveDocumentSet();
6670 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6670 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6671 for (blink::Document* document : set) 6671 for (blink::Document* document : set)
6672 fprintf(stderr, "- Document %p URL: %s\n", document, 6672 fprintf(stderr, "- Document %p URL: %s\n", document,
6673 document->url().getString().utf8().data()); 6673 document->url().getString().utf8().data());
6674 } 6674 }
6675 #endif 6675 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698