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

Side by Side Diff: sky/engine/core/dom/Element.cpp

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/Node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle ment))); 1233 dispatchScopedEventDispatchMediator(FocusInEventDispatchMediator::create(Foc usEvent::create(eventType, true, false, document().domWindow(), 0, oldFocusedEle ment)));
1234 } 1234 }
1235 1235
1236 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF ocusedElement) 1236 void Element::dispatchFocusOutEvent(const AtomicString& eventType, Element* newF ocusedElement)
1237 { 1237 {
1238 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); 1238 ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden());
1239 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames: :DOMFocusOut); 1239 ASSERT(eventType == EventTypeNames::focusout || eventType == EventTypeNames: :DOMFocusOut);
1240 dispatchScopedEventDispatchMediator(FocusOutEventDispatchMediator::create(Fo cusEvent::create(eventType, true, false, document().domWindow(), 0, newFocusedEl ement))); 1240 dispatchScopedEventDispatchMediator(FocusOutEventDispatchMediator::create(Fo cusEvent::create(eventType, true, false, document().domWindow(), 0, newFocusedEl ement)));
1241 } 1241 }
1242 1242
1243 // FIXME(sky): Remove pseudoElementSpecifier. 1243 RenderStyle* Element::computedStyle()
1244 RenderStyle* Element::computedStyle(PseudoId pseudoElementSpecifier)
1245 { 1244 {
1246 // FIXME: Find and use the renderer from the pseudo element instead of the a ctual element so that the 'length' 1245 // FIXME: Find and use the renderer from the pseudo element instead of the a ctual element so that the 'length'
1247 // properties, which are only known by the renderer because it did the layou t, will be correct and so that the 1246 // properties, which are only known by the renderer because it did the layou t, will be correct and so that the
1248 // values returned for the ":selection" pseudo-element will be correct. 1247 // values returned for the ":selection" pseudo-element will be correct.
1249 if (RenderStyle* usedStyle = renderStyle()) 1248 if (RenderStyle* usedStyle = renderStyle())
1250 return usedStyle; 1249 return usedStyle;
1251 1250
1252 if (!inActiveDocument()) 1251 if (!inActiveDocument())
1253 // FIXME: Try to do better than this. Ensure that styleForElement() work s for elements that are not in the 1252 // FIXME: Try to do better than this. Ensure that styleForElement() work s for elements that are not in the
1254 // document tree and figure out when to destroy the computed style for s uch elements. 1253 // document tree and figure out when to destroy the computed style for s uch elements.
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 return false; 1710 return false;
1712 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) 1711 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue))
1713 return true; 1712 return true;
1714 // Host rules could also have effects. 1713 // Host rules could also have effects.
1715 if (ShadowRoot* shadowRoot = this->shadowRoot()) 1714 if (ShadowRoot* shadowRoot = this->shadowRoot())
1716 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); 1715 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue);
1717 return false; 1716 return false;
1718 } 1717 }
1719 1718
1720 } // namespace blink 1719 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698