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

Side by Side Diff: Source/core/editing/FrameSelection.cpp

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "core/frame/LocalFrame.h" 51 #include "core/frame/LocalFrame.h"
52 #include "core/frame/Settings.h" 52 #include "core/frame/Settings.h"
53 #include "core/html/HTMLBodyElement.h" 53 #include "core/html/HTMLBodyElement.h"
54 #include "core/html/HTMLFormElement.h" 54 #include "core/html/HTMLFormElement.h"
55 #include "core/html/HTMLFrameElementBase.h" 55 #include "core/html/HTMLFrameElementBase.h"
56 #include "core/html/HTMLInputElement.h" 56 #include "core/html/HTMLInputElement.h"
57 #include "core/html/HTMLSelectElement.h" 57 #include "core/html/HTMLSelectElement.h"
58 #include "core/layout/HitTestRequest.h" 58 #include "core/layout/HitTestRequest.h"
59 #include "core/layout/HitTestResult.h" 59 #include "core/layout/HitTestResult.h"
60 #include "core/layout/Layer.h" 60 #include "core/layout/Layer.h"
61 #include "core/layout/LayoutPart.h"
61 #include "core/layout/LayoutTheme.h" 62 #include "core/layout/LayoutTheme.h"
62 #include "core/layout/line/InlineTextBox.h" 63 #include "core/layout/line/InlineTextBox.h"
63 #include "core/page/EditorClient.h" 64 #include "core/page/EditorClient.h"
64 #include "core/page/EventHandler.h" 65 #include "core/page/EventHandler.h"
65 #include "core/page/FocusController.h" 66 #include "core/page/FocusController.h"
66 #include "core/page/FrameTree.h" 67 #include "core/page/FrameTree.h"
67 #include "core/page/Page.h" 68 #include "core/page/Page.h"
68 #include "core/page/SpatialNavigation.h" 69 #include "core/page/SpatialNavigation.h"
69 #include "core/rendering/RenderPart.h"
70 #include "core/rendering/RenderText.h" 70 #include "core/rendering/RenderText.h"
71 #include "core/rendering/RenderView.h" 71 #include "core/rendering/RenderView.h"
72 #include "platform/SecureTextInput.h" 72 #include "platform/SecureTextInput.h"
73 #include "platform/geometry/FloatQuad.h" 73 #include "platform/geometry/FloatQuad.h"
74 #include "platform/graphics/GraphicsContext.h" 74 #include "platform/graphics/GraphicsContext.h"
75 #include "platform/text/UnicodeUtilities.h" 75 #include "platform/text/UnicodeUtilities.h"
76 #include "wtf/text/CString.h" 76 #include "wtf/text/CString.h"
77 #include <stdio.h> 77 #include <stdio.h>
78 78
79 #define EDIT_DEBUG 0 79 #define EDIT_DEBUG 0
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 textControl->selectionChanged(userTriggered == UserTriggered); 1618 textControl->selectionChanged(userTriggered == UserTriggered);
1619 } 1619 }
1620 1620
1621 // Helper function that tells whether a particular node is an element that has a n entire 1621 // Helper function that tells whether a particular node is an element that has a n entire
1622 // LocalFrame and FrameView, a <frame>, <iframe>, or <object>. 1622 // LocalFrame and FrameView, a <frame>, <iframe>, or <object>.
1623 static bool isFrameElement(const Node* n) 1623 static bool isFrameElement(const Node* n)
1624 { 1624 {
1625 if (!n) 1625 if (!n)
1626 return false; 1626 return false;
1627 LayoutObject* renderer = n->renderer(); 1627 LayoutObject* renderer = n->renderer();
1628 if (!renderer || !renderer->isRenderPart()) 1628 if (!renderer || !renderer->isLayoutPart())
1629 return false; 1629 return false;
1630 Widget* widget = toRenderPart(renderer)->widget(); 1630 Widget* widget = toLayoutPart(renderer)->widget();
1631 return widget && widget->isFrameView(); 1631 return widget && widget->isFrameView();
1632 } 1632 }
1633 1633
1634 void FrameSelection::setFocusedNodeIfNeeded() 1634 void FrameSelection::setFocusedNodeIfNeeded()
1635 { 1635 {
1636 if (isNone() || !isFocused()) 1636 if (isNone() || !isFocused())
1637 return; 1637 return;
1638 1638
1639 bool caretBrowsing = m_frame->settings() && m_frame->settings()->caretBrowsi ngEnabled(); 1639 bool caretBrowsing = m_frame->settings() && m_frame->settings()->caretBrowsi ngEnabled();
1640 if (caretBrowsing) { 1640 if (caretBrowsing) {
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 sel.showTreeForThis(); 1944 sel.showTreeForThis();
1945 } 1945 }
1946 1946
1947 void showTree(const blink::FrameSelection* sel) 1947 void showTree(const blink::FrameSelection* sel)
1948 { 1948 {
1949 if (sel) 1949 if (sel)
1950 sel->showTreeForThis(); 1950 sel->showTreeForThis();
1951 } 1951 }
1952 1952
1953 #endif 1953 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698