Diff
Modified: trunk/Source/WebCore/ChangeLog (185230 => 185231)
--- trunk/Source/WebCore/ChangeLog 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/ChangeLog 2015-06-05 01:07:51 UTC (rev 185231)
@@ -1,3 +1,93 @@
+2015-06-04 Hunseop Jeong <hs85.je...@samsung.com>
+
+ Replace 0 with nullptr in WebCore/Page.
+ https://bugs.webkit.org/show_bug.cgi?id=145631
+
+ Reviewed by Darin Adler.
+
+ No new tests, no behavior changes.
+
+ * page/AutoscrollController.cpp:
+ (WebCore::AutoscrollController::AutoscrollController):
+ (WebCore::AutoscrollController::stopAutoscrollTimer):
+ * page/ContentSecurityPolicy.cpp:
+ (WebCore::CSPSourceList::parseSource):
+ * page/ContentSecurityPolicy.h:
+ * page/ContextMenuController.cpp:
+ (WebCore::ContextMenuController::clearContextMenu):
+ * page/DOMSelection.cpp:
+ (WebCore::DOMSelection::clearTreeScope):
+ * page/DOMWindow.cpp:
+ (WebCore::DOMWindow::resetDOMWindowProperties):
+ (WebCore::DOMWindow::localStorage):
+ (WebCore::DOMWindow::focus):
+ * page/DOMWindow.h:
+ * page/DOMWindowExtension.cpp:
+ (WebCore::DOMWindowExtension::reconnectFrameFromPageCache):
+ (WebCore::DOMWindowExtension::willDestroyGlobalObjectInCachedFrame):
+ * page/DOMWindowProperty.cpp:
+ (WebCore::DOMWindowProperty::DOMWindowProperty):
+ (WebCore::DOMWindowProperty::~DOMWindowProperty):
+ (WebCore::DOMWindowProperty::disconnectFrameForPageCache):
+ (WebCore::DOMWindowProperty::willDestroyGlobalObjectInCachedFrame):
+ (WebCore::DOMWindowProperty::willDestroyGlobalObjectInFrame):
+ * page/DragController.cpp:
+ (WebCore::DragController::dragEnded):
+ (WebCore::DragController::performDragOperation):
+ (WebCore::DragController::tryDocumentDrag):
+ (WebCore::DragController::concludeEditDrag):
+ (WebCore::DragController::startDrag):
+ * page/EventHandler.cpp:
+ (WebCore::EventHandler::EventHandler):
+ (WebCore::EventHandler::resizeLayerDestroyed):
+ (WebCore::EventHandler::freeDataTransfer):
+ (WebCore::EventHandler::dragSourceEndedAt):
+ (WebCore::EventHandler::handleDrag):
+ * page/EventHandler.h:
+ * page/FocusController.cpp:
+ (WebCore::FocusController::advanceFocusInDocumentOrder):
+ * page/Frame.cpp:
+ (WebCore::Frame::~Frame):
+ (WebCore::Frame::searchForLabelsBeforeElement):
+ (WebCore::Frame::willDetachPage):
+ (WebCore::Frame::createView):
+ * page/Frame.h:
+ (WebCore::Frame::detachFromPage):
+ * page/FrameDestructionObserver.cpp:
+ (WebCore::FrameDestructionObserver::FrameDestructionObserver):
+ (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
+ (WebCore::FrameDestructionObserver::frameDestroyed):
+ * page/FrameTree.cpp:
+ (WebCore::FrameTree::~FrameTree):
+ (WebCore::FrameTree::removeChild):
+ * page/FrameTree.h:
+ (WebCore::FrameTree::FrameTree):
+ (WebCore::FrameTree::detachFromParent):
+ * page/History.cpp:
+ (WebCore::History::History):
+ * page/Page.cpp:
+ (WebCore::Page::Page):
+ (WebCore::Page::~Page):
+ (WebCore::Page::findStringMatchingRanges):
+ * page/PageGroup.cpp:
+ * page/Performance.cpp:
+ (WebCore::Performance::Performance):
+ * page/PointerLockController.cpp:
+ (WebCore::PointerLockController::didLosePointerLock):
+ (WebCore::PointerLockController::clearElement):
+ * page/SecurityOrigin.h:
+ (WebCore::SecurityOrigin::canAccessDatabase):
+ * page/Settings.cpp:
+ (WebCore::Settings::Settings):
+ * page/SpatialNavigation.cpp:
+ (WebCore::FocusCandidate::FocusCandidate):
+ * page/SpatialNavigation.h:
+ (WebCore::FocusCandidate::FocusCandidate):
+ * page/scrolling/ScrollingTreeNode.cpp:
+ (WebCore::ScrollingTreeNode::ScrollingTreeNode):
+ * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp:
+ (WebCore::ScrollingCoordinatorCoordinatedGraphics::willDestroyScrollableArea):
+
2015-06-04 Benjamin Poulain <bpoul...@apple.com>
Combine tiny DFAs into slightly larger ones
Modified: trunk/Source/WebCore/page/AutoscrollController.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/AutoscrollController.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/AutoscrollController.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -57,7 +57,7 @@
AutoscrollController::AutoscrollController()
: m_autoscrollTimer(*this, &AutoscrollController::autoscrollTimerFired)
- , m_autoscrollRenderer(0)
+ , m_autoscrollRenderer(nullptr)
, m_autoscrollType(NoAutoscroll)
, m_dragAndDropAutoscrollStartTime(0)
{
@@ -90,7 +90,7 @@
{
RenderBox* scrollable = m_autoscrollRenderer;
m_autoscrollTimer.stop();
- m_autoscrollRenderer = 0;
+ m_autoscrollRenderer = nullptr;
if (!scrollable)
return;
Modified: trunk/Source/WebCore/page/ContentSecurityPolicy.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/ContentSecurityPolicy.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/ContentSecurityPolicy.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -424,7 +424,7 @@
const UChar* position = begin;
const UChar* beginHost = begin;
const UChar* beginPath = end;
- const UChar* beginPort = 0;
+ const UChar* beginPort = nullptr;
skipWhile<isNotColonOrSlash>(position, end);
@@ -802,7 +802,7 @@
void setCSPDirective(const String& name, const String& value, std::unique_ptr<CSPDirectiveType>&);
SourceListDirective* operativeDirective(SourceListDirective*) const;
- void reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const URL& blockedURL = URL(), const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = 0) const;
+ void reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const URL& blockedURL = URL(), const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = nullptr) const;
bool checkEval(SourceListDirective*) const;
bool checkInline(SourceListDirective*) const;
@@ -811,7 +811,7 @@
void setEvalDisabledErrorMessage(const String& errorMessage) { m_evalDisabledErrorMessage = errorMessage; }
- bool checkEvalAndReportViolation(SourceListDirective*, const String& consoleMessage, const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = 0) const;
+ bool checkEvalAndReportViolation(SourceListDirective*, const String& consoleMessage, const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = nullptr) const;
bool checkInlineAndReportViolation(SourceListDirective*, const String& consoleMessage, const String& contextURL, const WTF::OrdinalNumber& contextLine, bool isScript) const;
bool checkSourceAndReportViolation(SourceListDirective*, const URL&, const String& effectiveDirective) const;
Modified: trunk/Source/WebCore/page/ContentSecurityPolicy.h (185230 => 185231)
--- trunk/Source/WebCore/page/ContentSecurityPolicy.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/ContentSecurityPolicy.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -88,7 +88,7 @@
bool allowInlineEventHandlers(const String& contextURL, const WTF::OrdinalNumber& contextLine, ReportingStatus = SendReport) const;
bool allowInlineScript(const String& contextURL, const WTF::OrdinalNumber& contextLine, ReportingStatus = SendReport) const;
bool allowInlineStyle(const String& contextURL, const WTF::OrdinalNumber& contextLine, ReportingStatus = SendReport) const;
- bool allowEval(JSC::ExecState* = 0, ReportingStatus = SendReport) const;
+ bool allowEval(JSC::ExecState* = nullptr, ReportingStatus = SendReport) const;
bool allowPluginType(const String& type, const String& typeAttribute, const URL&, ReportingStatus = SendReport) const;
bool allowScriptFromSource(const URL&, ReportingStatus = SendReport) const;
@@ -119,7 +119,7 @@
void reportInvalidReflectedXSS(const String&) const;
void reportMissingReportURI(const String&) const;
void reportUnsupportedDirective(const String&) const;
- void reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const URL& blockedURL, const Vector<URL>& reportURIs, const String& header, const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = 0) const;
+ void reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const URL& blockedURL, const Vector<URL>& reportURIs, const String& header, const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = nullptr) const;
void reportBlockedScriptExecutionToInspector(const String& directiveText) const;
@@ -132,7 +132,7 @@
bool experimentalFeaturesEnabled() const;
private:
- void logToConsole(const String& message, const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = 0) const;
+ void logToConsole(const String& message, const String& contextURL = String(), const WTF::OrdinalNumber& contextLine = WTF::OrdinalNumber::beforeFirst(), JSC::ExecState* = nullptr) const;
ScriptExecutionContext* m_scriptExecutionContext;
bool m_overrideInlineStyleAllowed;
Modified: trunk/Source/WebCore/page/ContextMenuController.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/ContextMenuController.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/ContextMenuController.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -93,7 +93,7 @@
m_contextMenu = nullptr;
if (m_menuProvider)
m_menuProvider->contextMenuCleared();
- m_menuProvider = 0;
+ m_menuProvider = nullptr;
}
void ContextMenuController::handleContextMenuEvent(Event* event)
Modified: trunk/Source/WebCore/page/DOMSelection.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/DOMSelection.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/DOMSelection.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -64,7 +64,7 @@
void DOMSelection::clearTreeScope()
{
- m_treeScope = 0;
+ m_treeScope = nullptr;
}
const VisibleSelection& DOMSelection::visibleSelection() const
Modified: trunk/Source/WebCore/page/DOMWindow.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/DOMWindow.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/DOMWindow.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -588,24 +588,24 @@
{
m_properties.clear();
- m_screen = 0;
- m_history = 0;
- m_crypto = 0;
- m_locationbar = 0;
- m_menubar = 0;
- m_personalbar = 0;
- m_scrollbars = 0;
- m_statusbar = 0;
- m_toolbar = 0;
- m_navigator = 0;
+ m_screen = nullptr;
+ m_history = nullptr;
+ m_crypto = nullptr;
+ m_locationbar = nullptr;
+ m_menubar = nullptr;
+ m_personalbar = nullptr;
+ m_scrollbars = nullptr;
+ m_statusbar = nullptr;
+ m_toolbar = nullptr;
+ m_navigator = nullptr;
#if ENABLE(WEB_TIMING)
- m_performance = 0;
+ m_performance = nullptr;
#endif
- m_location = 0;
- m_media = 0;
- m_sessionStorage = 0;
- m_localStorage = 0;
- m_applicationCache = 0;
+ m_location = nullptr;
+ m_media = nullptr;
+ m_sessionStorage = nullptr;
+ m_localStorage = nullptr;
+ m_applicationCache = nullptr;
}
bool DOMWindow::isCurrentlyDisplayedInFrame() const
@@ -831,7 +831,7 @@
if (!document)
return nullptr;
- if (!document->securityOrigin()->canAccessLocalStorage(0)) {
+ if (!document->securityOrigin()->canAccessLocalStorage(nullptr)) {
ec = SECURITY_ERR;
return nullptr;
}
@@ -987,7 +987,7 @@
// Clear the current frame's focused node if a new frame is about to be focused.
Frame* focusedFrame = page->focusController().focusedFrame();
if (focusedFrame && focusedFrame != m_frame)
- focusedFrame->document()->setFocusedElement(0);
+ focusedFrame->document()->setFocusedElement(nullptr);
m_frame->eventHandler().focusDocumentView();
}
Modified: trunk/Source/WebCore/page/DOMWindow.h (185230 => 185231)
--- trunk/Source/WebCore/page/DOMWindow.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/DOMWindow.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -159,9 +159,9 @@
Element* frameElement() const;
- void focus(ScriptExecutionContext* = 0);
+ void focus(ScriptExecutionContext* = nullptr);
void blur();
- WEBCORE_EXPORT void close(ScriptExecutionContext* = 0);
+ WEBCORE_EXPORT void close(ScriptExecutionContext* = nullptr);
void print();
void stop();
Modified: trunk/Source/WebCore/page/DOMWindowExtension.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/DOMWindowExtension.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/DOMWindowExtension.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -62,7 +62,7 @@
ASSERT(m_disconnectedFrame == frame);
DOMWindowProperty::reconnectFrameFromPageCache(frame);
- m_disconnectedFrame = 0;
+ m_disconnectedFrame = nullptr;
this->frame()->loader().client().dispatchDidReconnectDOMWindowExtensionToGlobalObject(this);
}
@@ -76,7 +76,7 @@
Ref<DOMWindowExtension> protect(*this);
m_disconnectedFrame->loader().client().dispatchWillDestroyGlobalObjectForDOMWindowExtension(this);
- m_disconnectedFrame = 0;
+ m_disconnectedFrame = nullptr;
DOMWindowProperty::willDestroyGlobalObjectInCachedFrame();
}
Modified: trunk/Source/WebCore/page/DOMWindowProperty.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/DOMWindowProperty.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/DOMWindowProperty.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -35,7 +35,7 @@
DOMWindowProperty::DOMWindowProperty(Frame* frame)
: m_frame(frame)
- , m_associatedDOMWindow(0)
+ , m_associatedDOMWindow(nullptr)
{
// FIXME: For now it *is* acceptable for a DOMWindowProperty to be created with a null frame.
// See fast/dom/navigator-detached-no-crash.html for the recipe.
@@ -51,8 +51,8 @@
if (m_associatedDOMWindow)
m_associatedDOMWindow->unregisterProperty(this);
- m_associatedDOMWindow = 0;
- m_frame = 0;
+ m_associatedDOMWindow = nullptr;
+ m_frame = nullptr;
}
void DOMWindowProperty::disconnectFrameForPageCache()
@@ -62,7 +62,7 @@
ASSERT(m_frame);
ASSERT(m_associatedDOMWindow);
- m_frame = 0;
+ m_frame = nullptr;
}
void DOMWindowProperty::reconnectFrameFromPageCache(Frame* frame)
@@ -87,8 +87,8 @@
// itself from any DOMWindow it is associated with if that DOMWindow is going away.
if (m_associatedDOMWindow)
m_associatedDOMWindow->unregisterProperty(this);
- m_associatedDOMWindow = 0;
- m_frame = 0;
+ m_associatedDOMWindow = nullptr;
+ m_frame = nullptr;
}
void DOMWindowProperty::willDestroyGlobalObjectInFrame()
@@ -101,8 +101,8 @@
// itself from any DOMWindow it is associated with if that DOMWindow is going away.
if (m_associatedDOMWindow)
m_associatedDOMWindow->unregisterProperty(this);
- m_associatedDOMWindow = 0;
- m_frame = 0;
+ m_associatedDOMWindow = nullptr;
+ m_frame = nullptr;
}
void DOMWindowProperty::willDetachGlobalObjectFromFrame()
Modified: trunk/Source/WebCore/page/DragController.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/DragController.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/DragController.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -176,7 +176,7 @@
void DragController::dragEnded()
{
- m_dragInitiator = 0;
+ m_dragInitiator = nullptr;
m_didInitiateDrag = false;
clearDragCaret();
@@ -234,17 +234,17 @@
}
if (preventedDefault) {
clearDragCaret();
- m_documentUnderMouse = 0;
+ m_documentUnderMouse = nullptr;
return true;
}
}
if ((m_dragDestinationAction & DragDestinationActionEdit) && concludeEditDrag(dragData)) {
- m_documentUnderMouse = 0;
+ m_documentUnderMouse = nullptr;
return true;
}
- m_documentUnderMouse = 0;
+ m_documentUnderMouse = nullptr;
if (operationForLoad(dragData) == DragOperationNone)
return false;
@@ -399,7 +399,7 @@
clearDragCaret();
if (m_fileInputElementUnderMouse)
m_fileInputElementUnderMouse->setCanReceiveDroppedFiles(false);
- m_fileInputElementUnderMouse = 0;
+ m_fileInputElementUnderMouse = nullptr;
return false;
}
@@ -452,7 +452,7 @@
RefPtr<HTMLInputElement> fileInput = m_fileInputElementUnderMouse;
if (m_fileInputElementUnderMouse) {
m_fileInputElementUnderMouse->setCanReceiveDroppedFiles(false);
- m_fileInputElementUnderMouse = 0;
+ m_fileInputElementUnderMouse = nullptr;
}
if (!m_documentUnderMouse)
@@ -780,7 +780,7 @@
m_draggingImageURL = URL();
m_sourceDragOperation = srcOp;
- DragImageRef dragImage = 0;
+ DragImageRef dragImage = nullptr;
IntPoint dragLoc(0, 0);
IntPoint dragImageOffset(0, 0);
Modified: trunk/Source/WebCore/page/EventHandler.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/EventHandler.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/EventHandler.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -390,7 +390,7 @@
, m_fakeMouseMoveEventTimer(*this, &EventHandler::fakeMouseMoveEventTimerFired)
#endif
, m_svgPan(false)
- , m_resizeLayer(0)
+ , m_resizeLayer(nullptr)
, m_eventHandlerWillResetCapturingMouseEventsElement(false)
, m_clickCount(0)
#if ENABLE(IOS_GESTURE_EVENTS)
@@ -3004,7 +3004,7 @@
void EventHandler::resizeLayerDestroyed()
{
ASSERT(m_resizeLayer);
- m_resizeLayer = 0;
+ m_resizeLayer = nullptr;
}
void EventHandler::hoverTimerFired()
@@ -3389,7 +3389,7 @@
if (!dragState().dataTransfer)
return;
dragState().dataTransfer->setAccessPolicy(DataTransferAccessPolicy::Numb);
- dragState().dataTransfer = 0;
+ dragState().dataTransfer = nullptr;
}
void EventHandler::dragSourceEndedAt(const PlatformMouseEvent& event, DragOperation operation)
@@ -3404,7 +3404,7 @@
dispatchDragSrcEvent(eventNames().dragendEvent, event);
}
freeDataTransfer();
- dragState().source = 0;
+ dragState().source = nullptr;
// In case the drag was ended due to an escape key press we need to ensure
// that consecutive mousemove events don't reinitiate the drag and drop.
m_mouseDownMayStartDrag = false;
@@ -3470,7 +3470,7 @@
} else if (!(dragState().type & (DragSourceActionDHTML | DragSourceActionLink))) {
// ... but only bail if we're not over an unselectable element.
m_mouseDownMayStartDrag = false;
- dragState().source = 0;
+ dragState().source = nullptr;
// ... but if this was the first click in the window, we don't even want to start selection
if (eventActivatedView(event.event()))
m_mouseDownMayStartSelect = false;
@@ -3577,7 +3577,7 @@
if (!m_mouseDownMayStartDrag) {
// Something failed to start the drag, clean up.
freeDataTransfer();
- dragState().source = 0;
+ dragState().source = nullptr;
}
// No more default handling (like selection), whether we're past the hysteresis bounds or not
Modified: trunk/Source/WebCore/page/EventHandler.h (185230 => 185231)
--- trunk/Source/WebCore/page/EventHandler.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/EventHandler.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -187,9 +187,9 @@
static Frame* subframeForTargetNode(Node*);
static Frame* subframeForHitTestResult(const MouseEventWithHitTestResults&);
- WEBCORE_EXPORT bool scrollOverflow(ScrollDirection, ScrollGranularity, Node* startingNode = 0);
- WEBCORE_EXPORT bool scrollRecursively(ScrollDirection, ScrollGranularity, Node* startingNode = 0);
- WEBCORE_EXPORT bool logicalScrollRecursively(ScrollLogicalDirection, ScrollGranularity, Node* startingNode = 0);
+ WEBCORE_EXPORT bool scrollOverflow(ScrollDirection, ScrollGranularity, Node* startingNode = nullptr);
+ WEBCORE_EXPORT bool scrollRecursively(ScrollDirection, ScrollGranularity, Node* startingNode = nullptr);
+ WEBCORE_EXPORT bool logicalScrollRecursively(ScrollLogicalDirection, ScrollGranularity, Node* startingNode = nullptr);
bool tabsToLinks(KeyboardEvent*) const;
bool tabsToAllFormControls(KeyboardEvent*) const;
@@ -200,7 +200,7 @@
void lostMouseCapture();
WEBCORE_EXPORT bool handleMousePressEvent(const PlatformMouseEvent&);
- bool handleMouseMoveEvent(const PlatformMouseEvent&, HitTestResult* hoveredNode = 0, bool _onlyUpdateScrollbars_ = false);
+ bool handleMouseMoveEvent(const PlatformMouseEvent&, HitTestResult* hoveredNode = nullptr, bool _onlyUpdateScrollbars_ = false);
WEBCORE_EXPORT bool handleMouseReleaseEvent(const PlatformMouseEvent&);
bool handleMouseForceEvent(const PlatformMouseEvent&);
WEBCORE_EXPORT bool handleWheelEvent(const PlatformWheelEvent&);
@@ -249,7 +249,7 @@
bool accessibilityPreventsEventPropogation(KeyboardEvent*);
WEBCORE_EXPORT void handleKeyboardSelectionMovementForAccessibility(KeyboardEvent*);
- bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, TextEventInputType = TextEventInputKeyboard);
+ bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullptr, TextEventInputType = TextEventInputKeyboard);
void defaultTextInputEventHandler(TextEvent*);
#if ENABLE(DRAG_SUPPORT)
@@ -348,7 +348,7 @@
void cursorUpdateTimerFired();
#endif
- bool logicalScrollOverflow(ScrollLogicalDirection, ScrollGranularity, Node* startingNode = 0);
+ bool logicalScrollOverflow(ScrollLogicalDirection, ScrollGranularity, Node* startingNode = nullptr);
bool shouldTurnVerticalTicksIntoHorizontal(const HitTestResult&, const PlatformWheelEvent&) const;
@@ -400,10 +400,10 @@
bool mouseMovementExceedsThreshold(const FloatPoint&, int pointsThreshold) const;
bool passMousePressEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe);
- bool passMouseMoveEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe, HitTestResult* hoveredNode = 0);
+ bool passMouseMoveEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe, HitTestResult* hoveredNode = nullptr);
bool passMouseReleaseEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe);
- bool passSubframeEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe, HitTestResult* hoveredNode = 0);
+ bool passSubframeEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe, HitTestResult* hoveredNode = nullptr);
bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&, Scrollbar*);
Modified: trunk/Source/WebCore/page/FocusController.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/FocusController.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/FocusController.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -291,8 +291,8 @@
if (!element) {
// We didn't find a node to focus, so we should try to pass focus to Chrome.
if (!initialFocus && m_page.chrome().canTakeFocus(direction)) {
- document->setFocusedElement(0);
- setFocusedFrame(0);
+ document->setFocusedElement(nullptr);
+ setFocusedFrame(nullptr);
m_page.chrome().takeFocus(direction);
return true;
}
Modified: trunk/Source/WebCore/page/Frame.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/Frame.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/Frame.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -214,7 +214,7 @@
Frame::~Frame()
{
- setView(0);
+ setView(nullptr);
loader().cancelAndClear();
// FIXME: We should not be doing all this work inside the destructor
@@ -382,7 +382,7 @@
// charsSearchedThreshold, to make it more likely that we'll search whole nodes.
const unsigned int maxCharsSearched = 600;
// If the starting element is within a table, the cell that contains it
- HTMLTableCellElement* startingTableCell = 0;
+ HTMLTableCellElement* startingTableCell = nullptr;
bool searchedCellAbove = false;
if (resultDistance)
@@ -787,7 +787,7 @@
// FIXME: It's unclear as to why this is called more than once, but it is,
// so page() could be NULL.
if (page() && page()->focusController().focusedFrame() == this)
- page()->focusController().setFocusedFrame(0);
+ page()->focusController().setFocusedFrame(nullptr);
if (page() && page()->scrollingCoordinator() && m_view)
page()->scrollingCoordinator()->willDestroyScrollableArea(*m_view);
@@ -886,7 +886,7 @@
if (isMainFrame && view())
view()->setParentVisible(false);
- setView(0);
+ setView(nullptr);
RefPtr<FrameView> frameView;
if (isMainFrame) {
Modified: trunk/Source/WebCore/page/Frame.h (185230 => 185231)
--- trunk/Source/WebCore/page/Frame.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/Frame.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -379,7 +379,7 @@
inline void Frame::detachFromPage()
{
- m_page = 0;
+ m_page = nullptr;
}
inline EventHandler& Frame::eventHandler() const
Modified: trunk/Source/WebCore/page/FrameDestructionObserver.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/FrameDestructionObserver.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/FrameDestructionObserver.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -31,14 +31,14 @@
namespace WebCore {
FrameDestructionObserver::FrameDestructionObserver(Frame* frame)
- : m_frame(0)
+ : m_frame(nullptr)
{
observeFrame(frame);
}
FrameDestructionObserver::~FrameDestructionObserver()
{
- observeFrame(0);
+ observeFrame(nullptr);
}
@@ -55,7 +55,7 @@
void FrameDestructionObserver::frameDestroyed()
{
- m_frame = 0;
+ m_frame = nullptr;
}
void FrameDestructionObserver::willDetachPage()
Modified: trunk/Source/WebCore/page/FrameTree.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/FrameTree.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/FrameTree.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -38,7 +38,7 @@
FrameTree::~FrameTree()
{
for (Frame* child = firstChild(); child; child = child->tree().nextSibling())
- child->setView(0);
+ child->setView(nullptr);
}
void FrameTree::setName(const AtomicString& name)
@@ -108,7 +108,7 @@
void FrameTree::removeChild(Frame* child)
{
- child->tree().m_parent = 0;
+ child->tree().m_parent = nullptr;
// Slightly tricky way to prevent deleting the child until we are done with it, w/o
// extra refs. These swaps leave the child in a circular list by itself. Clearing its
@@ -120,8 +120,8 @@
// For some inexplicable reason, the following line does not compile without the explicit std:: namespace
std::swap(newLocationForPrevious, child->tree().m_previousSibling);
- child->tree().m_previousSibling = 0;
- child->tree().m_nextSibling = 0;
+ child->tree().m_previousSibling = nullptr;
+ child->tree().m_nextSibling = nullptr;
m_scopedChildCount = invalidCount;
}
Modified: trunk/Source/WebCore/page/FrameTree.h (185230 => 185231)
--- trunk/Source/WebCore/page/FrameTree.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/FrameTree.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -35,8 +35,8 @@
FrameTree(Frame& thisFrame, Frame* parentFrame)
: m_thisFrame(thisFrame)
, m_parent(parentFrame)
- , m_previousSibling(0)
- , m_lastChild(0)
+ , m_previousSibling(nullptr)
+ , m_lastChild(nullptr)
, m_scopedChildCount(invalidCount)
{
}
@@ -68,7 +68,7 @@
WEBCORE_EXPORT void appendChild(PassRefPtr<Frame>);
bool transferChild(PassRefPtr<Frame>);
- void detachFromParent() { m_parent = 0; }
+ void detachFromParent() { m_parent = nullptr; }
void removeChild(Frame*);
Frame* child(unsigned index) const;
Modified: trunk/Source/WebCore/page/History.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/History.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/History.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -43,7 +43,7 @@
History::History(Frame* frame)
: DOMWindowProperty(frame)
- , m_lastStateObjectRequested(0)
+ , m_lastStateObjectRequested(nullptr)
{
}
Modified: trunk/Source/WebCore/page/Page.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/Page.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/Page.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -181,8 +181,8 @@
, m_horizontalScrollElasticity(ScrollElasticityAllowed)
, m_didLoadUserStyleSheet(false)
, m_userStyleSheetModificationTime(0)
- , m_group(0)
- , m_debugger(0)
+ , m_group(nullptr)
+ , m_debugger(nullptr)
, m_canStartMedia(true)
#if ENABLE(VIEW_MODE_CSS_MEDIA)
, m_viewMode(ViewModeWindowed)
@@ -244,7 +244,7 @@
Page::~Page()
{
- m_mainFrame->setView(0);
+ m_mainFrame->setView(nullptr);
setGroupName(String());
allPages->remove(this);
@@ -599,7 +599,7 @@
indexForSelection = 0;
Frame* frame = &mainFrame();
- Frame* frameWithSelection = 0;
+ Frame* frameWithSelection = nullptr;
do {
frame->editor().countMatchesForText(target, 0, options, limit ? (limit - matchRanges.size()) : 0, true, &matchRanges);
if (frame->selection().isRange())
Modified: trunk/Source/WebCore/page/PageGroup.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/PageGroup.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/PageGroup.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -74,7 +74,7 @@
}
typedef HashMap<String, PageGroup*> PageGroupMap;
-static PageGroupMap* pageGroups = 0;
+static PageGroupMap* pageGroups = nullptr;
PageGroup* PageGroup::pageGroup(const String& groupName)
{
Modified: trunk/Source/WebCore/page/Performance.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/Performance.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/Performance.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -59,7 +59,7 @@
#endif // ENABLE(RESOURCE_TIMING)
, m_referenceTime(frame->document()->loader()->timing().referenceMonotonicTime())
#if ENABLE(USER_TIMING)
- , m_userTiming(0)
+ , m_userTiming(nullptr)
#endif // ENABLE(USER_TIMING)
{
ASSERT(m_referenceTime);
Modified: trunk/Source/WebCore/page/PointerLockController.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/PointerLockController.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/PointerLockController.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -121,7 +121,7 @@
{
enqueueEvent(eventNames().pointerlockchangeEvent, m_element ? &m_element->document() : m_documentOfRemovedElementWhileWaitingForUnlock.get());
clearElement();
- m_documentOfRemovedElementWhileWaitingForUnlock = 0;
+ m_documentOfRemovedElementWhileWaitingForUnlock = nullptr;
}
void PointerLockController::dispatchLockedMouseEvent(const PlatformMouseEvent& event, const AtomicString& eventType)
@@ -139,7 +139,7 @@
void PointerLockController::clearElement()
{
m_lockPending = false;
- m_element = 0;
+ m_element = nullptr;
}
void PointerLockController::enqueueEvent(const AtomicString& type, Element* element)
Modified: trunk/Source/WebCore/page/SecurityOrigin.h (185230 => 185231)
--- trunk/Source/WebCore/page/SecurityOrigin.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/SecurityOrigin.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -150,7 +150,7 @@
WEBCORE_EXPORT String domainForCachePartition() const;
#endif
- bool canAccessDatabase(const SecurityOrigin* topOrigin = 0) const { return canAccessStorage(topOrigin); };
+ bool canAccessDatabase(const SecurityOrigin* topOrigin = nullptr) const { return canAccessStorage(topOrigin); };
bool canAccessSessionStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin, AlwaysAllowFromThirdParty); }
bool canAccessLocalStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); };
bool canAccessPluginStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); }
Modified: trunk/Source/WebCore/page/Settings.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/Settings.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/Settings.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -160,7 +160,7 @@
static const auto layoutScheduleThreshold = std::chrono::milliseconds(250);
Settings::Settings(Page* page)
- : m_page(0)
+ : m_page(nullptr)
, m_mediaTypeOverride("screen")
, m_fontGenericFamilies(std::make_unique<FontGenericFamilies>())
, m_storageBlockingPolicy(SecurityOrigin::AllowAllStorage)
Modified: trunk/Source/WebCore/page/SpatialNavigation.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/SpatialNavigation.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/SpatialNavigation.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -55,9 +55,9 @@
static bool isScrollableNode(const Node*);
FocusCandidate::FocusCandidate(Node* node, FocusDirection direction)
- : visibleNode(0)
- , focusableNode(0)
- , enclosingScrollableBox(0)
+ : visibleNode(nullptr)
+ , focusableNode(nullptr)
+ , enclosingScrollableBox(nullptr)
, distance(maxDistance())
, alignment(None)
, isOffscreen(true)
Modified: trunk/Source/WebCore/page/SpatialNavigation.h (185230 => 185231)
--- trunk/Source/WebCore/page/SpatialNavigation.h 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/SpatialNavigation.h 2015-06-05 01:07:51 UTC (rev 185231)
@@ -99,9 +99,9 @@
struct FocusCandidate {
FocusCandidate()
- : visibleNode(0)
- , focusableNode(0)
- , enclosingScrollableBox(0)
+ : visibleNode(nullptr)
+ , focusableNode(nullptr)
+ , enclosingScrollableBox(nullptr)
, distance(maxDistance())
, alignment(None)
, isOffscreen(true)
Modified: trunk/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -36,7 +36,7 @@
: m_scrollingTree(scrollingTree)
, m_nodeType(nodeType)
, m_nodeID(nodeID)
- , m_parent(0)
+ , m_parent(nullptr)
{
}
Modified: trunk/Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp (185230 => 185231)
--- trunk/Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp 2015-06-05 01:01:59 UTC (rev 185230)
+++ trunk/Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp 2015-06-05 01:07:51 UTC (rev 185231)
@@ -109,7 +109,7 @@
if (!layer)
return;
- layer->setScrollableArea(0);
+ layer->setScrollableArea(nullptr);
}
bool ScrollingCoordinatorCoordinatedGraphics::requestScrollPositionUpdate(FrameView& frameView, const IntPoint& scrollPosition)