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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLDialogElement.cpp

Issue 2008843004: Remove unnecessary inclusions of LayoutObject-derived headers in core/html/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 #include "core/html/HTMLDialogElement.h" 26 #include "core/html/HTMLDialogElement.h"
27 27
28 #include "bindings/core/v8/ExceptionState.h" 28 #include "bindings/core/v8/ExceptionState.h"
29 #include "core/dom/AXObjectCache.h" 29 #include "core/dom/AXObjectCache.h"
30 #include "core/dom/ExceptionCode.h" 30 #include "core/dom/ExceptionCode.h"
31 #include "core/dom/NodeTraversal.h" 31 #include "core/dom/NodeTraversal.h"
32 #include "core/events/Event.h" 32 #include "core/events/Event.h"
33 #include "core/frame/FrameView.h" 33 #include "core/frame/FrameView.h"
34 #include "core/frame/UseCounter.h" 34 #include "core/frame/UseCounter.h"
35 #include "core/html/HTMLFormControlElement.h" 35 #include "core/html/HTMLFormControlElement.h"
36 #include "core/layout/LayoutBlock.h"
37 #include "core/style/ComputedStyle.h" 36 #include "core/style/ComputedStyle.h"
38 37
39 namespace blink { 38 namespace blink {
40 39
41 using namespace HTMLNames; 40 using namespace HTMLNames;
42 41
43 // This function chooses the focused element when show() or showModal() is invok ed, as described in their spec. 42 // This function chooses the focused element when show() or showModal() is invok ed, as described in their spec.
44 static void setFocusForDialog(HTMLDialogElement* dialog) 43 static void setFocusForDialog(HTMLDialogElement* dialog)
45 { 44 {
46 Element* focusableDescendant = 0; 45 Element* focusableDescendant = 0;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 { 201 {
203 if (event->type() == EventTypeNames::cancel) { 202 if (event->type() == EventTypeNames::cancel) {
204 closeDialog(); 203 closeDialog();
205 event->setDefaultHandled(); 204 event->setDefaultHandled();
206 return; 205 return;
207 } 206 }
208 HTMLElement::defaultEventHandler(event); 207 HTMLElement::defaultEventHandler(event);
209 } 208 }
210 209
211 } // namespace blink 210 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698