summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-06-30 20:23:58 +0100
committerKristian Monsen <kristianm@google.com>2010-07-02 10:29:56 +0100
commit03e1da3d6e6dbf69f96b9a7d00df9f1de4a06a86 (patch)
tree6466771039b2b0bdf94d969969334cb7c02a0d16
parentc7765a7157a8a06167cba43d5d9edfacea0a452a (diff)
downloadexternal_webkit-03e1da3d6e6dbf69f96b9a7d00df9f1de4a06a86.zip
external_webkit-03e1da3d6e6dbf69f96b9a7d00df9f1de4a06a86.tar.gz
external_webkit-03e1da3d6e6dbf69f96b9a7d00df9f1de4a06a86.tar.bz2
Merge WebKit at r61871: Fix conflicts in Frame.cpp
Code was moved from Frame.cpp, this created problems for local changes. Should be working again now (with more local changes). http://trac.webkit.org/changeset/61217/trunk/WebCore/page/Frame.cpp Change-Id: Ica56218eb972a1d0d311900efc1a2b3c609dae75
-rw-r--r--WebCore/page/DOMWindow.cpp4
-rw-r--r--WebCore/page/Frame.cpp41
2 files changed, 4 insertions, 41 deletions
diff --git a/WebCore/page/DOMWindow.cpp b/WebCore/page/DOMWindow.cpp
index 40b7494..d234973 100644
--- a/WebCore/page/DOMWindow.cpp
+++ b/WebCore/page/DOMWindow.cpp
@@ -763,7 +763,11 @@ void DOMWindow::focus()
// If we're a top level window, bring the window to the front.
if (m_frame == page->mainFrame())
+#ifdef ANDROID_USER_GESTURE
+ page->chrome()->focus(m_frame->loader()->isProcessingUserGesture());
+#else
page->chrome()->focus();
+#endif
if (!m_frame)
return;
diff --git a/WebCore/page/Frame.cpp b/WebCore/page/Frame.cpp
index 75a4598..186ac62 100644
--- a/WebCore/page/Frame.cpp
+++ b/WebCore/page/Frame.cpp
@@ -1429,47 +1429,6 @@ String Frame::documentTypeString() const
return String();
}
-<<<<<<< HEAD
-void Frame::focusWindow()
-{
- if (!page())
- return;
-
- // If we're a top level window, bring the window to the front.
- if (!tree()->parent())
-#ifdef ANDROID_USER_GESTURE
- // FrameLoader::isProcessingUserGesture() will be false when a
- // different frame tries to focus this frame through javascript.
- page()->chrome()->focus(m_loader.isProcessingUserGesture());
-#else
- page()->chrome()->focus();
-#endif
-
- eventHandler()->focusDocumentView();
-}
-
-void Frame::unfocusWindow()
-{
- if (!page())
- return;
-
- // If we're a top level window, deactivate the window.
- if (!tree()->parent())
- page()->chrome()->unfocus();
-}
-
-void Frame::scheduleClose()
-{
- if (!shouldClose())
- return;
-
- Chrome* chrome = page() ? page()->chrome() : 0;
- if (chrome)
- chrome->closeWindowSoon();
-}
-
-=======
->>>>>>> webkit.org at r61871
void Frame::respondToChangedSelection(const VisibleSelection& oldSelection, bool closeTyping)
{
bool isContinuousSpellCheckingEnabled = editor()->isContinuousSpellCheckingEnabled();