Changeset 52535 in webkit
- Timestamp:
- Dec 23, 2009 5:15:10 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52534 r52535 1 2009-12-23 David Levin <levin@chromium.org> 2 3 REGRESSION (r52494): Assertion failure in Frame::caretBlinkTimerFired() (selection()->isCaret()) 4 https://bugs.webkit.org/show_bug.cgi?id=32903 5 6 No review but ok'ed by Darin Adler. Rolling out r52494 due to above regression. 7 8 * fast/forms/selection-layout-reentry-strange-case-expected.txt: Removed. 9 * fast/forms/selection-layout-reentry-strange-case.html: Removed. 10 * platform/mac/accessibility/frame-with-title-expected.txt: 11 1 12 2009-12-23 Nikolas Zimmermann <nzimmermann@rim.com> 2 13 -
trunk/LayoutTests/platform/mac/accessibility/frame-with-title-expected.txt
r52494 r52535 22 22 AXLinkUIElements: <array of size 0> 23 23 AXLoaded: 1 24 AXLayoutCount: 424 AXLayoutCount: 3 25 25 AXURL: about:blank 26 26 … … 49 49 AXLinkUIElements: <array of size 0> 50 50 AXLoaded: 1 51 AXLayoutCount: 551 AXLayoutCount: 4 52 52 AXURL: about:blank 53 53 -
trunk/WebCore/ChangeLog
r52534 r52535 1 2009-12-23 David Levin <levin@chromium.org> 2 3 REGRESSION (r52494): Assertion failure in Frame::caretBlinkTimerFired() (selection()->isCaret()) 4 https://bugs.webkit.org/show_bug.cgi?id=32903 5 6 No review but ok'ed by Darin Adler. Rolling out r52494 due to above regression. 7 8 * editing/SelectionController.cpp: 9 (WebCore::SelectionController::SelectionController): 10 (WebCore::SelectionController::setSelection): 11 * editing/SelectionController.h: 12 * page/Frame.cpp: 13 (WebCore::Frame::setCaretVisible): 14 (WebCore::Frame::selectionLayoutChanged): 15 * page/FrameView.cpp: 16 (WebCore::FrameView::needsLayout): 17 1 18 2009-12-23 Nikolas Zimmermann <nzimmermann@rim.com> 2 19 -
trunk/WebCore/editing/SelectionController.cpp
r52494 r52535 1 1 /* 2 * Copyright (C) 2004, 2008 , 2009Apple Inc. All rights reserved.2 * Copyright (C) 2004, 2008 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 71 71 , m_isCaretBlinkingSuspended(false) 72 72 , m_focused(frame && frame->page() && frame->page()->focusController()->focusedFrame() == frame) 73 , m_needsDisplayUpdate(false)74 73 { 75 74 } … … 147 146 m_frame->setFocusedNodeIfNeeded(); 148 147 149 setNeedsDisplayUpdate(); 150 148 m_frame->selectionLayoutChanged(); 151 149 // Always clear the x position used for vertical arrow navigation. 152 150 // It will be restored by the vertical arrow navigation code if necessary. … … 1304 1302 } 1305 1303 1306 void SelectionController::setNeedsDisplayUpdate(bool needsUpdate)1307 {1308 if (m_needsDisplayUpdate == needsUpdate)1309 return;1310 m_needsDisplayUpdate = needsUpdate;1311 1312 if (!m_needsDisplayUpdate)1313 return;1314 FrameView* view = m_frame->view();1315 if (!view)1316 return;1317 view->scheduleRelayout();1318 }1319 1320 1304 #ifndef NDEBUG 1321 1305 -
trunk/WebCore/editing/SelectionController.h
r52494 r52535 1 1 /* 2 * Copyright (C) 2004 , 2009 Apple Inc.All rights reserved.2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 125 125 void pageActivationChanged(); 126 126 127 // Selection display machinery128 void setNeedsDisplayUpdate(bool = true);129 bool needsDisplayUpdate() const { return m_needsDisplayUpdate; }130 131 127 #ifndef NDEBUG 132 128 void formatForDebugger(char* buffer, unsigned length) const; … … 179 175 bool m_isCaretBlinkingSuspended : 1; 180 176 bool m_focused : 1; 181 bool m_needsDisplayUpdate : 1; 177 182 178 }; 183 179 -
trunk/WebCore/page/Frame.cpp
r52494 r52535 564 564 clearCaretRectIfNeeded(); 565 565 m_caretVisible = flag; 566 selection ()->setNeedsDisplayUpdate();566 selectionLayoutChanged(); 567 567 } 568 568 … … 631 631 void Frame::selectionLayoutChanged() 632 632 { 633 selection()->setNeedsDisplayUpdate(false);634 635 633 bool caretRectChanged = selection()->recomputeCaretRect(); 636 634 -
trunk/WebCore/page/FrameView.cpp
r52494 r52535 1199 1199 || (document && document->childNeedsStyleRecalc()) // can occur when using WebKit ObjC interface 1200 1200 || m_frame->needsReapplyStyles() 1201 || (m_deferSetNeedsLayouts && m_setNeedsLayoutWasDeferred) 1202 || m_frame->selection()->needsDisplayUpdate(); 1201 || (m_deferSetNeedsLayouts && m_setNeedsLayoutWasDeferred); 1203 1202 } 1204 1203
Note: See TracChangeset
for help on using the changeset viewer.