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

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

Issue 880663002: Remove InputMethodContext. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/Element.idl » ('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 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 void Element::createUniqueElementData() 1552 void Element::createUniqueElementData()
1553 { 1553 {
1554 if (!m_elementData) 1554 if (!m_elementData)
1555 m_elementData = UniqueElementData::create(); 1555 m_elementData = UniqueElementData::create();
1556 else { 1556 else {
1557 ASSERT(!m_elementData->isUnique()); 1557 ASSERT(!m_elementData->isUnique());
1558 m_elementData = toShareableElementData(m_elementData)->makeUniqueCopy(); 1558 m_elementData = toShareableElementData(m_elementData)->makeUniqueCopy();
1559 } 1559 }
1560 } 1560 }
1561 1561
1562 InputMethodContext& Element::inputMethodContext()
1563 {
1564 return ensureElementRareData().ensureInputMethodContext(toHTMLElement(this)) ;
1565 }
1566
1567 bool Element::hasInputMethodContext() const
1568 {
1569 return hasRareData() && elementRareData()->hasInputMethodContext();
1570 }
1571
1572 void Element::synchronizeStyleAttributeInternal() const 1562 void Element::synchronizeStyleAttributeInternal() const
1573 { 1563 {
1574 ASSERT(isStyledElement()); 1564 ASSERT(isStyledElement());
1575 ASSERT(elementData()); 1565 ASSERT(elementData());
1576 ASSERT(elementData()->m_styleAttributeIsDirty); 1566 ASSERT(elementData()->m_styleAttributeIsDirty);
1577 elementData()->m_styleAttributeIsDirty = false; 1567 elementData()->m_styleAttributeIsDirty = false;
1578 const StylePropertySet* inlineStyle = this->inlineStyle(); 1568 const StylePropertySet* inlineStyle = this->inlineStyle();
1579 const_cast<Element*>(this)->setSynchronizedLazyAttribute(HTMLNames::styleAtt r, 1569 const_cast<Element*>(this)->setSynchronizedLazyAttribute(HTMLNames::styleAtt r,
1580 inlineStyle ? AtomicString(inlineStyle->asText()) : nullAtom); 1570 inlineStyle ? AtomicString(inlineStyle->asText()) : nullAtom);
1581 } 1571 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 return false; 1741 return false;
1752 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) 1742 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue))
1753 return true; 1743 return true;
1754 // Host rules could also have effects. 1744 // Host rules could also have effects.
1755 if (ShadowRoot* shadowRoot = this->shadowRoot()) 1745 if (ShadowRoot* shadowRoot = this->shadowRoot())
1756 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); 1746 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue);
1757 return false; 1747 return false;
1758 } 1748 }
1759 1749
1760 } // namespace blink 1750 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698