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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2902903002: Fix missing distribution recalc in quirks mode and Shadow DOM v0. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | 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. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 if (!new_id.IsEmpty() && feature_set.HasSelectorForId(new_id)) 1480 if (!new_id.IsEmpty() && feature_set.HasSelectorForId(new_id))
1481 return true; 1481 return true;
1482 } 1482 }
1483 } 1483 }
1484 1484
1485 if (name == HTMLNames::classAttr) { 1485 if (name == HTMLNames::classAttr) {
1486 const AtomicString& new_class_string = new_value; 1486 const AtomicString& new_class_string = new_value;
1487 if (ClassStringHasClassName(new_class_string) == 1487 if (ClassStringHasClassName(new_class_string) ==
1488 ClassStringContent::kHasClasses) { 1488 ClassStringContent::kHasClasses) {
1489 const SpaceSplitString& old_classes = GetElementData()->ClassNames(); 1489 const SpaceSplitString& old_classes = GetElementData()->ClassNames();
1490 const SpaceSplitString new_classes( 1490 const SpaceSplitString new_classes(GetDocument().InQuirksMode()
1491 new_class_string, GetDocument().InQuirksMode() 1491 ? new_class_string.LowerASCII()
1492 ? SpaceSplitString::kShouldFoldCase 1492 : new_class_string,
1493 : SpaceSplitString::kShouldNotFoldCase); 1493 SpaceSplitString::kShouldNotFoldCase);
1494 if (feature_set.CheckSelectorsForClassChange(old_classes, new_classes)) 1494 if (feature_set.CheckSelectorsForClassChange(old_classes, new_classes))
1495 return true; 1495 return true;
1496 } else { 1496 } else {
1497 const SpaceSplitString& old_classes = GetElementData()->ClassNames(); 1497 const SpaceSplitString& old_classes = GetElementData()->ClassNames();
1498 if (feature_set.CheckSelectorsForClassChange(old_classes)) 1498 if (feature_set.CheckSelectorsForClassChange(old_classes))
1499 return true; 1499 return true;
1500 } 1500 }
1501 } 1501 }
1502 1502
1503 return feature_set.HasSelectorForAttribute(name.LocalName()); 1503 return feature_set.HasSelectorForAttribute(name.LocalName());
(...skipping 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after
4348 } 4348 }
4349 4349
4350 DEFINE_TRACE_WRAPPERS(Element) { 4350 DEFINE_TRACE_WRAPPERS(Element) {
4351 if (HasRareData()) { 4351 if (HasRareData()) {
4352 visitor->TraceWrappers(GetElementRareData()); 4352 visitor->TraceWrappers(GetElementRareData());
4353 } 4353 }
4354 ContainerNode::TraceWrappers(visitor); 4354 ContainerNode::TraceWrappers(visitor);
4355 } 4355 }
4356 4356
4357 } // namespace blink 4357 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698