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

Side by Side Diff: Source/core/dom/Element.h

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add helper function and descendant selector test Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 569
570 virtual bool wasChangedSinceLastFormControlChangeEvent() const; 570 virtual bool wasChangedSinceLastFormControlChangeEvent() const;
571 virtual void setChangedSinceLastFormControlChangeEvent(bool); 571 virtual void setChangedSinceLastFormControlChangeEvent(bool);
572 virtual void dispatchFormControlChangeEvent() { } 572 virtual void dispatchFormControlChangeEvent() { }
573 573
574 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched 574 // Used for disabled form elements; if true, prevents mouse events from bein g dispatched
575 // to event listeners, and prevents DOMActivate events from being sent at al l. 575 // to event listeners, and prevents DOMActivate events from being sent at al l.
576 virtual bool isDisabledFormControl() const { return false; } 576 virtual bool isDisabledFormControl() const { return false; }
577 577
578 bool isInert() const; 578 bool isInert() const;
579 virtual bool shouldBeReparentedUnderRenderView(const RenderStyle*) const { r eturn isInTopLayer(); } 579 virtual bool shouldBeReparentedUnderRenderView(const RenderStyle*) const { r eturn pseudoId() == BACKDROP || isInTopLayer(); }
esprehn 2013/07/03 23:44:29 Why isn't the backdrop in the top layer?
580 580
581 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const; 581 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;
582 bool hasPendingResources() const; 582 bool hasPendingResources() const;
583 void setHasPendingResources(); 583 void setHasPendingResources();
584 void clearHasPendingResources(); 584 void clearHasPendingResources();
585 virtual void buildPendingResource() { }; 585 virtual void buildPendingResource() { };
586 586
587 enum { 587 enum {
588 ALLOW_KEYBOARD_INPUT = 1 << 0, 588 ALLOW_KEYBOARD_INPUT = 1 << 0,
589 LEGACY_MOZILLA_REQUEST = 1 << 1, 589 LEGACY_MOZILLA_REQUEST = 1 << 1,
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 1059
1060 inline const Attribute* ElementData::attributeItem(unsigned index) const 1060 inline const Attribute* ElementData::attributeItem(unsigned index) const
1061 { 1061 {
1062 RELEASE_ASSERT(index < length()); 1062 RELEASE_ASSERT(index < length());
1063 return attributeBase() + index; 1063 return attributeBase() + index;
1064 } 1064 }
1065 1065
1066 } // namespace 1066 } // namespace
1067 1067
1068 #endif 1068 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698