[webkit-changes] cvs commit: WebCore/kwq KWQButton.mm
KWQKHTMLPart.mm
David
hyatt at opensource.apple.com
Thu Jul 28 19:42:32 PDT 2005
hyatt 05/07/28 19:42:32
Modified: kwq KWQButton.mm KWQKHTMLPart.mm
Log:
Manual message, having commit issues.
Revision Changes Path
1.43 +0 -10 WebCore/kwq/KWQButton.mm
Index: KWQButton.mm
===================================================================
RCS file: /cvs/root/WebCore/kwq/KWQButton.mm,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- KWQButton.mm 14 Jul 2005 23:53:33 -0000 1.42
+++ KWQButton.mm 29 Jul 2005 02:42:31 -0000 1.43
@@ -148,11 +148,6 @@
{
NSView *view = nil;
if (button && inNextValidKeyView) {
- // resign so we send a blur before setting focus on
- // the next widget, otherwise the blur for this
- // widget will remove focus from the widget after
- // we tab to it
- [self resignFirstResponder];
if (button) {
view = KWQKHTMLPart::nextKeyViewForWidget(button, KWQSelectingNext);
} else {
@@ -168,11 +163,6 @@
{
NSView *view = nil;
if (button && inNextValidKeyView) {
- // resign so we send a blur before setting focus on
- // the next widget, otherwise the blur for this
- // widget will remove focus from the widget after
- // we tab to it
- [self resignFirstResponder];
if (button) {
view = KWQKHTMLPart::nextKeyViewForWidget(button, KWQSelectingPrevious);
} else {
1.654 +5 -3 WebCore/kwq/KWQKHTMLPart.mm
Index: KWQKHTMLPart.mm
===================================================================
RCS file: /cvs/root/WebCore/kwq/KWQKHTMLPart.mm,v
retrieving revision 1.653
retrieving revision 1.654
diff -u -r1.653 -r1.654
--- KWQKHTMLPart.mm 28 Jul 2005 20:47:27 -0000 1.653
+++ KWQKHTMLPart.mm 29 Jul 2005 02:42:31 -0000 1.654
@@ -68,6 +68,7 @@
#import "render_style.h"
#import "render_table.h"
#import "render_text.h"
+#import "render_theme.h"
#import "selection.h"
#import "visible_position.h"
#import "visible_text.h"
@@ -116,6 +117,7 @@
using khtml::EditCommandPtr;
using khtml::endOfWord;
using khtml::findPlainText;
+using khtml::FocusState;
using khtml::InlineTextBox;
using khtml::LeftWordIfOnBoundary;
using khtml::MouseDoubleClickEvent;
@@ -132,6 +134,7 @@
using khtml::RenderStyle;
using khtml::RenderTableCell;
using khtml::RenderText;
+using khtml::theme;
using khtml::RenderWidget;
using khtml::RightWordIfOnBoundary;
using khtml::Selection;
@@ -3701,6 +3704,7 @@
{
if (d->m_isFocused == flag)
return;
+
d->m_isFocused = flag;
// This method does the job of updating the view based on whether the view is "active".
@@ -3721,10 +3725,8 @@
NodeImpl *node = doc->focusNode();
if (node) {
node->setChanged();
- // FIXME: Let the theme decide whether it needs to repaint or not in response to focus
- // activation.
if (node->renderer() && node->renderer()->style()->hasAppearance())
- node->renderer()->repaint();
+ theme()->stateChanged(node->renderer(), FocusState);
}
}
More information about the webkit-changes
mailing list